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
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS::Websphere6.1::Problem with context lookup the Queue
 
Similar Threads
Not able send messgae to other server queue from onMessgae() method of MDB
New To JMS
Help required for JMS on Jboss server
JNDI setup for MyEclipse and TomCat
JMS Help: send a queue message with reply