class CountServer |
{ static public void main(String[] args) |
{ try { // Initialize the ORB. |
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(); |
org.omg.CORBA.BOA boa = orb.BOA_init(); // Initialize the BOA. |
// Create the Coordinator object. |
CountImpl _count = new CountImpl("Counter"); |
boa.obj_is_ready(_count); // Export the newly created object. |
System.out.println("Exported " + _count); |
System.out.println("CountImpl waiting for requests"); |
boa.impl_is_ready(); } |
catch(org.omg.CORBA.SystemException e) |
{ System.err.println(e); } |
} } |
Note: This code is created by the developer |