Or if you are using IBM’s Websphere MQ JMS API, you can use the JMS Adapter to publish, receive and subscribe to JMS messages that use Websphere MQ as the JMS provider.
My problem is my client is not willing to take licence for MQadapter,JMS Adapter to implement this functionality.So without using the MQadapter,JMS Adapters i have to that, I think we can do that using java also as i metioned in my question in which mode we can connect to MQserver and how we can use those modes like
1.Client Mode
2.Bindings Mode
The JMS adapter is not an add-on cost to the Integration Server license. You can download it as part of your distribution. I would highly recommend doing that instead of writing a java client.