Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Spring and the fly likes Accessing property file from weblogic domain in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Accessing property file from weblogic domain in spring" Watch "Accessing property file from weblogic domain in spring" New topic
Author

Accessing property file from weblogic domain in spring

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Hi,

In my web application, I need to access property file located in weblogic domain. (<domain>/config/weblogic.properties)

Here is my code



I am getting file not found error. Any Idea how can I read file properly.

Thanks,

~ Anand,
SCJP 1.5, SCWCD 1.5
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

<domain>/config/weblogic.properties isn't on the classpath.

If you move it to <domain>/WEB-INF/classes/config/weblogic.properties it would be though.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
jQuery in Action, 2nd edition
 
subject: Accessing property file from weblogic domain in spring