-
1. Re: Can I Open Multiple JBoss Instances On One Machine Like This?
jaikiran Jul 25, 2011 5:20 AM (in response to chengwen)1 of 1 people found this helpfulWen Cheng wrote:
Now, my question is:
Since there is no difference between the content of "node1" and "node2", can I just keep only "node1" in "$JBOSS_HOME/server" and run multiple instance like this:
- $JBOSS_HOME
- server
- node1
- server
run.bat -c node1 -b 0.0.0.0 -Djboss.service.binding.set=ports-01 run.bat -c node1 -b 0.0.0.0 -Djboss.service.binding.set=ports-02 run.bat -c node1 -b 0.0.0.0 -Djboss.service.binding.set=ports-03
I tried it and it looks like working fine. But I am not sure about it.
Can I do this? Or did I ignore something that should be noticed ?
Thanks in advance.
You'll end up sharing the log, data and tmp directories between multiple JVM instances, which isn't a good thing. You can however specify different log, data and tmp directory for each of these instances by passing the appropriate system properties. Furthermore, you even will end up deploying the same application (from node1/deploy folder) into multiple JVMs. Is that what you want?
- $JBOSS_HOME
-
2. Re: Can I Open Multiple JBoss Instances On One Machine Like This?
chengwen Jul 25, 2011 5:48 AM (in response to jaikiran)Ok, I know it's not a good idea to do that.
I will go back to the "standard“ way.
Thank you, Jaikiran.