You might need to start two Nuxeo instances for various reasons, like testing stateful/stateless packaging, or running two different Nuxeo applications. To achieve it, you have 2 ways (both works with 2 or more jbosses).
This way creates one virtual network interface per instance of JBoss. To create the virtual interface:
Then you need to set up the DNS to allow the JBosses to find each other.
The names used by Nuxeo are:
- jboss1 is nxplatformserver
- jboss2 is nxwebserver
one of them need to be used as jmsserver
In /etc/hosts, add:
Then you bind JBoss to the virtual interface at start up.
With this setting, you can easily test network problems.
To test a dropped connection:
ifconfig eth0.1 down => not working
reconnect
- uncommment in /default/conf/jboss-service.xml the Service binding part :
There is a reference to sample-bidings.xml. If your jboss has been created from maven you may not have this file. You can take this
. In that file, you can even find more ports configurations allowing you to run more Jboss at the same time (ports-02, ...)
- change in nuxeo.properties the streaming and remoting server port from 62474 to (for instance) 63475:
- replace with new port number in open-social property file in nuxeo.ear/config/opensocial.properties (8180 instead 8080 for instance)
- if you use jbossctl script, change the PORT variable :
and the JNPPORT variable :