users@glassfish.java.net

Re: how is sun-ejb-jar.xml configured to allow remote AND local access (EJB

From: <glassfish_at_javadesktop.org>
Date: Sun, 13 Jan 2008 21:25:52 PST

Glad to hear your problem is resolved :)

Note that while sun-xxx.xml is not required when looking up local/remote beans in the same Java EE application unit (=module that you are deploying your application as), it is required when looking up remote beans in the following case:
- The application doing the lookup is in a different deployment unit, even if it is deployed to the same server instance.
AND
- The application doing the lookup is packaged with a J2EE 1.4 or earlier deployment descriptor. (A Java EE 5 component can use mapped-name annotation or equivalent deployment descriptor instead of the sun-XXX.xml definitions.)
[Message sent by forum member 'dkoper' (dkoper)]

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