| Author |
JMS::Websphere6.1::Problem with context lookup the Queue
|
Sujoy Choudhury
Ranch Hand
Joined: Sep 17, 2008
Posts: 132
|
|
Hi,
I have a class which tries to look up a Queue/QueueConnectionFactory and then submits message.
The code works fine with Weblogic9.x but throws the following exception in Webshpere6.1.
com.ibm.mq.jms.MQQueue incompatible with javax.jms.Queue
Code:
Any help would be appreciated.
|
Thanks and Regards,
~Sujoy
|
 |
sujeetkumar singh
Greenhorn
Joined: May 20, 2011
Posts: 1
|
|
|
Can you provide me full error, which you are getting..
|
 |
Ankit Thakkar
Ranch Hand
Joined: Apr 29, 2005
Posts: 33
|
|
Ideally this code should work without any exception, because com.ibm.mq.jms.MQQueue implements javax.jms.Queue. please share full exception stack trace.
Thanks,
Ankit
|
 |
Sujoy Choudhury
Ranch Hand
Joined: Sep 17, 2008
Posts: 132
|
|
I found the reason by opening a PMR with IBM.
Reason: If a .jar file contains a Java Extension class (javax.*.class) file which is also provided by WebSphere, then it must not be included in your Shared Library or application, or else a ClassCastException or similar error will occur. If the javax.*.class is NOT provided by WebSphere Application Server, then feel free to use that .jar in your application or Shared Library.
|
 |
 |
I agree. Here's the link: jrebel
|
|
subject: JMS::Websphere6.1::Problem with context lookup the Queue
|
|
|