Author |
Message
|
mandy13 |
Posted: Wed Apr 17, 2013 1:53 am Post subject: MQCB giving enviornment error... |
|
|
Apprentice
Joined: 17 Apr 2013 Posts: 28
|
Hi All,
I'm trying to run the sample program amqscbf0.c which uses MQCB for registering the callback function "Message Consumer".
But MQCB is ending with reason code 2012 i.e. MQRC_ENVIRONMENT_ERROR.
I'm using AIX6.1.
I am kinda stuck at it. . Looking forward for your suggestions.
Thanks in advance |
|
Back to top |
|
 |
mandy13 |
Posted: Wed Apr 17, 2013 1:55 am Post subject: MQCB giving enviornment error... |
|
|
Apprentice
Joined: 17 Apr 2013 Posts: 28
|
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Apr 17, 2013 3:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks like you are using the client version. Did you set up the client environment variables?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mandy13 |
Posted: Wed Apr 17, 2013 3:54 am Post subject: |
|
|
Apprentice
Joined: 17 Apr 2013 Posts: 28
|
Hi fjb_saper,
>>Looks like you are using the client version.
May I know how could i identify which type (client/server) of version i'm using.
>>Did you set up the client environment variables
what client environment variables i need to set to make this program run.
Thanks for your response. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 17, 2013 4:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mandy13 wrote: |
May I know how could i identify which type (client/server) of version i'm using. |
Look to see which librairies you're linking when you compile the amqscbf0.c sample. Are you linking in the client libs or the server libs?
(Hint: Have you looked in the product InfoCenter for information on compiling and linking WMQ applications)
mandy13 wrote: |
what client environment variables i need to set to make this program run. |
The ones described in the product InfoCenter where it talks about client connections, containing values relevant for your site & your queue manager. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mvic |
Posted: Wed Apr 17, 2013 2:16 pm Post subject: Re: MQCB giving enviornment error... |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
mandy13 |
Posted: Wed Apr 17, 2013 7:13 pm Post subject: |
|
|
Apprentice
Joined: 17 Apr 2013 Posts: 28
|
Linking with libmqic_r was the catch.. The program is working now...
Thanks guys for the quick help.. appreciate it.. |
|
Back to top |
|
 |
|