I have a requirement of using websphere MQ adapater connection in Java program and using it will read MQ queue. We had custom java code ealrier which will drian the messages which we don’t want it now. If we can initiate the webMethods MQ adapter connection in java code it will be easy for us. Can anybody let us know how to create MQ adapter connection objects in java ? Appreciate your help.
Hi Satish,
Can you describe the reason for writing this logic in a java program & accessing MQ system to read data from it?
End of the day you read data from MQ. While you have easier way of doing this through MQ Notification or by creating consumer and pulling the data, why do you need to complicate it?
I guess your client does not have WebSphere MQ Adapter? Is it so?
In my past experience, we had a utility to put bulk messages in to MQ queue via java service. Just refer the below links and you write a java service in webMethods. Also take care of appropriate jars from IBM WebSphere MQ.