Connect to Integration Server (Generated Code)
The third stage creates the connection to Integration Server:
{
String returnString = null;
// create our connection context with the Integration Server
Context serverContext = new Context();
// connect to the server
try
{
serverContext.connect( "localhost:5555", "Administrator", "manage" );
}
catch( Exception ex )
{
Console.WriteLine("Connection to server failed, reason=" + ex );
return null;
}