1 of 1 people found this helpful
Wen 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:
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?
Ok, I know it's not a good idea to do that.
I will go back to the "standard“ way.
Thank you, Jaikiran.