dentyne
asked on
Setting a Java System Property
Hello,
I have no knowledge of Java Application Servers or how they work. But I am in charge of installing a Java web application. I have managed to install the Java JRE/SDK 1.4.2 and JBoss 3.2.3 with embedded Tomcat. I can get the jmx-console to come up so I figure I can begin installing this application. I am following the steps, but I am stuck on this step because I don't know how to do it:
"This software needs to know which type of database is being used. Do this by setting a Java System Property in the application server (such that deployed applications have access to the property). The name of the property should be 'RGDBTYPE' with a value of 'oracle'. "
What is this and how would I go about doing this? I sifted through the JBoss directories but couldn't find a properties type file other than server/default/conf/jndi.p roperties, but it looked like I shouldn't be messing with it.
Please be as detailed as possible and also explain how these properties work please. Thanks.
I have no knowledge of Java Application Servers or how they work. But I am in charge of installing a Java web application. I have managed to install the Java JRE/SDK 1.4.2 and JBoss 3.2.3 with embedded Tomcat. I can get the jmx-console to come up so I figure I can begin installing this application. I am following the steps, but I am stuck on this step because I don't know how to do it:
"This software needs to know which type of database is being used. Do this by setting a Java System Property in the application server (such that deployed applications have access to the property). The name of the property should be 'RGDBTYPE' with a value of 'oracle'. "
What is this and how would I go about doing this? I sifted through the JBoss directories but couldn't find a properties type file other than server/default/conf/jndi.p
Please be as detailed as possible and also explain how these properties work please. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
other -D option is some internal system property for jboss.
It doesn't matter where you put your -D parameter in that line.
oracle shouldn't be in quotation marks.
Your line should be:
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -DRGDBTYPE=oracle
It doesn't matter where you put your -D parameter in that line.
oracle shouldn't be in quotation marks.
Your line should be:
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -DRGDBTYPE=oracle
ASKER
Thanks for the help. I really appreciate it. I'm sure I will have more questions later.
ASKER
rem Setup JBoss specific properties
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -DRGDBTYPE="oracle"
set JBOSS_HOME=%DIRNAME%\..
What is the "D" for before? Should my RGDBTYPE have this "D" in front of it? Also, does oracle have to be in quotation marks? THanks.