java - Multiple runs of same jar file has an affect to each other? -
i have 1 jar on linux machine. jar runs alone have start same jar different args. means 2 instances of application running @ same time. application hits db , has actions on file system creating files , folders. problem is, if both jars running, creating of files , folders on file system have effect on each other. means, folders saved on wrong place , on. if both instances of application have complete different folder structure.
so more problem regarding jvm or more programmatic problem?
the call start of jars java -jar app.jar
as 2 instances of same jar run in isolated jvms, execution of 1 jar doesn't impact another. far filesystem concerned, cannot write same location 2 processes @ same time.
Comments
Post a Comment