The structure of Jboss AS 7 is quite different from that of Jboss 5. Now I will install 3 instances of standalone as follow:
One can see the standalone1 and 2 are c copy/clone of standalone.
I know if I want to start the instance of standalone, I wii go into directory bin/ and use the command as follow:
./standalone.sh -b ip
But how can I start the Jboss instance of standalone1 and 2?
I have the same problem like you.
I just start my server like this:
note1: standalone.bat --server-config=standalone-ha.xml -Djboss.node.name=nodeOne
note2 : standalone.bat --server-config=standalone-ha.xml -Djboss.node.name=nodeTwo -Djboss.socket.binding.port-offset=100
It works, but in that case, i have just one "deployments" folder. I cann't separate the two instances.
You should use "-Djboss...", upper case yes as this is a property.
No you cant because it will choice the directory before the profile is read.
Regarding your restrictions about domain:
You can configure a domain with different servers in exact this way where each server might have a different configuration (e.g. one EJB, one Web, one JMS) and deploy different applications there. The benefit is the single point of configuration, also if you spread over different physical boxes.
Only thing is that you start with different (system) users.
If the servers are located on different machines, does it make sense to use the domain module? Or the domain module just for multiple servers on the same machine?
Assumed several servers are locate on the same machine, according to the document I read, these servers share the same IP but with port-offset, right? How about if each server occuppies different ips?
How about load-balancing to these servers from the web-server such as Apache Httpd in front of the Jboss?
The domain mode is for administration of serveral JBoss server instances, no matter wether it is located on the same or different system.
You only need to prepare a JBoss with a host.xml that points to the DC (the domain.xml you might delete, its not necessary)
After that you can add new servers on that host via CLI (or configure still XML on the host.xml local, but this is not recommended)
You can add the <interfaces> element to each server element and overwrite the ip address. If you delete the global <interfaces> each server must contain its own interfaces element to specify the necessary ip addresses