To be able to call the Nuxeo Services remotely using the Nuxeo Framework (e.g. when using Nuxeo RCP), you will need to bind an IP address when running the server. To do this, a few step are needed:
in
$JBOSS_HOME/server/default/deploy/nuxeo.ear/config/nuxeo.properties
change the value of org.nuxeo.ecm.instance.host
,
replace "localhost" by the IP address of the JBoss server,
in
$JBOSS_HOME/server/default/deploy/nuxeo.ear/config/
platform-config.xml
mono-server: ${org.nuxeo.ecm.instance.host} is used to reference address set in nuxeo.properties
multi-server: either use IP or set DNS aliases in your hosts file (default names in Nuxeo packages are usually something like nxcoreserver, nxsearchserver, nxplatformserver, nxjmsserver, nxwebserver, nxdbserver).
in
$JBOSS_HOME/server/default/deploy/nuxeo.ear/config/datasources/core-events-ds.xml
replace, if enabled, the 127.0.0.1 value of
java.naming.provider.url
by the IP address of the Jboss
server,
start jboss with the -b option:
./run.sh -b server_IP_address
When no IP is specified, JBoss 4.0 is bound to listening on any address, not only on localhost.
For obvious security reasons, JBoss 4.2 (version required by Nuxeo EP 5.2) has a different behavior. If you still want this, use -b 0.0.0.0
For a server in production, see SecureJBoss.