Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multiple instances from running #43

Merged
merged 2 commits into from
Feb 25, 2014
Merged

Prevent multiple instances from running #43

merged 2 commits into from
Feb 25, 2014

Conversation

chhil
Copy link
Contributor

@chhil chhil commented Feb 25, 2014

https://jpos.org/issues/issue/jPOS-100

there are 2 implementations.
A file based one, that creates a lock file in the deplot directory and prevents multiple instances from running using the same deploy file.
A prt based on binds to a port on the system and prevents any other instance from running on the system

ar added a commit that referenced this pull request Feb 25, 2014
Prevent multiple instances from running
@ar ar merged commit 4d76a3f into jpos:master Feb 25, 2014
@chhil chhil deleted the jpos-100 branch February 25, 2014 17:55
@chhil
Copy link
Contributor Author

chhil commented Feb 26, 2014

Based on tests performed by Alejandro, the port based locking implementation works on Linux but file locking one does not work.

On windows both these implementations work and confirmed after my testing.

The file lock jdk api is suspect and works differently on the 2 OS's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants