I have a question regarding the proper place to put my Helper class.

If I have a Helper class with all static methods, does it make sense to leave 
it in the .war file (WEB-INF/classes), or to convert it into a ejb3 bean and 
place it in the ejb deployment directory?

I'm guessing there's less overhead to call it in the war
Ex.

  | MyHelperClass.doSomething();
  | 

than in the EJB3 directory
Ex.

  | InitialContext ctx = new InitialContext();
  | MyHelperClass myHelper = (MyHelperClass) 
ctx.lookup(MyHelperClass.class.getName());
  | myHelper.doSomething();
  | 

Especially if it needs to be called in multiple places, multiple times.

Does anyone have any guidance or suggestions? I guess I need to know when and 
why to use a ejb3 class over a regular class file.  Are ejb3 classes only to 
manipulate the persistence files (saving/retrieving of .par class files from a 
database)?



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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to