Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb should'nt use the class loader!

 
Praveen Kumar Mathaley
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
ejb is not allowed to get reference to default/current class loader? why is it so?
my idea is to define helper classes for Stateful/Stateless Session Bean and load and call the method dynamically...
i am confused about this limitation!
also what does it mean when ejb is not allowed to define new class??

thank you,
Praveen
[ July 26, 2005: Message edited by: Praveen Kumar Mathaley ]
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class loader is JVM dependent object and thus it should not be used in EJB as you might have to deploy EJBs in different JVMs developed by different vendors with different implementation.

You might consider the alternative that looking up the class/object via JNDI while the class/object is created during the container starts up.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic