Hi,
Your code looks right. Your bean is the old EJB 2.1 style. You can simplify it by writing it as EJB 3 MDB with no deployment descriptors. Both 2.1 and 3 EJBs are supported by using 3.0 is much simpler and easier to debug.
Is your MDB client a standalone java client, or JavaEE application client? In either case, don't use Properties to instantiate InitialContext; use the no-arg constructor. For standalone client, include glassfish.home/lib/appserv-rt.jar in client classpath, among several other jars.
Make sure jms resources, like jms/ConnectionFactory, and jms/testQueue are already created in the server.
-cheng
[Message sent by forum member 'cf126330' (cf126330)]
http://forums.java.net/jive/thread.jspa?messageID=250233