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 » Java application cannot find MQM.dll file ?

Post new topic  Reply to topic
 Java application cannot find MQM.dll file ? « View previous topic :: View next topic » 
Author Message
AlexeiSkate
PostPosted: Thu Feb 06, 2003 3:10 pm    Post subject: Java application cannot find MQM.dll file ? Reply with quote

Centurion

Joined: 10 Apr 2002
Posts: 123

I want to have my Java application running on one machine do a get/put with MQSeries installed on another machine. I downloaded the supportpac MA88: MQSeries classes for Java, wrote my java program with the required import statement, compiled it fine but when I attempt to run it, I got an error that The dynamic link library MQM.dll could not be found in the specified path ..... The MQM.dll isn't installed with the MA88 support pac. I think I would have to install an MQSeries server on my machine in order to access that. Shouldn't I be able to write a Java program running as a client on one machine and connect to MQSeries queue on a different machine without needing MQM.dll? Is there something else that I need to load on the machine that's running the Java application? Thanks in advance for any help.[/quote]
Back to top
View user's profile Send private message
nimconsult
PostPosted: Thu Feb 06, 2003 11:08 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

If you want to run MQSeries as a client, then you need to install MQSeries client

Nicolas
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kingdon
PostPosted: Fri Feb 07, 2003 5:29 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

The Java interfaces (for either the Java MQI or for JMS) can be installed and run without having to install the other client software. The confusion arises because the Java classes can be used to make either client (tcp/ip) connections or local connections via JNI and C. It looks like the application is attempting make a local connection instead of a client one, so the solution is to reconfigure the application to use client connections instead. For the Java MQI you do this either by setting the MQEnvironment or by configuring a properties hashtable passed to the MQQueueManager constructor (I'd recommend the latter approach). For JMS, the settings are on the connection factory.

Regards,
James.
Back to top
View user's profile Send private message
yaakovd
PostPosted: Fri Feb 07, 2003 6:18 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

To run Java application on clent computer you need:

com.ibm.mq.jar - using MQ classes

com.ibm.mq.jar, com.ibm.mqbind.jar, com.ibm.mqjms.jar - using jms

Make sure that your application is not looking for local QMgr (if you provide correct hostname etc).
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Feb 07, 2003 7:15 am    Post subject: Reply with quote

Jedi Knight

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

There is an mqhash.java in the repository that sets the client environment up in a hash table.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
RogerLacroix
PostPosted: Fri Feb 07, 2003 9:05 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Or you can set the variables directly (for client mode).

To use client mode in your Java code, you need the following lines:
Code:
MQEnvironment.hostname = "192.168.10.200";
MQEnvironment.channel  = "SYSTEM.DEF.SVRCONN";
MQEnvironment.port     = 1414;


later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
AlexeiSkate
PostPosted: Mon Feb 10, 2003 11:40 am    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2002
Posts: 123

Thanks for everyone's reply. I set the MQEnvironment variables and it worked.
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 » Java application cannot find MQM.dll file ?
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.