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 » com.ibm.mq.jms or com.ibm.mqjms

Post new topic  Reply to topic
 com.ibm.mq.jms or com.ibm.mqjms « View previous topic :: View next topic » 
Author Message
emqueuer
PostPosted: Tue Jan 06, 2009 8:01 am    Post subject: com.ibm.mq.jms or com.ibm.mqjms Reply with quote

Novice

Joined: 21 Jun 2007
Posts: 24

I have written a standalone java class that imports the following classes:

import com.ibm.mq.jms.JMSC;
import com.ibm.mq.jms.MQQueue;
import com.ibm.mq.jms.MQQueueConnectionFactory;

Using the command line it compiles and runs fine. It's purpose is to place a message on a message queue.

I am now trying to load this class to an Oracle database as a Java Stored Procedure but it will not compile because it cannot find the 3 classes listed above.

I have set JAVA_INSTALL_PATH=C:\Program Files\IBM\WebSphere MQ\Java\lib but when I physically look inside this directory I cannot find 'com.ibm.mq.jms.jar'. Instead there is 'com.ibm.mqjms.jar' which incidentally contains the 3 classes listed above.

Immediately I suspected this as a problem so as an experiment I recompiled my standalone class but this time with the 3 imported classes referenced with the following subtle modifications:

import com.ibm.mqjms.JMSC;
import com.ibm.mqjms.MQQueue;
import com.ibm.mqjms.MQQueueConnectionFactory;

This compilation duly failed and has thusly left me perplexed.

Can anyone offer any suggestions please?

Thank you.
Back to top
View user's profile Send private message
manicminer
PostPosted: Wed Jan 07, 2009 2:44 am    Post subject: Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

What you are seeing is the difference between package names and jar file names. There is no need for the 2 to correspond.

I can create a jar file call Fred.jar and I can put in it various java classes in pages my.package.name another.different.package.name and anything else I feel like.

It will make no difference what the jar file is called. As the program compiles and runs fine I guess there is something wrong with your Oracle setup / environment.
Back to top
View user's profile Send private message
emqueuer
PostPosted: Wed Jan 07, 2009 2:59 am    Post subject: Reply with quote

Novice

Joined: 21 Jun 2007
Posts: 24

You're quite right manicminer. Thank you.
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 » com.ibm.mq.jms or com.ibm.mqjms
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.