SERVER Create the Object DBLiteImpl myObject new DBLiteImpl Create the

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
// SERVER
// Create the Object
DBLiteImpl myObject = new DBLiteImpl();
// Create the IIOP Initial Context
Properties iiopProperties = new Properties();
iiopProperties.put( DBLiteServer.CONTEXT_NAME, DBLiteServer.IIOP_STRING );
iiopProperties.put( DBLiteServer.URL_NAME, DBLiteServer.IIOP_URL_STRING );
InitialContext iiopContext = new InitialContext( iiopProperties );
// Bind the object to the IIOP registry
iiopContext.rebind( "dblite", myObject );
System.out.println( "DBlite bound in the IIOP Registry as dblite and is up and ready..." );