IBM Maximo: Criando as filas JMS Queues manualmente para o Maximo

Procedimento:

= Usando o wsadmin.sh =

Estou aproveitando wsadmin.sh para criar as filas

cd /opt/IBM/WebSphere/AppServer/profiles/ctgDmgr01/bin ./wsadmin.sh -lang jython

forneça usuário e senha.

= Instalação MultiCluster =

Minha instalação vai ter 4 clusters clMxUi, clMxCron, clMxMif, clMxRpt. Vou criar os Bus para os 3 primeiros clusters.

clMxMif
AdminTask.createSIBus('[-bus mifjmsbus -busSecurity false -scriptCompatibility 6.1 -highMessageThreshold 500000 -description "SIBus mifjmsbus" ]')

AdminConfig.save

Adicionando os Bus Members e definido a file storage.

AdminTask.addSIBusMember('[-bus mifjmsbus -cluster clMxMif -enableAssistance true -policyName HA -fileStore -logSize 100 -logDirectory /opt/IBM/MessageStore/clMxMif/Log -minPermanentStoreSize 200 -maxPermanentStoreSize 500 -unlimitedPermanentStoreSize false -permanentStoreDirectory /opt/IBM/MessageStore/clMxMif/Permanent -minTemporaryStoreSize 200 -maxTemporaryStoreSize 500 -unlimitedTemporaryStoreSize false -temporaryStoreDirectory /opt/IBM/MessageStore/clMxMif/Temp ]')

AdminConfig.save

Adicionando as Destinations

AdminTask.createSIBDestination('[-bus mifjmsbus -name CQINDB -type Queue -cluster clMxMif -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus mifjmsbus -name CQINERRDB -type Queue -cluster clMxMif -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus mifjmsbus -name SQINDB -type Queue -cluster clMxMif -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus mifjmsbus -name SQOUTDB -type Queue -cluster clMxMif -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus mifjmsbus -name NOTFDB -type Queue -cluster clMxMif -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus mifjmsbus -name NOTFERRDB -type Queue -cluster clMxMif -exceptionDestination "" -persistRedeliveryCount TRUE]')

AdminConfig.save

Adicionando as Resources > JMS> Connection Factories

AdminTask.createSIBJMSConnectionFactory('ctgCell01(cells/ctgCell01|cell.xml)', '[-name mifconfact -jndiName jms/maximo/int/cf/intcfmif -busName mifjmsbus ]')

AdminConfig.save

Adicionando as Resources > JMS > Queues

A default sqout (jms/maximo/int/queues/sqout) adicionei no clMxUi

AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name CQIN -jndiName jms/maximo/int/queues/cqin -busName mifjmsbus -queueName CQINDB]') AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name CQINERR -jndiName jms/maximo/int/queue/cqinerr -busName mifjmsbus -queueName CQINERRDB]') AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name SQIN -jndiName jms/maximo/int/queues/sqin -busName mifjmsbus -queueName SQINDB]') AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name SQOUT -jndiName jms/maximo/int/queues/sqoutmif -busName mifjmsbus -queueName SQOUTDB]') AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name NOTF -jndiName jms/maximo/int/queues/notf -busName mifjmsbus -queueName NOTFDB]') AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name NOTFERR -jndiName jms/maximo/int/queues/notferr -busName mifjmsbus -queueName NOTFERRDB]')

AdminConfig.save

Adicionando as Resources > JMS > Activation Specifications.

AdminTask.createSIBJMSActivationSpec('ctgCell01(cells/ctgCell01|cell.xml)', '[-name intjmsact -jndiName intjmsact -destinationJndiName jms/maximo/int/queues/cqin -busName mifjmsbus -destinationType javax.jms.Queue -maxConcurrency 10]') AdminTask.createSIBJMSActivationSpec('ctgCell01(cells/ctgCell01|cell.xml)', '[-name intjmsacterr -jndiName intjmsacterr -destinationJndiName jms/maximo/int/queues/cqinerr -busName mifjmsbus -destinationType javax.jms.Queue -maxConcurrency 10]') AdminTask.createSIBJMSActivationSpec('ctgCell01(cells/ctgCell01|cell.xml)', '[-name notfact -jndiName notfact -destinationJndiName jms/maximo/int/queues/notf -busName mifjmsbus -destinationType javax.jms.Queue -maxConcurrency 10]') AdminTask.createSIBJMSActivationSpec('ctgCell01(cells/ctgCell01|cell.xml)', '[-name notfacterr -jndiName notfacterr -destinationJndiName jms/maximo/int/queues/notferr -busName mifjmsbus -destinationType javax.jms.Queue -maxConcurrency 10]')

