aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Class cast exception
Problem with PropertyPlaceholderConfigurer
MDB deployed in WebLogic and Queues in IBM MQ
Spring + JPA + Hibernate and multiple Database connection
DefaultMessageListenerContainer not getting started