On Fri, Aug 20, 2010 at 10:41 AM, Jean-Louis MONTEIRO < [email protected]> wrote:
> > No problem Jarek. > I was actually starting working on, but I have some doubts regarding the > spec. > > @Thiago, @Jarek: > - what's your understanding regarding the spec? I mean do we need to call > remove methods, etc (see StatefulContainer#timedOut method )? > Hmmmm... nice catch: Yes, I think so. :O) > > - regarding a Gurkan's post, is it relevant to create deamon threads only? > I didnt check the cache yet. The idea about using the thread is to remove the bean as soon as it is timedout by using the ScheduledExecutorService object. Here, I'm not sure about how to manage the number of threads. > - after creating a new Instance, shouldn't be necessary to have a timeout > set before calling #scheduleRelease? > The timeout value should come from the CoreDeploymentInfo object. I just realized that my testCase is not testing the default StatefulTimeout value (from spec: "If a stateful session bean timeout is not designated using this standard metadata, the container determines when to end the lifetime of the bean, possibly based on vendor-specific configuration.") tkx, Jean-Louis! []s, Thiago.
