Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jul 2007
    Location
    Shah Alam, Malaysia
    Posts
    1

    Default 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. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    Same answer as to a recent thread.

    Joerg
    This post can contain insufficient information.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •