File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sujoy Choudhury
Ranch Hand
Posts: 136
Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
sujeetkumar singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide me full error, which you are getting..
 
Ankit Thakkar
Ranch Hand
Posts: 33
Android Java Mac PPC
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic