users@glassfish.java.net

RE: EJB call takes 5-10 seconds on GlassFish 3, ~1 sec on ..

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Mon, 29 Jul 2013 09:20:00 -0400

if you really want to lose the jndi lookup plumbing
 
refactor your EJB code to POJI annotated with @Remote
 
http://www.javaworld.com/javaworld/jw-08-2006/jw-0814-ejb.html?page=2

Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 
> To: users_at_glassfish.java.net
> Subject: Re: Re: EJB call takes 5-10 seconds on GlassFish 3, ~1 sec on ..
> From: forums_at_java.net
> Date: Mon, 29 Jul 2013 03:23:21 -0500
>
> 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
>
>