|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Client configuration |
« View previous topic :: View next topic » |
Author |
Message
|
RulWrk |
Posted: Tue Jan 20, 2004 3:30 am Post subject: Client configuration |
|
|
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 |
|
 |
JasonE |
Posted: Tue Jan 20, 2004 7:46 am Post subject: |
|
|
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 |
|
 |
RulWrk |
Posted: Wed Jan 21, 2004 4:38 am Post subject: Client Configuration |
|
|
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 |
|
 |
JasonE |
Posted: Wed Jan 21, 2004 6:54 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|