users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Apr 2007 07:40:05 PDT

I try to bind in the java:comp/env/ejb in order to access object in my EJB by using the @EJB annotation.

But, I am not allowed to do this thing from outside of the Application Server (in a Swing Client), it seems that i have not the right.

I'm trying :
[i]jndi = new InitialContext();
jndi.rebind("java:comp/env/my_objet", obj);[/i]

Can anybody help me (if it's possible)?
Thanks
[Message sent by forum member 'nrichand' (nrichand)]

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