This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing property file from weblogic domain in spring
 
Similar Threads
Spring + JPA + Hibernate and multiple Database connection
DefaultMessageListenerContainer not getting started
Class cast exception
MDB deployed in WebLogic and Queues in IBM MQ
Problem with PropertyPlaceholderConfigurer