Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JBoss Application Initialization

Posted on 2008-11-03
1
Medium Priority
?
435 Views
Last Modified: 2013-12-02
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.
0
Comment
Question by:pinkushn
1 Comment
 
LVL 5

Accepted Solution

by:
muktajindal earned 1500 total points
ID: 22883586
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Loops Section Overview
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question