users@glassfish.java.net

JMS through local client in EAR fails, remote client does fine

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Jul 2009 07:13:18 PDT

Dear all,

I'm trying to access a JMS queue on glassfish from inside of an EAR deployed on the same domain. If I do so from a remote client using the usual JNDI/Corba settings the message is delivered to the queue and ends up on an MDB that is deployed with the EAR mentioned before.
But - when sending from inside the EAR, the message is not delivered to the queue. Or at least, it seems to be delivered (lookup works fine, QueueSender.send() throws no exception), but there is no result - neither in the queue, nor at the MDB. I've tried both, with an empty InitialContext and with the same settings as used in the remote client.
Sending is done from within a class dedicated to this job and nothing else. I've simply copied it over from the remote client to the EAR do prevent mistakes inside the code and it still doesn't work - well, I've investigated for the last 3-4 hours and this is getting really frustrating.

Any ideas what I might have missed?

Thanks in advance,
Max

PS: Glassfish is v2.1
[Message sent by forum member 'kazcor' (kazcor)]

http://forums.java.net/jive/thread.jspa?messageID=357234