Tag: single
Java Application – Make sure only single/one instance running – with File Lock and ShutdownHook
by jimmy on Jul.21, 2008, under English, Java, Programming
Often we want to make sure that only 1 instance our application running.
Because something terrible could happen when more than 1 instance running (for example the whole server would exploded and that would make you fired
)
Nevertheless what the reason, one of the way to make this happen is by creating a lock file as a sign that an instance is currently running.
So you application will have this flow: (continue reading…)