crete () - Home interface

We write create() in the home interface which extends EJBHome.But suprisingly, the create() doesnt exist in the EJBHome API, meaning the create() is defined by bean developer. So can i change the name of create() to createMyBean(). If yes, where else will i have to make changes?
(Excuse me if the question is silly,but i am trying to get into the depth of ejbs)

thanks
J
LVL 10
jaggernatAsked:
Who is Participating?
 
reach2piyushConnect With a Mentor Commented:
Can have 0 or more create methods defined in your home interface

Naming convention:
Method name should start with create like create<<AnyName>>
for every create you must have a corresponding
ejbCreate<<AnyName>> & ejbPostCreate<<AnyName>> defined in your bean.
0
 
Ajay-SinghConnect With a Mentor Commented:
You have to define create method with appropriate signature, the name could be different as well.

checkout this example: http://openejb.codehaus.org/Hello+World
0
 
jaggernatAuthor Commented:
>>>>the name could be different as well.



so you mean i can have createMyBean() instead of create()?
0
 
Ajay-SinghCommented:
yes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.