• Post Reply Bookmark Topic Watch Topic
  • New Topic

statefulSession beans problem

 
Ajit Kumar
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • 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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!