How to JNDI lookup from cluster 1 : a queue that exists in cluster 2 in Websphere 6?
- by user347394
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?