Search code examples
jbossejb-3.0stateful-session-bean

Why is there only one stateful session bean?


I tried following example for a stateful session bean http://www.roseindia.net/ejb/example-of-statelfulbean.shtml, but when I use two browsers I only get the same session bean.
I thought there is a session bean for each connection/client. What is wrong?

I use the JBoss 5.0.1 AS for testing and deploying.
Thanks for any advices.


Solution

  • The problem was that I got the session bean in the servlet once, but I have to get it for each session and store it in the session data.