Announcement Announcement Module
Collapse
No announcement yet.
Command line app: How to check for existing ApplicationContext? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Command line app: How to check for existing ApplicationContext?

    Hello everyone,

    This is my first post, I am a newbie in spring. I am wondering how do I check from the same program an already running instance of ApplicationContext?
    So if there's already an instance running, I can exit the second one immediately.

    This is so that I can ensure that there is only one instance of the program running. FYI, I'm running a command line app that will execute some cron job stuff. The app will start with some parameters arguments.

    Right now, my implementation is I'm writing a flag file to the local disk but I would like to know whether there are cooler things that I can do with spring.

    I learning a lot of neat stuff using Spring. It will be a pleasure to know more.

  • #2
    Same answer as to a recent thread.

    Joerg

    Comment

    Working...
    X