Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create ( ) in Home Interface

 
jay roy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

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?


thanks
jtc
 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the type of the bean that you are developing.
All the create methods need to have a matching ejbCreate in the bean class.

I think for stateless session beans you need to have only one no-argument create method.
 
jay roy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for reply asif

so if i change from create() to createMyMethod() in home interface, do i change ejbCreate() to ejbcreateMyMethod() for stateless session beans.

thanks
J
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic