ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Where is the message class

Post new topic  Reply to topic
 Where is the message class « View previous topic :: View next topic » 
Author Message
mqquester
PostPosted: Wed Dec 17, 2003 8:33 pm    Post subject: Where is the message class Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Wed Dec 17, 2003 10:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mqquester
PostPosted: Thu Dec 18, 2003 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Thu Dec 18, 2003 8:23 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mqquester
PostPosted: Thu Dec 18, 2003 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Dec 18, 2003 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqquester
PostPosted: Fri Dec 19, 2003 8:41 am    Post subject: Reply with quote

Apprentice

Joined: 27 Nov 2003
Posts: 35

Thanks jeff

MA88 is great and free. Upgrade to 5.3 is not free.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 19, 2003 9:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Where is the message class
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.