This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to read an external properties file in weblogic 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to read an external properties file in weblogic 6.0" Watch "How to read an external properties file in weblogic 6.0" New topic
Author

How to read an external properties file in weblogic 6.0

Deepak Tiwari
Greenhorn

Joined: Jul 11, 2001
Posts: 3
Hi all,
In my earliar version of weblogic I used to read my external propeties file using this method
public void loadProps() {
String location = null;
T3ServicesDef services = T3Services.getT3Services();
try {
location = services.config().getProperty("weblogic.system.home") + java.io.File.separator + propertiesName;
props.load(new DataInputStream(new FileInputStream(location)));
}
catch (Exception e) {
mailError er = new mailError();
String error = new String("smeloanProps.loadProps:");
if (er.verbose)
er.sendError(e, error);
else {
System.err.println(error);
e.printStackTrace();
}
}
}
but since now as this all has been deprecated in weblogic 6.0 how do I still read my external file .
Plz help me on this
 
 
subject: How to read an external properties file in weblogic 6.0
 
It's not a secret anymore!