I have a similar situation. I have an installation of JBoss 3.2.7 running on a Windows 2003 server that cannot be disturbed.
Is it possible to install and run a newer version of JBoss (4.2.1) on the same server without conflicts?
In both installations, I would like to run the default instance of the server as a Windows Service ... for the 3.2.7 version, the service is already configured and running.
Thanks for any help.
Yes, it can be done. I have multiple versions of JBoss AS on my PC and on occasion I run multiple copies at the same time.
To do this, install each version of JBoss AS in a separate location and then follow the instructions at http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine to either configure unique ports or bind to unique IP addresses.
To run multiple instances of JBoss you need to ensure that there are:
No directory/file conflicts. So install it in a different directory.
No database conflicts. So modify DataSource definitions to use different data bases.
No TCP/IP port conflicts. This is the hardest since JBoss uses quite a few ports. For example JNDI 1099, Tomcat 8080 etc. See the wiki at http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigurePorts to see how these can be changed.
Its worth searching the forums and the wiki to find answers.
One more thing. Each version of JBoss AS prefers a different Java version. For example, you might want to use JVM 1.4.2 for JBoss AS 3.2.7, but JVM 5.0 for JBoss AS 4.2.1. That is also no problem. Install both JVMs, and then in run.bat or run.sh set JAVA_HOME to the installation directory of the preferred JVM.
Thanks for the pointers.
For the current installation of JBoss AS (v3.2.7), the JAVA_HOME has been set as an ENVIRONMENT VARIABLE. Hopefully, when I specify it in the run.bat file for the new installation, this value will override the env. variable set globally.
I will give it a shot and also try to configure JavaService for the 4.2.1 installation.