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