users@glassfish.java.net

Tip: How to speed up your app client startup (if calling remote ejbs)

From: <glassfish_at_javadesktop.org>
Date: Mon, 04 Oct 2010 10:28:12 PDT

We have 6 remote EJBs in our applications and we were trying to reduce bootstrap time.

I just realised that creating one instance of javax.naming.InitialContext and looking up all remote ejbs with that instance is just notably quicker than looking them up through Dependency Injection. The first ejb takes around two seconds, all subsequent ones 50 ms or so.


Pablo.
[Message sent by forum member 'pablopina']

http://forums.java.net/jive/thread.jspa?messageID=484325