• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

ejb should'nt use the class loader!

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic