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 » IBM MQ API Support » problem AMI 1.2 C++ application crash

Post new topic  Reply to topic
 problem AMI 1.2 C++ application crash « View previous topic :: View next topic » 
Author Message
Verrnum
PostPosted: Wed Aug 13, 2008 11:59 am    Post subject: problem AMI 1.2 C++ application crash Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Wed Aug 13, 2008 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Verrnum
PostPosted: Wed Aug 13, 2008 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 14, 2008 6:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Verrnum
PostPosted: Thu Aug 14, 2008 9:17 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Aug 14, 2008 9:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

If you are a java programmer, I'd look into moving to JMS. From the SupportPac page:

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000641&loc=en_US&cs=utf-8&lang=en

Quote:
After June 2003, IBM has no plans to enhance the AMI with any new functions or platforms. IBM will however continue to support the AMI as described in the Technical Support section below.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Verrnum
PostPosted: Thu Aug 14, 2008 9:56 am    Post subject: Reply with quote

Newbie

Joined: 13 Aug 2008
Posts: 6

bower5932 wrote:
If you are a java programmer, I'd look into moving to JMS. From the SupportPac page:

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000641&loc=en_US&cs=utf-8&lang=en

Quote:
After June 2003, IBM has no plans to enhance the AMI with any new functions or platforms. IBM will however continue to support the AMI as described in the Technical Support section below.


Hi,

I am java programer but i need to upgrade an C++ existing application
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Aug 14, 2008 1:21 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Verrnum wrote:
bower5932 wrote:
If you are a java programmer, I'd look into moving to JMS. From the SupportPac page:

http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000641&loc=en_US&cs=utf-8&lang=en

Quote:
After June 2003, IBM has no plans to enhance the AMI with any new functions or platforms. IBM will however continue to support the AMI as described in the Technical Support section below.


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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » problem AMI 1.2 C++ application crash
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.