Question : JBoss Application Initialization

I have a question about startup of my java ee application in JBoss.  I keep track of whether users are 'logged in' in my database.  Every time JBoss restarts, I want all the logged in booleans to be set to false.  Where do I put application initialization code in JBoss?

I saw a post that inidicated using a Servlet that loads on startup, but surely there is a way to do this without getting the web container involved?

Thanks.

Answer : JBoss Application Initialization

An alternative approach may be setting all the logged in booleans to false while shutting down the application or JBoss but here you may need to take care of the server misbehaviour too.
Random Solutions  
 
programming4us programming4us