• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create in Stateful SB

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
In Stateless SB we need to have only 1 create no args method.
Suppose now in the DD i change this particular bean type from stateless to stateful. will it work . Now since there are no args in the create how will the app server maintain the state

Rgrds
 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by manish ahuja:
In Stateless SB we need to have only 1 create no args method.
Suppose now in the DD i change this particular bean type from stateless to stateful. will it work . Now since there are no args in the create how will the app server maintain the state.


The client-specific state of a SFSB is maintained by the member variables present in the bean class. If you do not pass the state information while creating the bean, then you can pass the information in the subsequent business methods that are called by the client. This state will remain valid and attached to this specific client through out the communication.
Normally, as part of the SFSB create() method, we pass the client state information. This is one of the reasons why SFSB have overloaded create() methods.
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic