aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS::Websphere6.1::Problem with context lookup the Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS::Websphere6.1::Problem with context lookup the Queue" Watch "JMS::Websphere6.1::Problem with context lookup the Queue" New topic
Author

JMS::Websphere6.1::Problem with context lookup the Queue

Sujoy Choudhury
Ranch Hand

Joined: Sep 17, 2008
Posts: 136

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: 136

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.

 
Consider Paul's rocket mass heater.
 
subject: JMS::Websphere6.1::Problem with context lookup the Queue