package Counter; |
class CountServer { |
static public void main(String[] args) { |
try { |
CORBA.ORB orb = CORBA.ORB.init(); // Initialize the ORB |
CORBA.BOA boa = orb.BOA_init(); // Initialize the Basic Object Adapter |
CountImpl count = new CountImpl("My Count"); // create Count object |
boa.obj_is_ready(count); // export new object to the ORB |
boa.impl_is_ready(); // ready to service requests |
} catch(CORBA.Exception e) { System.err.println(e); } |
} |
} |
Note: This code is created by the developer |