Basic HTML version of Foils prepared May 19 1999

Foil 54 Visigenic Main Server Program Code

From CORBA Common Object Request Broker Architecture Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Wojtek Furmanski, Nancy McCracken, Chao-Wei Ou, Shrideep Pallickara


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

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999