Posted: Thu Oct 12, 2006 12:11 pm Post subject: Using amqsbcg0 to connect to remote Q manager (c version)
Newbie
Joined: 12 Oct 2006 Posts: 6
I want to use the amqsbcg0 sample code to browse the contents of a large message that is on a queue. Large being greater then 6 MB.
I have updated the amqsbcg0 code to use an adequate buffer size and compiled the code. My local QM tests have been successful but I have had no success using it to read from a remote QM.
(I am able to use amqsbcgc.exe to read small messages from the remote QM without issue. I use set MQSERVER=SYSTEM.DEF.SVRCONN/tcp/130.130.111.xxx(1414) prior to running the exe)
The application programming guide indicates that the sample code for local and client versions of the code are the same.
"1. The executable version of the MQSeries client samples share the same source as the samples that run in a server environment."
Is there any change to the source code that needs to be made to allow it to connect to a remote QM?
--------------------
When I try to connect it to the remote QM I get the following error;
AMQSBCG0 - starts here
**********************
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
Quote:
Large being greater then 6 MB.
Using the MQSERVER variable, you can only get 4meg's of data (MAXMSGL(4194304)) .. you're going to need to use a client channel table for 6Meg. _________________ -wayne
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