To add to the challenge, and before anybody says use the domain controller , one instance is an (EJB 3.1) embeddable started from within a main application.
1 of 1 people found this helpful
Does this work http://community.jboss.org/docs/DOC-16705 ?
P.S: I could not get it to work well with 127.0.0.2 (have to check why) but was able to get it to work with the IP address of my laptop.
If you are on Linux the virtual interfaces work well too:
ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0
ifconfig eth0:2 192.168.1.2 netmask 255.255.255.0
The way I do it now is by copying the whole distribution:
$ cp -a jboss-7.0.0.Beta3-SNAPSHOT ejb3
And modifying the standalone/configuration/standalone.xml to read:
<interface name="default"> <loopback-address value="127.0.0.2"/> </interface>
I don't like the copy of the whole distribution bit.