dev@glassfish.java.net

Re: A question about EJB Invocation

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Mon, 22 Apr 2013 11:17:32 -0700

Hi Tang,

GlassFish does not support accessing EJBs across different applications
through a local interface, but there had been done some performance
improvements awhile ago for accessing remote EJBs in the same VM.

-marina

On 4/19/13 10:59 PM, Tang Yong wrote:
> Hi Marina, Mahesh,
>
> I have a question about EJB Invocation,
>
> [Background]
>
> EAR(War) --> standalone EJB
>
> The War and EJB are not in the same application, however, they are
> deployed in the same server instance(DAS), and EJB is deployed in a
> standalone way.
>
> [Question]
> I use Portable Global JNDI names to call the EJB from WAR. However, in
> order to invocate the EJB successfully, I must change my EJB interface
> view from local to remote.So, I have a question as following:
>
> Since War and EJB are deployed in the same server instance, whether can
> still use local interface view rather than using remote view? After all,
> using remote view will bring some performance lost.
>
> Thanks
> --Tang
>
> −−−−−−−−−−−−−−−−−−−−−−
> Tang Yong
> Senior Engineer
> Glassfish Team Developer(OSGi&OSGi-JavaEE)
> OSGi Alliance Supporter
> Blog: http://osgizone.typepad.com/tangyong/
>
> Nanjing Fujitsu NanDa Software Tec CO.,LTD
> http://www.fujitsu.com/cn/fnst
> Tel: +86-25-86630566-8310
> Fax: +86-25-83317685              
> −−−−−−−−−−−−−−−−−−−−−−
>