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


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



© 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