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.![]()


Reply With Quote