Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Application Deployment in JBOSS

Thread view: 
Amit_20 - 26 Jul 2006 11:22 GMT
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
Vincent van Beveren - 26 Jul 2006 15:52 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.