• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

when it will get executed?

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
May I know, when the ejbCreate() method will get executed? Can we pass arguments to the ejbCreate()? If so for which session bean, we should do that? please explain this some pratical scenario.
 
author & internet detective
Posts: 42135
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Suhas Madap:
Hi,
May I know, when the ejbCreate() method will get executed?


ejbCreate() is called behind the scenes when the client calls create() on your EJB's home interface.

Can we pass arguments to the ejbCreate()?


Yes. You can write your own ejbCreate methods and then those signatures are valid.

If so for which session bean, we should do that? please explain this some pratical scenario.


This is more frequently done for entity beans than session beans. You could use it for stateless session beans though - if you wanted to pass some initialization information.
 
reply
    Bookmark Topic Watch Topic
  • New Topic