The Artima Developer Community
Sponsored Link

Java Answers Forum
How to get Properties loaded automatically by the JVM

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Anjan Bacchu

Posts: 18
Nickname: anjanb
Registered: Mar, 2002

How to get Properties loaded automatically by the JVM Posted: Mar 13, 2002 11:35 AM
Reply to this message Reply
Advertisement
Hi,

I know of 2 techniques to get Java Properties into the System Namespace.
a) through the -D command line parameter during JVM startup

b) System.setProperty(), setProperties() calls.

Is there any way I can place a Property file in a particular place and expect that its properties get loaded as System Properties ?

I am looking for a way similar to jndi.properties (which if placed in the classpath, will get loaded by the JNDI sub-system).

Thank you for any hints,

Best Regards,
ANJAN

Topic: Printing in Java bu Dot Matrix Printer Previous Topic   Next Topic Topic: Please Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use