wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB Load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Load" Watch "EJB Load" New topic
Author

EJB Load

rajaji raja
Greenhorn

Joined: Jul 27, 2003
Posts: 9
how can the container can be forced to execute ejbLoad() first
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Hello Rajaji,
Would you be so kind to change your name to conform to the naming policy.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by rajaji 007:
how can the container can be forced to execute ejbLoad() first

I am confused... execute ejbLoad() first? First in relation to what?
Please explain your question in more detail.
Vinod John
Ranch Hand

Joined: Jun 23, 2003
Posts: 162
Originally posted by rajaji 007:
how can the container can be forced to execute ejbLoad() first

During the (entity) ejb lifecyle ejbLoad is called before the bean becomes available for use and also the container calls ejbLoad before starting a transaction. Most appserver has a property that indicate whether the database is shared by multiple application you set it appropriatly to call ejbLoad ever time the bean is accessed (by calling finders), though this would take away the benefit of using entity EJBs.
So now when do what ejbLoad to be forced ?
[ August 17, 2003: Message edited by: Vinod John ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Load
 
Similar Threads
Private methods
Can the color for the disabled item be changed
WA #1.....word association
URGENT - NEED HELP - Block Code
error in Marcus Green 2.