|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Connecting to remote QMGR in AMI |
« View previous topic :: View next topic » |
Author |
Message
|
kblv |
Posted: Tue Oct 25, 2011 6:32 am Post subject: Connecting to remote QMGR in AMI |
|
|
Novice
Joined: 11 Oct 2011 Posts: 23
|
Hi,
before I'll ask my question I just say: I KNOW AMI IS DEAD LONG TIME AGO.... I just MUST using it for some tests, so please help me...
I'm trying to put a message on a queue that is on a QMGR in a differnet machine.
Using the "AMI Administration Toll", I set policy+service.
On the service section I set the queue+qmgr name,
and on the policy section I set:
*connection name = defaultConnection
*connection type = client
*client channel name = the channel name
*client TCP address = the remote machune IP
I'm using java to activate the process, I got an exception while trying to open the AmSender object with the policy above.
The error is:
[AmException] Completion Code[2] ReasonCode[49], ClassName [AmSender] methodName [open]
Trying the same thing on a local QMGR (even not the default one) works fine.
I am using MQ7 on WINXP.
again, i know AMI is deprecated, but I just must use it  |
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 25, 2011 6:46 am Post subject: Re: Connecting to remote QMGR in AMI |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kblv wrote: |
again, i know AMI is deprecated, but I just must use it  |
As indicated here, are you using the full client install?
Or just the jar files you think you need? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kblv |
Posted: Tue Oct 25, 2011 7:13 am Post subject: |
|
|
Novice
Joined: 11 Oct 2011 Posts: 23
|
Yes, I have the full installation, server + client MQ V7.0.0.1 |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 25, 2011 7:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
and are you putting all of the ami jar files on the classpath along with all of the mq jar files... |
|
Back to top |
|
 |
kblv |
Posted: Tue Oct 25, 2011 7:34 am Post subject: |
|
|
Novice
Joined: 11 Oct 2011 Posts: 23
|
I'm using every jar I need to compile the program... it does compile, and works fine with the locals QMGRs.. but still failed in remote QMGR
 |
|
Back to top |
|
 |
kblv |
Posted: Wed Oct 26, 2011 2:38 am Post subject: |
|
|
Novice
Joined: 11 Oct 2011 Posts: 23
|
OK, solved it out,
just need to add the port in the TCP address,
*client TCP address = the remote machune IP (port)
 |
|
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
|
|
|
|