*/
@Configure public void configure() throws ConfigurationException {
logger.fine("Configuring oracle service ");
myServers = ctx.getUniqueHosts();
if(myServers == null){
throw new ConfigurationException("Oracle DB hostname is not provided");
}
oracleHome = ctx.getProperty("serverHome");
if(oracleHome != null && oracleHome.trim().length() > 0) {
if (!oracleHome.endsWith(File.separator))
oracleHome = oracleHome + File.separator;
}else{
throw new ConfigurationException("Oracle DB serverHome is not provided");
}
oracleSid = ctx.getProperty("serverId");
if(oracleSid == null || oracleSid.trim().length() <= 0){
throw new ConfigurationException("Oracle DB serverId is not provided");
}
startupConf = ctx.getProperty("startupConf"); // What is this used for?
if(startupConf == null || startupConf.trim().length() <= 0){
throw new ConfigurationException("Oracle DB startupConf is not provided");
}
String includeListners = ctx.getProperty("includes");
if(includeListners != null && includeListners.trim().length() > 0){
StringTokenizer st = new StringTokenizer(includeListners,"; ,\n");
while(st.hasMoreTokens()){
listners.add(st.nextToken());
}
}else{
throw new ConfigurationException("Oracle DB includes property is not provided");
}
oracleBin = oracleHome + "bin" + File.separator;
oracleStartCmd = oracleBin + "sqlplus /nolog <<EOT\nconnect " +
" / as sysdba \nstartup pfile=" + startupConf + "\nexit\nEOT";
oracleStopCmd = oracleBin + "sqlplus /nolog <<EOT\nconnect " +