ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Using Timers in J2EE Applications
Subject:   TimerHandle as class level attribute in a stateless SessionBean
Date:   2006-12-13 04:14:01
From:   sherazade
Hi,


the variable timerHandle is declared as a class level attribute. Since TimerDemoBean is a stateless SessionBean the value of timerHandle will be lost if the container decides to passivate/remove the bean even if a Timer has been initialized previously, am I right?!


Thus is makes not much sense to keep the handle in a class level attribute of a stateless SessionBean, does it?


regards