Discussion:
[jboss-user] [JBoss Tools] - How to define multiple jboss 7 server instances based on the standalone folder using eclipse juno and jboss tools 4.0
Marc Gagnon
2013-02-18 20:26:21 UTC
Permalink
Marc Gagnon [https://community.jboss.org/people/MarcGagnonPincourt] modified the document:

"How to define multiple jboss 7 server instances based on the standalone folder using eclipse juno and jboss tools 4.0"

To view the document, visit: https://community.jboss.org/docs/DOC-48321

--------------------------------------------------------------
How to define multiple jboss 7 server instances based on the standalone folder using eclipse juno and jboss tools 4.0
I posted this in the general Jboss 7 discussion and then realized I could write it as a document...

Assume you are developping applications on your PC...
You might want to do deploy multiple instances when you need to deploy two applications, each one having different configuration.
Another reason might be that you have two applications that must be running but one of these will be stopped and restarted often while the other one could stay up. If the application which could stay up takes a while to deploy, you definitely prefer to run it in a different server instance.

It is true that we can deploy all applications in the same JBoss instance.
But sometimes, we need to isolate a specific instance with specific configuration files.
In previous versions of the JBoss server, all we had to do was to copy “server/default” to “server/foo” + provide an offset for ports.
In eclipse, the jboss plugin has to be updated.
See: http://www.eclipse.org/forums/index.php?t=msg&goto=489439 http://www.eclipse.org/forums/index.php?t=msg&goto=489439
Or: http://stackoverflow.com/questions/173487/problems-with-shutting-down-jboss-in-eclipse-if-i-change-jndi-port http://stackoverflow.com/questions/173487/problems-with-shutting-down-jboss-in-eclipse-if-i-change-jndi-port
Now, different JBoss version, different problem...

Let’s say we have this situation with application “foo” and “bar”.
Let’s say also that you want to use the basic standalone server configuration.
I will assume you are running eclipse on a windows PC with JBoss-7.1.1.Final.
Assume also that the JBoss home is C:\tools\jboss\jboss-as-7.1.1.Final

Steps to create a server instance for “foo” and control it from the command line and from eclipse:
Loading...