users@glassfish.java.net

Re: howto: message-destination-ref to assign factory and queue to Session b

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Nov 2007 18:30:40 PST

At first glance, there is some misunderstanding of mappedName attribute in @Resource annotations. mappedName is the global jndi-name of your resource, the same as the resource <jndi-name> in your sun-ejb-jar.xml. mappedName is not the resource reference name.

So you don't really need to have these resource elements in sun-ejb-jar.xml. Try removing sun-ejb-jar.xml, if it doesn't contain anything else.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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