View RSS Feed

Advanced Java

EJB Performance Tips

Rate this Entry
by , 02-18-2012 at 03:16 PM (917 Views)
Tune EJB calls. They are expensive.
Use Plain Java Object (POJO), when you do not need an EJB.
If EJB client and EJB are deployed on same JVM, then use Local Interface.
Multiple entity beans must be wrapped in one session bean to reduce remote calls.
Use transient with unnecessary data variables to avoid network overhead.
Always cache to EJBHome references so that do not need to lookup JNDI each time.
Set transaction time out.
Use clustering.
Use HttpSession intead of Stateful session bean.
Use ejbCreate() method to cache bean resources.

Submit "EJB Performance Tips" to Facebook Submit "EJB Performance Tips" to Digg Submit "EJB Performance Tips" to del.icio.us Submit "EJB Performance Tips" to StumbleUpon Submit "EJB Performance Tips" to Google

Categories
Performance

Comments