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