Oops. That was my mistake. I guess you cannot use
InitialContext context = new InitialContext();
Passing the JNDI initial values did the trick.
Do you need to give JNDI values to the context initialization even if the messaging is done from within the app server.
[Message sent by forum member 'manikantaniyer' (manikantaniyer)]
http://forums.java.net/jive/thread.jspa?messageID=204768