Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to test a client connection?

Status
Not open for further replies.

gertvangaever

Technical User
Apr 3, 2002
37
BE
Hello,

I have installed MQSeries Client on a client PC.
How can I easily test a connection to a queue manager?

Tnx
Gert
 
If you have an MQ Server installed elsewhere then follow these steps.

1) Start the QM on the Server.
2) Start the listener.
3) Create SYSTEM.ADMIN.SVRCONN, svrconn channel.


On Client side.

1) Define an environment variable, MQSERVER and value being
MQSERVER=SYSTEM.ADMIN.SVRCONN/TCP/XX.XX.XX.XX(1414)
Where XX.XX.XX.XX is your MQ Server system's IP address and 1414 is the listener port, if you are running your listener on some other port use that here.
2) Run IBM supplied Client sample program AMQSPUTC.


If you are able to successfully put messages, then your client setup is tested fine.

Hope this helps.


Cheers
KK
 
Thanks!
I've done it this way:
1. create a 'TEST.QUEUE'
2. on the client: SET MQSERVER=<server connection>/TCP/<host>
3. amqsputc TEST.QUEUE <enter>
4. this is a test <enter>
<enter>
5. amqsgetc <enter>

If I get the messages, the test is OK!

Gert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top