AdminConfig.save

clMxUi
AdminTask.createSIBus('[-bus uijmsbus -busSecurity false -scriptCompatibility 6.1 -highMessageThreshold 500000 -description "SIBus uijmsbus" ]') AdminConfig.save

Adicionando os Bus Members e definido a file storage.

AdminTask.addSIBusMember('[-bus uijmsbus -cluster clMxUi -enableAssistance true -policyName HA -fileStore -logSize 100 -logDirectory /opt/IBM/MessageStore/clMxUi/Log -minPermanentStoreSize 200 -maxPermanentStoreSize 500 -unlimitedPermanentStoreSize false -permanentStoreDirectory /opt/IBM/MessageStore/clMxUi/Permanent -minTemporaryStoreSize 200 -maxTemporaryStoreSize 500 -unlimitedTemporaryStoreSize false -temporaryStoreDirectory /opt/IBM/MessageStore/clMxUi/Temp ]')

AdminConfig.save

Adicionando as Destinations

AdminTask.createSIBDestination('[-bus uijmsbus -name CQINDB -type Queue -cluster clMxUi -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus uijmsbus -name CQINERRDB -type Queue -cluster clMxUi -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus uijmsbus -name SQINDB -type Queue -cluster clMxUi -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus uijmsbus -name SQOUTDB -type Queue -cluster clMxUi -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus uijmsbus -name NOTFDB -type Queue -cluster clMxUi -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus uijmsbus -name NOTFERRDB -type Queue -cluster clMxUi -exceptionDestination "" -persistRedeliveryCount TRUE]')

AdminConfig.save

Adicionando as Resources > JMS > Connection Factories

AdminTask.createSIBJMSConnectionFactory('ctgCell01(cells/ctgCell01|cell.xml)', '[-name uiconfact -jndiName jms/maximo/int/cf/intcfui -busName uijmsbus ]')

AdminConfig.save

Adicionando as Resources > JMS > Queues

AdminTask.createSIBJMSQueue('ctgCell01(cells/ctgCell01|cell.xml)', '[-name SQOUT -jndiName jms/maximo/int/queues/sqout -busName uijmsbus -queueName SQOUTDB]')

AdminConfig.save

clMxCron
AdminTask.createSIBus('[-bus cronjmsbus -busSecurity false -scriptCompatibility 6.1 -highMessageThreshold 500000 -description "SIBus cronjmsbus" ]') AdminConfig.save

Adicionando os Bus Members e definido a file storage.

AdminTask.addSIBusMember('[-bus cronjmsbus -cluster clMxCron -enableAssistance true -policyName HA -fileStore -logSize 100 -logDirectory /opt/IBM/MessageStore/clMxCron/Log -minPermanentStoreSize 200 -maxPermanentStoreSize 500 -unlimitedPermanentStoreSize false -permanentStoreDirectory /opt/IBM/MessageStore/clMxCron/Permanent -minTemporaryStoreSize 200 -maxTemporaryStoreSize 500 -unlimitedTemporaryStoreSize false -temporaryStoreDirectory /opt/IBM/MessageStore/clMxCron/Temp ]')

AdminConfig.save

Adicionando as Destinations

AdminTask.createSIBDestination('[-bus cronjmsbus -name CQINDB -type Queue -cluster clMxCron -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus cronjmsbus -name CQINERRDB -type Queue -cluster clMxCron -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus cronjmsbus -name SQINDB -type Queue -cluster clMxCron -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus cronjmsbus -name SQOUTDB -type Queue -cluster clMxCron -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus cronjmsbus -name NOTFDB -type Queue -cluster clMxCron -exceptionDestination "" -persistRedeliveryCount TRUE]') AdminTask.createSIBDestination('[-bus cronjmsbus -name NOTFERRDB -type Queue -cluster clMxCron -exceptionDestination "" -persistRedeliveryCount TRUE]')

AdminConfig.save

Adicionando as Connection Factories

AdminTask.createSIBJMSConnectionFactory('ctgCell01(cells/ctgCell01|cell.xml)', '[-name cronconfact -jndiName jms/maximo/int/cf/intcfcron -busName cronjmsbus ]')

AdminConfig.save

= Ver também =


 * Artigos sobre Cloud
 * Mais Artigos sobre Cloud / WebDev / Tecnologias