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 » Sending msg to remote q from Java prog

Post new topic  Reply to topic
 Sending msg to remote q from Java prog « View previous topic :: View next topic » 
Author Message
gr111
PostPosted: Mon Jul 28, 2003 12:02 am    Post subject: Sending msg to remote q from Java prog Reply with quote

Newbie

Joined: 27 Jul 2003
Posts: 5

I want to send a msg to remote queue from java Prog. Sending to local queue is okay but while putting the msg to remote queue gives the error -
=========================================
MQJE001: Completion Code 2, Reason 2087
An MQ Error Occurred: Completion Code is : 2

The Reason Code is : 2087
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2087
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:1391)
at QSender.main(QSender.java:41)
=========================================

Any code / help
Back to top
View user's profile Send private message
Ratan
PostPosted: Mon Jul 28, 2003 8:16 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

2087 means unknown Queue Manager. Check if your remote QM is accessible. Check to see if the channels are defined properly.

-Ratan.
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Tue Jul 29, 2003 10:42 am    Post subject: Reply with quote

Jedi Knight

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

I would guess that your remote q definition doesn't have an xmit queue setup that allows MQ to figure out where this message will be going.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jonevu
PostPosted: Thu Jul 31, 2003 8:08 am    Post subject: Reply with quote

Newbie

Joined: 30 Jul 2003
Posts: 3
Location: Chicago, Illinois

You will have to process the transaction as an MQ client to the remote site. This means that your MQEnvironment object must define a channel that is accessible to the remote queue manager. For example, including 'mqm' in the server channel connection's MCA tab should do the trick. However, the qmgr's security may be compromised, as it may give access to anybody. Good luck!
_________________
Certified MQ Series Expert
Certified C++ Expert
datasensellc@attglobal.net
Back to top
View user's profile Send private message
psanders
PostPosted: Thu Jul 31, 2003 9:43 am    Post subject: Reply with quote

Apprentice

Joined: 02 Apr 2002
Posts: 27

Can you put a message with amqsputc. It's a good way to test the plumbing before starting to write code. There is no difference between putting a message to a remote and a local queue so I suspect you have a xmit queue / channel issue.
Back to top
View user's profile Send private message
ycchin
PostPosted: Fri Aug 01, 2003 1:18 am    Post subject: Remote Reply with quote

Newbie

Joined: 30 Jul 2003
Posts: 4

can some1 give me portion of the code to put message in
a remote queue. Can't seem to be able to get any help on this
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 01, 2003 7:43 am    Post subject: Re: Remote Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

ycchin wrote:
can some1 give me portion of the code to put message in
a remote queue. Can't seem to be able to get any help on this


The code to put a message to a remote queue is the same as the code to put a message to a local queue.
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 » Sending msg to remote q from Java prog
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.