[jboss-user] [Installation, Configuration & Deployment] - Re: Help on different instances of jboss

jaikiran do-not-reply at jboss.com
Thu Aug 10 09:31:54 EDT 2006


To summarize, here's what you are trying to achieve:
1) Run 2 instances of JBoss on the same machine
2) Point each instance to use different versions of Java.

Here's how you can do it:

1) To run multiple instances on same machine:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine

2) To set each instance to point to different Java versions:
Each JBoss will have will be launched using the run.bat file which is present in %JBOSS_HOME%/bin directory. You will have to change this file as follows:

For the JBoss which you want to run with Java 1.5 add JAVA_HOME entry to point to your Java1.5 home:
@echo off
  | rem -------------------------------------------------------------------------
  | rem JBoss Bootstrap Script for Win32
  | rem -------------------------------------------------------------------------
  | 
  | rem $Id: run.bat,v 1.13.4.3 2006/05/12 10:40:07 dimitris Exp $
  | 
  | set JAVA_HOME="C:/jdk1.5.0_07"

In the other JBoss on which you want to use Java 1.4 change run.bat to:

rem -------------------------------------------------------------------------
  | rem JBoss Bootstrap Script for Win32
  | rem -------------------------------------------------------------------------
  | 
  | rem $Id: run.bat,v 1.4.4.4 2003/11/12 03:16:35 juhalindfors Exp $
  | set JAVA_HOME="C:/j2sdk1.4.2_04"



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964363#3964363

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964363



More information about the jboss-user mailing list