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 » General IBM MQ Support » sample code needed for connecting to queue manager via SYSTE

Post new topic  Reply to topic
 sample code needed for connecting to queue manager via SYSTE « View previous topic :: View next topic » 
Author Message
mikeHT
PostPosted: Wed Nov 23, 2005 8:04 am    Post subject: sample code needed for connecting to queue manager via SYSTE Reply with quote

Voyager

Joined: 01 Jul 2005
Posts: 82

I need sample code needed for connecting to queue manager via SYSTEM.DEF.SVRCONN, IP and port (similar to the way mqsc MO72 is connecting)

Then browse a local queue of that qmgr and copy the messages to a file in ascii for backup.
Anyone? Thank you in advance.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 23, 2005 8:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=25647

Where have you looked for this information?

What have you tried?

Please try harder.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mikeHT
PostPosted: Wed Nov 23, 2005 8:24 am    Post subject: Reply with quote

Voyager

Joined: 01 Jul 2005
Posts: 82

I done lots of research and searched the list for backup/copy of messages of queues. I've looked at qload, q, mqsc and read
IBM redbook: MQSeries Version 5.1 Administration and Programming Examples ; and Application programming guide

Most samples are programs accessing local queue managers using:

MQCONN(Parm1, &Hconn, &CompCode,&Reason);
Where is there option to put channel name, IP and port information?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 23, 2005 8:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It depends on the language. If you are using Java or .NET, there are a set of properties on MQEnvironment that directly map to channel name, IP and port.

If you are using C/C++ you can use MQCONN and set an MQSERVER environment variable with the channel name, IP and port information. The format of the MQSERVER environment variable is documented in the Intercommunications Manual (I think).

You can also use MQCONNX, and specify a client connection channel definition that includes the server connection channel name, IP and port. This is documented in the App. Prog. Reference, as well as at least somewhat in the APG, I think.
_________________
I am *not* the model of the modern major general.
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 » General IBM MQ Support » sample code needed for connecting to queue manager via SYSTE
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.