Kenneth Saks wrote:
> Roman Pohodzhai wrote:
>>
>> Hello!
>>
>> I have some problem with Glassfish V2 B58g and Stateful ejb's.
>>
>> When I try to lookup any stateful bean from JNDI I always receive a
>> new instance of ejb. I expected one instance per session but receive
>> new one.
>>
> Hi Roman,
>
> That's the spec-required behavior. Each injection or lookup of a
> stateful session bean
Just to clarify, this applies to the Remote or Local business interface
of an EJB 3.0 Stateful Session Bean. The legacy EJB 2.x programming
model that requires an explicit create() call from the client is
unchanged.
> results in a new instance with a unique identity. The current
> specification does not define any Singleton behavior. That's a
> feature under strong consideration for EJB 3.1.
>
>>
>>
>> Thanks in advance!
>>
>>
>>
>> Sincerely,
>>
>> Roman Pohodzhai
>>
>>
>>
>> Spline-software : http://www.spline-software.com
>> e-mail: _rpohodzhai_at_spline-software.com_
>>
>> skype account : rpohodzhai
>>
>>
>>
>