users@glassfish.java.net

Re: How to take the same Stateful Bean from Remote RMI-IIOP and Local

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 May 2008 14:07:53 PDT

>> OK. The issue 5052 with test case is entered.

The code is behaving as required by the spec. It's not useful to store a stateful session bean
reference within a stateless session bean. An invocation on a stateless session bean
reference can be processed by *any* bean instance. There's no guarantee that the same stateless
session bean instance will be used for two successive invocations.

The EJB spec does not currently define a good way to share transient state between the
components of an EJB application. We're planning to add a new Singleton component in the next
version of the spec to address this shortcoming.
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=276134