Win a copy of Spring Boot in Practice this week in the Spring 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:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

statefulSession beans problem

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys,
I am using weblogic. I am running the pre-built example statefulSession bean example that is shipped with weblogic server.
The build is going fine.
When i run the client, the state is not maintained between different runs of the same client.
Has anyone checked these example on weblogic. any suggestions will be greatly appreciated.
thanks
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't be sure because I haven't seen the tutorial you're talking about, but one thing gives me a clue...

If you're talking about a stateful session bean, then the behaviour you describe is appropriate. "stateful" in this case means within the context of a session. This type of bean is used to hold a conversational state between the client and the app server. The example given in the tutorial I've seen is a shopping cart. The shopping cart in this case would hold items as long as the client was on the website. If they returned tomorrow, the cart would be empty. So while the session is good, so is the state. Session dead, state dead too.
reply
    Bookmark Topic Watch Topic
  • New Topic