Migrating from jboss 4.0.5 GA to WildFly 8.2 || websphere-mq related configuration.
max016 Jan 24, 2017 10:47 AMHi All,
I am migrating my application from jboss4 to wildfly 8. We are listening to few JMS topics available over wmq at different hosts. In jboss-4 we had jboss-service.xml which contained few mbean related to that, my main concern is how can I configure same mbeans or jmx queues in wildfly's standalone.xml.
jboss-service.xml (wmq configuration for jboss-4)
<mbean code="jmx.service.wsmq.WSMQConnectionFactory" name="jmx.service.wsmq:service=MQQueueConnectionFactory"> <attribute name="JndiName">MQQueueConnectionFactory</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="IsXA">false</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="HostName">10.10.10.10</attribute> <attribute name="Port">****</attribute> <attribute name="Channel">SVRCONN</attribute> <attribute name="TransportType">MQJMS_TP_CLIENT_MQ_TCPIP</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQRequestQueue"> <attribute name="JndiName">wsmq/RequestQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">PREPAID.REQ.QR02</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQResponseQueue"> <attribute name="JndiName">wsmq/ResponseQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">REPLY.QL05</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQNMMResponseQueue"> <attribute name="JndiName">wsmq/NMMResponseQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">REPLY.QL06</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQBalanceResponseQueue"> <attribute name="JndiName">wsmq/BalanceResponseQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">REPLY.QL07</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQExceptionQueue"> <attribute name="JndiName">wsmq/exceptionQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">EXCEPTION.QL01</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQLocalRequest"> <attribute name="JndiName">wsmq/LocalRequestQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">LOCALREQUEST.QL01</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQLocalERROR"> <attribute name="JndiName">wsmq/ERRORQ</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">ERROR.QL01</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQDemoRequestQueue"> <attribute name="JndiName">wsmq/DemoRequestQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">REQUEST.QL05</attribute> <attribute name="TargetClient">MQ</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQNotificationServiceQueue"> <attribute name="JndiName">wsmq/NotificationServiceQueue</attribute> <attribute name="JMSStyle">Queue</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">REQUEST.QL05</attribute> <attribute name="TargetClient" value="0"/> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQConnectionFactory" name="jmx.service.wsmq:service=DemoProjBusTopicConnectionFactory"> <attribute name="JndiName">jms/tcf/Notification</attribute> <attribute name="JMSStyle">Topic</attribute> <attribute name="IsXA">true</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="HostName">****.****.com</attribute> <attribute name="Port">****</attribute> <attribute name="Channel">SVRCONN</attribute> <attribute name="TransportType">MQJMS_TP_CLIENT_MQ_TCPIP</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQDestination" name="jmx.service.wsmq:service=WSMQDemoProjEventTopic"> <attribute name="JndiName">jms/topic/DemoProjEvent</attribute> <attribute name="JMSStyle">Topic</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="DestinationName">DemoProjEvent.dev1</attribute> <attribute name="TargetClient" value="0" /> <attribute name="Persistence">MQJMS_PER_PER</attribute> <depends>jboss:service=Naming</depends> </mbean> <mbean code="jmx.service.wsmq.WSMQConnectionFactory" name="jmx.service.wsmq:service=DemoProjEventTopicConnectionFactory"> <attribute name="JndiName">jms/tcf/NotificationSubscriber</attribute> <attribute name="JMSStyle">Topic</attribute> <attribute name="IsXA">true</attribute> <attribute name="QueueManagerName">SQ0001</attribute> <attribute name="HostName">***.*****.com</attribute> <attribute name="Port">****</attribute> <attribute name="Channel">SVRCONN</attribute> <attribute name="TransportType">MQJMS_TP_CLIENT_MQ_TCPIP</attribute> <depends>jboss:service=Naming</depends> </mbean>
I have gone through below blog for configuring wmq in wildfly's standalone but all I can see is there is one Connection Factory and one Admin Object, but I need to add all these mbeans.
https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Administration_and_Configuration_Guide/Deploy_the_WebSphere_MQ_Resource_Adapter.html