-
1. Re: Multiple instances of JBoss on a server
jaikiran Mar 5, 2010 4:25 AM (in response to jimmy.hui)You can have multiple instances of JBoss AS running on the same physical machine. Then each AS instance can have the same application deployed. Which version of JBoss AS do you use? See this for more details on how to run multiple instances http://community.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine
-
2. Re: Multiple instances of JBoss on a server
jimmy.hui Mar 8, 2010 9:57 PM (in response to jaikiran)We are using JBoss 5.0 at the moment.
If I wanted to run multiple instances of JBoss, does that mean i need to create multiple server configurations within $JBOSS_HOME? So if I require 4 servers per developer, there would be 4 server configurations within $JBOSS_HOME per developer?
I guess the question is if I can move the server configuration files outside of the $JBOSS_HOME area such that when i do ./run.sh -c <server config name> it can find it outside of $JBOSS_HOME?
-
3. Re: Multiple instances of JBoss on a server
jaikiran Mar 9, 2010 9:46 AM (in response to jimmy.hui)jimmy.hui wrote:
We are using JBoss 5.0 at the moment.
I would recommend you move to 5.1.0
jimmy.hui wrote:
If I wanted to run multiple instances of JBoss, does that mean i need to create multiple server configurations within $JBOSS_HOME? So if I require 4 servers per developer, there would be 4 server configurations
Yes either 4 server configurations for the same AS installation or 4 separate server installations. The former consumes less disk space. The server configurations need not be within the JBOSS_HOME
jimmy.hui wrote:
I guess the question is if I can move the server configuration files outside of the $JBOSS_HOME area such that when i do ./run.sh -c <server config name> it can find it outside of $JBOSS_HOME?
You can create those configurations outside the JBOSS_HOME and then pass the jboss.server.home.url Java system property to point to the absolute file location of that configuration.
For example, to create a new config named "custom" (which is a copy of "default" config):
1) Copy JBOSS_HOME/server/default (and all its sub folders and files) to /home/me/workspace/custom
2) From the bin folder of JBoss AS, start the server using:
./run.sh -Djboss.server.home.url=/home/me/workspace/custom -Djboss.service.binding.set=ports-01
For Windows OS use run.bat.
The -Djboss.service.binding.set property points to a unique group of ports, so that the server startup won't fail with port in use exceptions, when more than one developer boots his server at the same time.
-
4. Re: Multiple instances of JBoss on a server
jimmy.hui Mar 10, 2010 2:08 AM (in response to jaikiran)Thank you for this, it certainly is pointing me in the right direction!
When I use -Djboss.server.home.url and point it to a custom folder and try to start up JBoss I get a MalformedURLException: No Protocol error. Would you happen to have any ideas on this?
Cheers
Jimmy
-
5. Re: Multiple instances of JBoss on a server
jaikiran Mar 10, 2010 2:20 AM (in response to jimmy.hui)1 of 1 people found this helpfuljimmy.hui wrote:
When I use -Djboss.server.home.url and point it to a custom folder and try to start up JBoss I get a MalformedURLException: No Protocol error. Would you happen to have any ideas on this?
Cheers
Jimmy
I did not post the correct value in my earlier post. The correct way to specify that URL is to include the file:// protocol. So something like
-Djboss.server.home.url=file:///home/me/workspace/custom
-
6. Re: Multiple instances of JBoss on a server
jimmy.hui Mar 10, 2010 6:40 PM (in response to jaikiran)Ahh yes, got it working last night! Thank you for the help!