//
try {
P_SERVER_URL = props.getProperty( PROP_SERVER_URL ).trim();
} catch( NullPointerException e ) {
logger.error( "No SERVER_URL property set in " + PROPERTIES_FILENAME );
throw new InitableException( "No SERVER_URL property set in " + PROPERTIES_FILENAME );
}
//
// Get the XML-RPC client.
//
try {
if( P_USE_LITE_CLIENT ) {
client = new XmlRpcClientLite( P_SERVER_URL );
} else {
client = new XmlRpcClient( P_SERVER_URL );
}
} catch( MalformedURLException e ) {
logger.error( "Could not connect to " + P_SERVER_URL + ": " + e.toString() );
throw new InitableException( "Could not connect to " + P_SERVER_URL + ": " + e.toString() );
}
// Done.
logger.info( "BitPassAdapter initialized successfully." );
}