There are pieces of sample code available in the internet about how to communicate with MQ server using Java. However, you'll find out if you use MQ API, it will not work, always complaining about ClassDefNotFound, even after you include com.ibm.mq.jar and connector.jar in your classpath !!!
In order to resolve such a problem, you need to include com.ibm.mq.jar in the JVM bootstrap entries. It can be easily done using Eclipse!
To get more information about Java class loading mechanism. Here are a couple of interesting entries:
Internals of Java Class Loading
Understanding the Java Classloading Mechanism
Showing posts with label MQ. Show all posts
Showing posts with label MQ. Show all posts
Friday, March 07, 2008
Tuesday, March 04, 2008
Several pieces of code regarding Java and MQ
Here are some sources of sample code regarding Java & webshpere MQ:
1. http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html
2. http://www.capitalware.biz/mq_code_java.html
1. http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html
2. http://www.capitalware.biz/mq_code_java.html
Subscribe to:
Posts (Atom)