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 » client connection using Java

Post new topic  Reply to topic
 client connection using Java « View previous topic :: View next topic » 
Author Message
hdjur
PostPosted: Thu Dec 02, 2004 10:03 am    Post subject: client connection using Java Reply with quote

Centurion

Joined: 16 Sep 2004
Posts: 116
Location: Zagreb

Hello!
I use to work using C++, but recently I got request to make an MQ client application using Java. C++ makes difference between client and binding connection, by linking with different libraries.
I have set MQEnvironment.hostname as documentation says:
The TCP/IP hostname of the machine on which the MQSeries server resides. If the hostname is not set, and no overriding properties are set, bindings mode is used to connect to the local queue manager.
Further, to ensure client connection I have set :

MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);

Finally I have set MQEnvironment.channel to the name of the server connection channel on the remote queue manager, even MQEnvironment.port=1414; although it is default, but I still receive this:

java.lang.NoClassDefFoundError: com/ibm/mq/MQSESSIONServer
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:241)
at drugi.MQSample.main(MQSample.java:31)
Exception in thread "main"

I do not have installed this class, since I have installed only MQSeries client for Windows, but I do have com/ibm/mq/MQSESSIONClient class imported and included. Why does not the application try to use this class, instead off looking for MQSESSIONServer?
What am I missing? Help please.
Thank you in advance.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Dec 02, 2004 11:22 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Don't post the same append twice. I already answered in your other thread.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » client connection using Java
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.