Configure IBM MQ JMS with JBOSS
http://rocksolutions.wordpress.com/2012/02/04/using-websphere-mq-with-jboss-as-5/
Step 1: Install JBoss 5
Step 2: Install Websphere MQ 7
Step3: Install wmq.jmsra.rar
Step 4: Create wmq.jmsra-ds.xml
<?xml version=”1.0? encoding=”UTF-8??>
<connection-factories>
<tx-connection-factory>
<jndi-name>IVTCF</jndi-name>
<xa-transaction />
<rar-name>wmq.jmsra.rar</rar-name>
<connection-definition>javax.jms.ConnectionFactory</connection-definition>
<config-property name=”channel” type=”java.lang.String”>SYSTEM.DEF.SVRCONN</config-property>
<config-property name=”hostName” type=”java.lang.String”>127.0.0.1</config-property>
<config-property name=”port” type=”java.lang.String”>1417</config-property>
<config-property name=”queueManager” type=”java.lang.String”>JBOSS_QM</config-property>
<config-property name=”transportType” type=”java.lang.String”>CLIENT</config-property>
<security-domain-and-application>JmsXARealm</security-domain-and-application>
</tx-connection-factory>
<mbean code=”org.jboss.resource.deployment.AdminObject” name=”jca.wmq:name=ivtqueue”>
<!– Bind this AdminObject with the JNDI name IVTQueue –>
<attribute name=”JNDIName”>IVTQueue</attribute>
<depends optional-attribute-name=”RARName”>jboss.jca:service=RARDeployment,name=’wmq.jmsra.rar’</depends>
<attribute name=”Type”>javax.jms.Queue</attribute>
<attribute name=”Properties”>
baseQueueManagerName=JBOSS_QM
baseQueueName=JBOSS_Q
</attribute>
</mbean>
</connection-factories>
Step 5: Create a EJB 3.0 project in JBoss Studio or in Eclipse IDE.
Step 6: Write a Message Driven Bean
Step 7: Now Build the project.Start the server, If all the configuration are correct then you will see binding information of the JNDI name in the server logs, This is the first indication that Link between MQ and JBoss has successfully created.
References:
Code Example:
- http://www.javaworld.com/jw-02-2000/jw-02-jmsxml.html
- http://java.sun.com/developer/technicalArticles/Ecommerce/jms/ - Getting Started with Java Message Service (JMS) - Good One with example
- http://oreilly.com/catalog/javmesser/chapter/ch02.html - Java Message Service - Developing a Simple Example
- http://www.hartmannsoftware.com/JMS_Tutorial.pdf - Write simple JMS messaging code using the publish and subscribe and point-to-point domains
- http://onjava.com/pub/a/onjava/excerpt/jms_ch2/index.html - Developing a Simple JMS Example
- http://docs.oracle.com/javaee/1.3/jms/tutorial/ - JavaTM Message Service Tutorial
- http://java-diaries.blogspot.com/2011/03/get-started-with-spring-jms-using.html
- https://community.jboss.org/wiki/JBossEAP5IntegrationWithWebSphereMQ - JBOSS server, to configure the queue connection factories
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss-JMS_Examples.html- how to configure web sphere MQ with JBOSS
- http://www.novell.com/documentation/extend52/Docs/help/MP/jms/tutorial/pointToPoint-1.htm - For queue
- http://oreilly.com/catalog/javmesser/chapter/ch02.html - For Topic
- http://docs.jboss.org/jbossas/getting_started/v4/html/mdb.html
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss-JMS_Examples.html
- https://community.jboss.org/wiki/UsingWebSphereMQSeriesWithJBossASPart4
- Using JBoss with Websphere MQ: Setting Up a XARecovery Module https://community.jboss.org/wiki/UsingJBossWithWebsphereMQSettingUpAXARecoveryModule
- https://community.jboss.org/wiki/JBossEAP5IntegrationWithWebSphereM
- http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/jm10800_.htm
- https://community.jboss.org/wiki/HowToConfigureTheIBMMQAdapterForUseWithJBossESB?_sscc=t
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Specifying_the_MDB_JMS_Provider-org.jboss.jms.jndi.JMSProviderLoader_MBean.html
- http://www.coderanch.com/t/88673/JBoss/JBOSS-JMS-HELP
- https://community.jboss.org/wiki/UsingWebSphereMQSeriesWithJBossASPart4
- Using JBoss with Websphere MQ: Setting Up a XARecovery Module https://community.jboss.org/wiki/UsingJBossWithWebsphereMQSettingUpAXARecoveryModule
- https://community.jboss.org/wiki/JBossEAP5IntegrationWithWebSphereMQ
- http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/jm10800_.htm
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss-JMS_Examples.html
Below link gives you an example of how to configure web sphere MQ with JBOSS
- https://community.jboss.org/wiki/JBossEAP5IntegrationWithWebSphereMQ
- http://www.redbooks.ibm.com/redpapers/pdfs/redp0021.pdf
- http://www-05.ibm.com/e-business/linkweb/publications/servlet/pbi.wss?CTY=US&FNC=SRX&PBL=GC34-6480-02#
- http://publibfp.dhe.ibm.com/epubs/pdf/amqtac05.pdf
- ftp://ftp.software.ibm.com/software/integration/wmq/docs/V7.0/amq1ac08.pdf
- http://www-01.ibm.com/software/integration/wmq/library/v60/quick_beginnings.html
Code Example
- http://www.javaworld.com/jw-02-2000/jw-02-jmsxml.html
- http://java.sun.com/developer/technicalArticles/Ecommerce/jms/ - Getting Started with Java Message Service (JMS) - Good One with example
- http://oreilly.com/catalog/javmesser/chapter/ch02.html - Java Message Service - Developing a Simple Example
- http://www.hartmannsoftware.com/JMS_Tutorial.pdf - Write simple JMS messaging code using the publish and subscribe and point-to-point domains
- http://onjava.com/pub/a/onjava/excerpt/jms_ch2/index.html- Developing a Simple JMS Example
- http://docs.oracle.com/javaee/1.3/jms/tutorial/ - JavaTM Message Service Tutorial
- http://java-diaries.blogspot.com/2011/03/get-started-with-spring-jms-using.html
- https://community.jboss.org/wiki/JBossEAP5IntegrationWithWebSphereMQ - JBOSS server, to configure the queue connection factories
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss-JMS_Examples.html - how to configure web sphere MQ with JBOSS
- http://www.novell.com/documentation/extend52/Docs/help/MP/jms/tutorial/pointToPoint-1.htm - For queue
- http://docs.jboss.org/jbossas/getting_started/v4/html/mdb.html
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Messaging_on_JBoss-JMS_Examples.html
- https://community.jboss.org/wiki/HowToConfigureTheIBMMQAdapterForUseWithJBossESB?_sscc=t
- http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Specifying_the_MDB_JMS_Provider-org.jboss.jms.jndi.JMSProviderLoader_MBean.html
- http://www.coderanch.com/t/88673/JBoss/JBOSS-JMS-HELP
No comments:
Post a Comment