-
1. Re: Sending message to JBOSS queue from WebSphere
gaohoward Mar 4, 2010 11:24 AM (in response to sunil_patel)How did you create the queue connection? I guess you need to create a XAConnection.
-
2. Re: Sending message to JBOSS queue from WebSphere
sunil_patel Mar 4, 2010 2:11 PM (in response to gaohoward)Thanks for your time. I tried but got:
ClassCastException : com.ibm.ejs.jms.JMSQueueConnectionFactoryHandle incompatible with javax.jms.XAQueueConnectionFactory
It does not make sense because quickstart HelloWorld works with the same code outside of WebSphere and JBOSS Developer Studio.
-
3. Re: Sending message to JBOSS queue from WebSphere
sri1083 Mar 11, 2010 12:50 AM (in response to sunil_patel)Hi...
I also need to do almost the same thing...if u could share the steps to be followed to send messages from websphere(not MQ) messaging queue to JBoss messaging queues...it will be of great help..thank u so much...
-
4. Re: Sending message to JBOSS queue from WebSphere
sunil_patel Mar 13, 2010 12:54 PM (in response to sri1083)Here are the steps I followed (WebSphere needs some fix, so it will not work, not with 6.1 at least):
1. Created a queue in JBOSS server. Tested the queue successfully from command prompt and from within RAD by running a java program with following jar files provided by JBOSS.
jboss-remoting.jar
jboss-messaging-client.jar
jbossall-client.jar
jboss-aop.jar
javassist.jar
trove.jar
log4j.jar
2. Created a JMS provider (JBOSS Messaging Provider) in local WebSphere with Admin Console. Added all jar files mentioned in step 1 in the classpath for the provider.
3. Created a Queue connection factory in local WebSphere with Admin Console.
4. Created a queue (with external jndi name same as provided in step 1) in local WebSphere with Admin Console.
5. Wrote a servlet to test this by sending a message in local WebSphere with Admin Console.
6. Ran the servlet. Connection is successful but get exception "javax.jms.IllegalStateException: Isn't an XASession" while trying to create sender.
-
5. Re: Sending message to JBOSS queue from WebSphere
sri1083 Mar 15, 2010 3:45 AM (in response to sunil_patel)Thanks for the help... will ask you if i have any doubts in doing this.... -
6. Re: Sending message to JBOSS queue from WebSphere
sunil_patel Mar 15, 2010 3:55 PM (in response to sri1083)Anyone interested in using this can use XA transactions for sending message to JBOSS queue. That works for us unless we have another Fix pack from WebSphere/JBOSS.