Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

create method in stateful

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
Say if i have a create no args method in Stateful Session Beans. & no other create overloaded methods
Will the stateful bean work or is it necessary to overload the create method with args passed
I reckon the args are nothing but identifiers to maintain client specific info.(correct me if i am wrong)
In such a scenario(create with no args) how does the container maintain client specific info
Rgrds
Neerav
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Will the stateful bean work or is it necessary to overload the create method with args passed
no, there's no need to overload it; it will work with a single no-arg ejbCreate.
[ March 05, 2004: Message edited by: Andres Gonzalez ]
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its not necessary to pass Client specific information from the create() method only.
U can do that from yr business methods aswell...
For example when u use a shopping cart.. u would have business methods updating yr Client Specific State on yr Instace variables.
Providing create() methods with arguments is just the containers way of saying....u can initialise the bean with some data right now(During Creation)....or u can do it by yrself later in yr business methods.
I guess that helps....
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic