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 Installation/Configuration Support » Client configuration

Post new topic  Reply to topic
 Client configuration « View previous topic :: View next topic » 
Author Message
RulWrk
PostPosted: Tue Jan 20, 2004 3:30 am    Post subject: Client configuration Reply with quote

Newbie

Joined: 26 Jun 2003
Posts: 4

Hi All,

I have developed an application that uses MQSeries API in C++ in order to send/retrieve messages to a MQSeries Server.

Actually, my scenario is like follows: MQSeries Server and MQSeries application (client) are located in the same machine, so I used 'server libs' in order to compile MQSeries application (client).

Under this scenario, MQSeries application developed is working properly.
For the development purpose, it was enough, but due to the MQSeries application developed will work in the client side and MQSeries Server will be running in the server side, I would like to replicate the real scenario.

So I would appreciate any information regarding how to install the MQSeries application (client) in the cliente machine.

My understanding for the moment is that I should do:
- To compile the application with the 'client libs'
- To use MQSERVER variable to define MQSeries Server.

But,
- Do I need to add anything to MQSeries Server?
- How I should define the MQSERVER variable?

Any clue on this is wellcome.

Many thanks for your help.
Back to top
View user's profile Send private message
JasonE
PostPosted: Tue Jan 20, 2004 7:46 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

What platform?

On windows, for example, you link with imqs23?n.lib for server and imqc23?n.lib for client. The code can remain the same if you are using the MQSERVER environment variable to control where to go to

eg.
set MQSERVER=SYSTEM.DEF.SVRCONN/tcp/myhost.mydomain.com(1414)
amqsputc SYSTEM.DEFAULT.LOCAL.QUEUE QM (Confirms env var correct if you can put to that queue on remote qmgr called QM)
Then run your C++ app

You need a listener running on the server side on the port listed at the end of the MQSERVER env var, ie 1414 in this case
Back to top
View user's profile Send private message
RulWrk
PostPosted: Wed Jan 21, 2004 4:38 am    Post subject: Client Configuration Reply with quote

Newbie

Joined: 26 Jun 2003
Posts: 4

Hi JasonE,

The platform is Windows and I am using TCP/IP protocol.

I forgot to comment that I am using "C" code. I compiled the client code without errors (I could not change any Lib to adapt the code for the client side, I only have MQM.LIB).

In the Websphere Service Console, I created a listener in the QM that I try to use. When I start the service, it returns an error (number 10048).

I don't know if it could be enough information ...

Thanks in advance.
Back to top
View user's profile Send private message
JasonE
PostPosted: Wed Jan 21, 2004 6:54 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Ok, for C code you need to link with mqm.lib (server) or mqic32.lib (client) (You said C++ before, which is the imq* libs).

As to the listener, 10048 == WSAEADDRINUSE == Address already in use, so I am guessing you already have a listener running on that port! You can only have one listener per port per machine, ie 2 qmgrs cant each have a listener on the same port.
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 Installation/Configuration Support » Client configuration
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.