Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read an external properties file in weblogic 6.0  RSS feed

Deepak Tiwari
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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") + + 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 {
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!