users@glassfish.java.net

Re: Bind in java:comp/env/ejb from outside the AS

From: <glassfish_at_javadesktop.org>
Date: Fri, 13 Apr 2007 07:42:36 PDT

The java:comp/env namespace is read-only. The idea is that the developer configures
dependencies for the component that are placed in java:comp/env by the container.
Then, the application looks up those dependencies at runtime.
You can define dependencies (e.g. ejb dependencies) by using
annotations such as @EJB or a deployment descriptor.

We have a simple example here : https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html

You can also find more information on accessing EJBs in Glassfish on our EJB FAQ :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
[Message sent by forum member 'ksak' (ksak)]

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