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?