How to JNDI lookup from cluster 1 : a queue that exists in cluster 2 in Websphere 6?

Posted by user347394 on Stack Overflow See other posts from Stack Overflow or by user347394
Published on 2010-05-21T19:30:59Z Indexed on 2010/05/21 22:20 UTC
Read the original article Hit count: 179

Filed under:
|
|
|

I have a Websphere topology wherein in Cluster1, I have an MDB that's trying to publish to another MDB that resides in Cluster2. Since they're both in the same container, I tried simply

Blockquote Context ctx = new InitialContext(); ctx.lookup("jms/MyQueue"); Blockquote

The "jms/MyQueue" is configured in Cluster2. As you can see, this doesn't work!! 1) Do I have to provide an environment entry while creating the InitialContext? Even though both clusters are part of the same container? 2) If not, how then can I lookup the said queue in Cluster 2?

© Stack Overflow or respective owner

Related posts about websphere

Related posts about jndi