• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

how do i specify my property file?

 
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
I am using a Oracle 9iAS Rel 2 on a windows box. My web application needs couple of property files when it starts up. What configuration is required for 9iAS to read property files?

thanks in advance
Ravee
 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ravee,
You can reference the property files as init parameters in the web.xml.
 
Ravee Bhat
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Jeanne, shall try that.
In the meantime I did a lil experiment with the classpath in the website properties of my application in my OC4J instance. Added d:\propDir to the classpath and put my property file in that directory. And when print 'System.getProperties()' i can see all the properties from my property file loaded into this. Is this the way it works?

Another query is , if I put the property file in my WEB-INF/classes directory , in my opinion I should be able to say ClassLoader.getSystemResource(...) load that resource (my property file) from the classpath? Is this correct?

thanks again,
 
Can you smell this for me? I think this tiny ad smells like blueberry pie!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic