Skip to main content

Publish a JMS Consumer application for Websphere MQ as a Webservice in Glassfish

No replies
Joined: 2012-08-03
Points: 0

IBM ships Websphere MQ with an implementation of the JMS API. This implementation has an extension that allows users to create and configure ConnectionFactory and Destination JMS objects at runtime, so you don't have to configure managed objects and access them through the JNDI.
Can I use this extension to implement a Client (Consumer) application for WebSphere MQ and publish it as a webservice in Glassfish (the Client works fine as a simple java application)?

I tried, but when i run the web method i get this exception:

java.lang.NoClassDefFoundError: com/ibm/msg/client/commonservices/trace/Trace
at com.mqwstest.JmsPTPConsumer.getMessageValue(

JmsPTPConsumer is the webservice's implementation class. I deploy it as an endopoint of a classic webapp. I put the libraries in WebContent/WEB-INF/lib and domain/lib/applibs and I use the Admin Console to set them as app-specific libraries.

What's the problem? Have I to use GenericJMSRA and the JNDI?

Thanks, bye.