assuming you do the binding in jboss.xml you can look it up in 2 ways...
Object o = ctx.lookup("UserManager"); //assumes you have made the jndi name
UserManager in the global space
or...
binding it into the java;comp/env namespace with jboss.xml...
Object o = ctx.lookup("java:comp/env/user/UserManager");
Al
----- Original Message -----
From: Devraj Mukherjee <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 7:09 PM
Subject: [JBoss-user] Lookup question
> I have a session bean which is associated with the JNDI name
> user/UserManager. I am a bit confused with the way we refer to the JNDI
> name when doing a lookup. From an example I found that the lookup was been
> done using this line of code:
>
> Object objref = initial.lookup("java:comp/env/ejb/TheConverter");
>
> What would be the Lookup name for my bean??
>
> Devraj
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user