ejb@glassfish.java.net

Re: : stateful EJB

From: Dies Koper <diesk_at_fast.au.fujitsu.com>
Date: Thu, 14 Jan 2010 16:54:59 +1100

> *Thanks,*
> *I wrote a simple stateful ejb that store int number and two methods
> getNumber() and setNumber(int x),*
> i'm calling the ejb from two separate sessions (two browsers)
> and if i set the number from first session i can see it from next
> session by calling getNumber().
> By your answer I understand it should not be so ?

Right, it shouldn't. You must be doing something you're not telling us
that make the EJB container think it's the same client. Or you're
keeping the value in a static variable or another shared location.