Link to home
Start Free TrialLog in
Avatar of dentyne
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.properties, 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.

ASKER CERTIFIED SOLUTION
Avatar of ramazanyich
ramazanyich
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dentyne
dentyne

ASKER

Thanks for the reply.  So would this be correct?  I found the line I think you are describing and I added my property.

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.
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
Avatar of dentyne

ASKER

Thanks for the help.  I really appreciate it.  I'm sure I will have more questions later.