Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Client to Remote Queue?

Status
Not open for further replies.

jmagana

MIS
Nov 8, 2000
2
US
I have a Java Application that writes fine to a Local Queue, but produces an error when I write to a Remote Queue. I get a fail with reason code 2045, OPTION_NOT_VALID_FOR_TYPE. Can someone help me?
 
I believe there is a limitation on queues that an MQ client can interract with. The JMS documentation states that clients can only open queues that are locally managed by the connected-to queue manager.

Your options?

1) Write to a local queue. Create a small triggered app on the MQ Server that picks up these mesages and forwards them to the remote queue. (Or use the Pub/Sub Broker free from IBM).

2) Cluster the queue managers and create a cluster queue on the first queue manager. You client app can write to this 'local cluster' queue. Your receiving app can also read from this 'remote cluster' queue.

Cheers,

Scott Meridew
MQ Squatred Inc.
 
Hi, you can not open a Remote Queue for INPUT, only for OUTPUT.

I had the same problem and now I can put messages in the remote queue.

Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top