Application Deployment in JBOSS

A

Amit_20

Hi all,
I have a web Application which i have deployed in JBOSS,implementation
was succesful but i am facing a Problem,
Main servlet of application in it's init picks up the following string
System.getProperty ("user.home")), and loads the property file from
this location ,
currently System.getProperty ("user.home")), returns C:\Documents and
Settings\Mylogin .
I do not want to keep properties file at this location , i would
ideally like to keep them somewhere on d drive.
i have had tried setting the user.home to other directory by using
set user.home="PATH"
but in vain the servelt still returns C:\Documents and
Settings\Mylogin.
how can i change user.home to path of my choice??
thanks in advance
Amit
 
V

Vincent van Beveren

Amit_20 said:
how can i change user.home to path of my choice??
thanks in advance

When starting java you can specify -Duser.home=path as a commandline
argument. environment variable and system properties are not the same.

Vincent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,585
Members
45,082
Latest member
KetonaraKetoACV

Latest Threads

Top