Dear jboss users,
I have two issues about ejb-refs to other
ejb.
1) Is it always necessary to create a new Initial
context when you want to access another ejb that is <ref>erred
to in the deployment descriptors ?
.....
InitialContext jndiContext = new InitialContext();
            Object ref =
                        jndiContext.lookup(jndiName);
.....
this way, the only advantage vs. looking for a Bean that
is not referred in the descriptors is that is not necessary
to set up every time the context properties...but
isn't it possible to use the bean context (Session Context / Entity
Context) instead of instantiating every time a new Initial Context ?

2) How do you accomplish lookup of a bean that is declared as an
EXTERNAL ejb-ref ?

Thanks a lot
Francesco




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to