Author |
Message
|
mqquester |
Posted: Wed Dec 17, 2003 8:33 pm Post subject: Where is the message class |
|
|
Apprentice
Joined: 27 Nov 2003 Posts: 35
|
Hi buddy,
MQ application for Java, the message class should be imported as following:
import com.ibm.mq.*;
Where is the message class I can find? This should be com/ibm/mq/*, right? Where are they?
I use VAJ to generate a class in a package, and it asked me for superclass. I cannot find com.ibm.mq.MQMessage in the library, and I also cannot create a class without superclass. (I think no superclass, then I can add one manually. It is possible for C++, but it looks not for Java or for VAJ.)
What should I do?
Thanks in advance |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Dec 17, 2003 10:08 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
The answers are Yes and Yes.
The MQMessage class is located at com.ibm.mq.MQMessage
It sounds like you forgot to put the com.ibm.mq.jar file in your CLASSPATH.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
mqquester |
Posted: Thu Dec 18, 2003 7:47 am Post subject: |
|
|
Apprentice
Joined: 27 Nov 2003 Posts: 35
|
Thanks Roger
I viewed the help file for Java, and it said this file is under MQSeries/java/lib. But I cannot find /java/lib on my computer. What is wrong with my MQ? Does it have a problem with version? |
|
Back to top |
|
 |
vennela |
Posted: Thu Dec 18, 2003 8:23 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
MQ Java and JMS Messaging component is an optional component of MQ to install. If you have done the defaul installation then it will not be installed. You have to select the custom button and select the Java/JMS component.
If you try the setup again, it will give you options to modify and you can select the Java/JMS feature |
|
Back to top |
|
 |
mqquester |
Posted: Thu Dec 18, 2003 11:51 am Post subject: |
|
|
Apprentice
Joined: 27 Nov 2003 Posts: 35
|
I checked my MQSeries installation, but there is no java option. It only has Server, Client, Development toolkit and documation. This version is 5.2. After I installed all of them, and under tools folder, it only has header files and samples for c, c++, vb. No java.
On the contrary, I found com.ibm.mq.jar under MQSI/classes. I tried to add it to CLASSPATH, but when I run VAJ to create a class, I still cannot find mq library. And help said except com.ibm.mq.jar, I should also have com.ibm.mqbind.jar, connector.jar, jms.jar, etc. But I haven't seen them.
?????? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 18, 2003 12:05 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mqquester wrote: |
I checked my MQSeries installation, but there is no java option. It only has Server, Client, Development toolkit and documation. This version is 5.2. |
For 5.2, you need to download and install Support Pack MA88.
But you should upgrade to 5.3 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mqquester |
Posted: Fri Dec 19, 2003 8:41 am Post subject: |
|
|
Apprentice
Joined: 27 Nov 2003 Posts: 35
|
Thanks jeff
MA88 is great and free. Upgrade to 5.3 is not free. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 19, 2003 9:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mqquester wrote: |
Upgrade to 5.3 is not free. |
Neither is having a broken production system running an unsupported product.  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|