i'm not sure whether my test case is simiar with yours. when I debug it: for
a remote lookup like: ctx.lookup("java:global/app1/module1/ejbname").
actually there are two lookup invocation: one for
ctx.lookup("java:global/app1/module1/ejbname", it will return a Reference .
then on client it will lookup the content of the reference:
ctx.lookup("java:global/app1/module1/ejbname_...Internal_RemoteBusinessHome".
after second lookup return, there will be EJB intialization work like
lookupRemote30BusinessObject() which involve some client side class
generation and loading. so the total time of lookup a remote EJB is a bit
long. it seems in current design of EJB container, it is very expensive to
lookup a remote EJB.
--
[Message sent by forum member 'guojun.shan']
View Post: http://forums.java.net/node/897798