• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

create method in stateful session bean

 
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
{
}
}
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • 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.
 
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
MyEclipse IDE Firefox Browser Linux
  • 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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic