[jboss-user] [JBoss Seam] - Re: Seam performance concerns

stu2 do-not-reply at jboss.com
Sat Jun 23 19:15:08 EDT 2007


"mgrouch" wrote :  Use factories for stateless objects such as DAOs (so they are created once and not repeteadly created/destroyed).
  | 
  | ...
  | Do not forget to cache JNDI lookups. 
  | 

Again, you can certainly spend time doing this kind of stuff on the off chance that it will improve performance.  More likely you'll find that in modern JVMs, object creation for short lived objects is essentially free, and JNDI lookups (btw, you're using Seam, right?  Where are you directly interacting with JNDI anyway?) aren't going to be significant.

Spend some time with a profiler an find out what's going on.  It's irrefutable, and will show you where you should spend effort optimizing.  You may find that there are performance issues with Seam.  You'll also find that if you can clearly show the issue, the Seam team will be extremely responsive in addressing these.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057157#4057157

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057157



More information about the jboss-user mailing list