-
1. Multiple Instance JBoss 4.3.2 Version
wdfink Jan 10, 2011 9:27 AM (in response to rbidanta)you have to use the option '-b <host address>' if you start with run.bat
As <host address> parameter you use the different virtual IP addresses (or host names if you configure DNS)
-
2. Multiple Instance JBoss 4.3.2 Version
peterj Jan 10, 2011 10:43 AM (in response to rbidanta)On Windows you can go into the network adaptor properties and set multiple IP addresses. Google "windows multi-home" for detailed instructions. You have to turn off DHCP to do this. Then you can use those address in the -b option as Wolf-Dieter mentioned.
-
3. Multiple Instance JBoss 4.3.2 Version
rbidanta Jan 10, 2011 11:04 AM (in response to wdfink)Thanks Fink / Peter,
Do we need to make any changes in the Jboss-services.xml file or for that matter in any configuration file for each instance that we make?
Regards,
-
4. Multiple Instance JBoss 4.3.2 Version
peterj Jan 10, 2011 11:18 AM (in response to rbidanta)No. Since each JBoss AS instance will use its own IP address, there is no concern with port conflicts. For example, both instances can use port 8080 for http.
The only othert consideration for running multiple instances is that each must have it own server configuration. For example, copy server/default as server/instance1 and server/instance2. Then run them as follows:
run -c instance1 -b xx.xx.xx.xx
run -c instance2 -b yy.yy.yy.yy
You cannot run multiple instances using the same server config - you will end up with file acccess clashes.
-
5. Multiple Instance JBoss 4.3.2 Version
rbidanta Jan 11, 2011 3:07 PM (in response to peterj)Thanks Peter,
This one did work for me. I want to configure these instances as windows services, I was not able to find any binary for the Jboss AS, In this does it mean that I have to create the services manually on the server?
Please suggest.
Regards,
Rashmi
-
6. Multiple Instance JBoss 4.3.2 Version
peterj Jan 11, 2011 3:25 PM (in response to rbidanta)You will need the service.bat and jbosssvc.exe files. These files come with JBoss AS 5.x and later (so you could copy the files form there, yes they will work with 4.2.x). Or you could get them by downloading JBoss Native.
As another option you could use the Tanuki Java Service wrapper.
http://wrapper.tanukisoftware.com/doc/english/download.jsp
See also:
-
7. Multiple Instance JBoss 4.3.2 Version
nickarls Jan 11, 2011 3:30 PM (in response to peterj)And the tips you gave in http://community.jboss.org/message/578447#578447 might also apply...
-
8. Multiple Instance JBoss 4.3.2 Version
rbidanta Jan 13, 2011 3:33 PM (in response to peterj)Thanks for the help. I have been able to set up multiple Jboss instance using multiple IP on single NIC.