开发者

Why is there only one stateful session bean?

开发者 https://www.devze.com 2023-02-15 11:42 出处:网络
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 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.开发者_Python百科


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消