|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
problem AMI 1.2 C++ application crash |
« View previous topic :: View next topic » |
Author |
Message
|
Verrnum |
Posted: Wed Aug 13, 2008 11:59 am Post subject: problem AMI 1.2 C++ application crash |
|
|
Newbie
Joined: 13 Aug 2008 Posts: 6
|
Hi,
i am working on a c++ application using AMI.
this application works fine on the system where the queue manager / AMI are installed (win NT)
but when i run the application on another system(win xp) with only AMI installed, the application crashs during execution when attempting to open the MQ channel (queue manager is configurered to accept another client by a specific channel)
the reason code is 49 et the reason code 2 is 6000.
PS: geting / putting messages on channel with command dos works fine from win xp
Thank you for your help |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Aug 13, 2008 12:48 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I'm guessing that you intend to run this application as an MQ Client, yes?
Did you bind the application with the MQ client bindings? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Verrnum |
Posted: Wed Aug 13, 2008 11:06 pm Post subject: |
|
|
Newbie
Joined: 13 Aug 2008 Posts: 6
|
bruce2359 wrote: |
I'm guessing that you intend to run this application as an MQ Client, yes?
Did you bind the application with the MQ client bindings? |
Hi,
yes i am trying to run this application as Client..
What do you mean by "binding tha app with the MQ client binding" ?
Are you talking about amt.xml and amthost.xml ?
Sorry i am beginner.
Thank you for yor help. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 14, 2008 6:14 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
There are two different libraries that support run-time environment: server and client.
An application that is to execute on the MQ server platform (a qmgr), then the application must be bound (link-edited) with the server bindings. If the application is to be executed on a client platform (no qmgr), then the application must be bound with the client bindings.
The supplied sample program amqsput, for example, is bound with the server bindings library; but is also supplied with a client version amqsputc.
If you are not a programmer, find one to help you. This is also discussed in the WMQ Application Programming Guide and WMQ Application Programming Reference. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Verrnum |
Posted: Thu Aug 14, 2008 9:17 am Post subject: |
|
|
Newbie
Joined: 13 Aug 2008 Posts: 6
|
bruce2359 wrote: |
There are two different libraries that support run-time environment: server and client.
An application that is to execute on the MQ server platform (a qmgr), then the application must be bound (link-edited) with the server bindings. If the application is to be executed on a client platform (no qmgr), then the application must be bound with the client bindings.
The supplied sample program amqsput, for example, is bound with the server bindings library; but is also supplied with a client version amqsputc.
If you are not a programmer, find one to help you. This is also discussed in the WMQ Application Programming Guide and WMQ Application Programming Reference. |
Hi,
Thank you your help.
I am java programer, but beginner in C++.
What is the name of client library to link ?
i linked amtcpp.lib and amtcpp.dll
i set "bin directory" in path and MQSERVER variable.
I use VS2005, and i am not sure how i linked lib.
But why are you talking about lib to link ?
Does my error code means problem about library ?
Is the amt.xml is the same between on application running on the same system with the queue manager and another one only client ?
Thank you for your help. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Aug 14, 2008 9:41 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
Verrnum |
Posted: Thu Aug 14, 2008 9:56 am Post subject: |
|
|
Newbie
Joined: 13 Aug 2008 Posts: 6
|
Hi,
I am java programer but i need to upgrade an C++ existing application  |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Aug 14, 2008 1:21 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Verrnum wrote: |
Hi,
I am java programer but i need to upgrade an C++ existing application  |
Look into the XMS support pack. This will give you JMS capability for non JMS languages (c, c++)
Enjoy  _________________ MQ & Broker admin |
|
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
|
|
|
|