Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Load

 
rajaji raja
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can the container can be forced to execute ejbLoad() first
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rajaji,
Would you be so kind to change your name to conform to the naming policy.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic