|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
sample code needed for connecting to queue manager via SYSTE |
« View previous topic :: View next topic » |
Author |
Message
|
mikeHT |
Posted: Wed Nov 23, 2005 8:04 am Post subject: sample code needed for connecting to queue manager via SYSTE |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Nov 23, 2005 8:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
mikeHT |
Posted: Wed Nov 23, 2005 8:24 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Nov 23, 2005 8:30 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|