|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
witch channel to use from java MQ app |
« View previous topic :: View next topic » |
Author |
Message
|
nicomede |
Posted: Wed Jul 09, 2003 7:33 am Post subject: witch channel to use from java MQ app |
|
|
Newbie
Joined: 09 Jul 2003 Posts: 7
|
Hello,
I am using a java program to send/receive messages to MQ. Nothing strange so far.
My Websphere MQ has 3 channels : a server connexion channel, a send channel and a receive channel. It also have several queues : a local one, a transmission queue, a remote definition queue ...
How can I send/receive messages from my prog to the distant server via the local server (where the prog is running) ? Shall I use the send channel or the server connexion channel ? Should I use a connection channel ? (and then how ?!)
It is running well in local but I get a MQJE016 error when trying to post with the send channel on the remote definition queue.
Could anyone help ??
Many thanks.
N.D. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jul 09, 2003 7:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The way you put a message onto a queue that is local to a queue manager that your application is not connected to is to put it to a remote queue definition or a cluster definition.
Client applications connect to svrconns. Queue managers use sender/receiver channel pairs behind the scenes. Applications running on the same machine as the queue manager don't connect to channels at all.
You should change your java program to report the linked exception in addition to the normal exception that is giving you the MQJE016 code. The linked exception will give you the MQSeries completion code and reason code. These will help you determine what's really failing. |
|
Back to top |
|
 |
EddieA |
Posted: Wed Jul 09, 2003 7:55 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
You say:
Quote: |
from my prog to the distant server via the local server |
Are you using the term 'server' to mean machine or Queue Manager. If it is Queue Manager, then you will connect to the local Queue Manager in bindings mode, which does not need a Channel, and then MQ will take care of sending the messages from the local to the remote Queue Manager.
If you were talking 'machines', then your app will connect to the remote Queue Manager using a Server Connect (SVRCONN) channel.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
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
|
|
|
|