Author |
Message
|
mmm123 |
Posted: Thu Oct 13, 2005 7:32 am Post subject: sorce code for amqsgetc |
|
|
 Newbie
Joined: 31 May 2005 Posts: 7 Location: Midlands, United Kingdom
|
I'm looking for the source code for amqsgetc... to give me the ability to get msgs from a remote qmgr.
Looking in /opt/mqm/samp/ I cannot see it in there.
Any ideas?
Cheers,
Mike |
|
Back to top |
|
 |
EddieA |
Posted: Thu Oct 13, 2005 7:53 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Did you load the samples as part of your install.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
fschofer |
Posted: Thu Oct 13, 2005 7:56 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
|
Back to top |
|
 |
mmm123 |
Posted: Thu Oct 13, 2005 7:59 am Post subject: |
|
|
 Newbie
Joined: 31 May 2005 Posts: 7 Location: Midlands, United Kingdom
|
Hi Eddie,
Yes, I can see other sample program source codes - amqsget0.c included
However, I dont see one for amqsgetc ... Its not the same source code as amqsgetc is it??
Cheers, Mike |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 13, 2005 8:01 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mmm123 wrote: |
Its not the same source code as amqsgetc is it?? |
Why wouldn't it be?
See fschofer's very helpful post. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mmm123 |
Posted: Thu Oct 13, 2005 8:30 am Post subject: |
|
|
 Newbie
Joined: 31 May 2005 Posts: 7 Location: Midlands, United Kingdom
|
Maybe showing my ignorance here as i'm not very experienced with MQ but I thought that the amqsgetc allows you to connect to remote queue managers where amqsget only lets you to connect to local queue managers.
I have set the MQSERVER variable and can connect and get msgs from the remote qmgr... however, when I try to download large msgs I get the truncation error 2080.
I took the amqsget0.c source code and modified it to accept larger msgs... it works file locally, however I get the 2059 error code when I try to connect to a remote qmgr.
Any Ideas?
Cheers, Mike |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 13, 2005 8:34 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
hopsala |
Posted: Thu Oct 13, 2005 10:16 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
mmm123 wrote: |
Maybe showing my ignorance here as i'm not very experienced with MQ but I thought that the amqsgetc allows you to connect to remote queue managers where amqsget only lets you to connect to local queue managers. |
Listen, it's all very simple - it's the same code, linked with a different library - that's how MQ client works; you probably linked your prog with the server lib that can only connect to a local QM, that's why you got a 2059 when trying to connect to a remote qm. Read the link jeff posted. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 13, 2005 10:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
hopsala wrote: |
Read the link jeff posted. |
That was Frank.
I was just requoting him, for emphasis. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|