• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB

 
priya shankar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
Here are some quesions i need answers..
1)where do u mention session time out property
2)Is SessionContext,jndi availabel after ejbRemove()
3)Can ejbRemove() can take primarykey class object in sessionBean
4)Entity bean must provide create() and find methods
priya
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)where do u mention session time out property
This is vendor specific. Which Application Server do you use?
2)Is SessionContext,jndi availabel after ejbRemove()
For Session and Message Driven Beans, the last lifecycle method is ejbRemove(). Nothing is available after that point. For Entity Beans, the last lifecylcle method is unSetEntityContext().
3)Can ejbRemove() can take primarykey class object in sessionBean
Session and Message Driven Beans do not have a primary key. Calling remove(java.lang.Object primaryKey) for a Session or Message Driven Bean will result in an exception.
4)Entity bean must provide create() and find methods
Entity Beans are not required to provide a create() method though in most cases you will have one. Additionally, Entity Beans must provide a findByPrimaryKey() but that is all that is required with regards to finders.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!