Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

identifying weblogic home through java

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Is there any way to identify tht root directory of weblogic(installation directory) using java
 
weblogic contain some classes called t3servicesDef. by that class you can know Home of weblogic. this is example of how you can use this...

import weblogic.common.T3ServicesDef;
import weblogic.common.T3Services;
import weblogic.common.T3Exception;

public class WeblogicUtil {

public static String getWeblogicHomeDirectory()
throws T3Exception {
T3ServicesDef t3 = T3Services.getT3Services();
return t3.config().getProperty("weblogic.system.home");

}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top