JBoss Application Initialization

Posted on 2008-11-03
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?

Question by:pinkushn
    1 Comment
    LVL 5

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Title # Comments Views Activity
    activemq cluster 1 232
    error when deploying 23 504
    using multiple database in adf application 15 148
    VS 2015 Apache Cordova mobile app 2 81
    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 …
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now