• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create method in stateful session bean

 
jsquare
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that valid to have a no argument create method along with other create method with arguments in a stateful session bean home method

example:

public interface StoreHome extends EJBHome
{

public StoreFront create() throws RemoteException, CreateException
{
}

public StoreFront create(String name) throws RemoteException, CreateException
{
}
}
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stateful beans can have overloaded create methods. Its legal. Make sure to match it with a ejbCreate in your bean.
 
kappiil patel
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't think that session bean can have overloaded create() method
it can have for Entity Bean
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it can have for Entity Bean


On the contrary entity beans are not required to have create() methods. Its optional
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic