Win a copy of Modern frontends with htmx this week in the Spring forum!
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic