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 Discussion » sorce code for amqsgetc

Post new topic  Reply to topic
 sorce code for amqsgetc « View previous topic :: View next topic » 
Author Message
mmm123
PostPosted: Thu Oct 13, 2005 7:32 am    Post subject: sorce code for amqsgetc Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Thu Oct 13, 2005 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
fschofer
PostPosted: Thu Oct 13, 2005 7:56 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,
do you see a file called "amqsget0.c".

For the description how to compile a mq program as client or server version
take a look at the application prgramming guide Part 3
http://publibfp.boulder.ibm.com/epubs/html/csqzal06/csqzal064c.htm#HDRBUILD

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
mmm123
PostPosted: Thu Oct 13, 2005 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 13, 2005 8:01 am    Post subject: Reply with quote

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
View user's profile Send private message
mmm123
PostPosted: Thu Oct 13, 2005 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 13, 2005 8:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fschofer wrote:
For the description how to compile a mq program as client or server version
take a look at the application prgramming guide Part 3
http://publibfp.boulder.ibm.com/epubs/html/csqzal06/csqzal064c.htm#HDRBUILD

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hopsala
PostPosted: Thu Oct 13, 2005 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 13, 2005 10:18 am    Post subject: Reply with quote

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
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 Discussion » sorce code for amqsgetc
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.