Basic HTML version of Foils prepared Aug 14 1997

Foil 54 Example: Main Server Program

From JavaBeans CORBA ComponentWare UC Web applications Certificate -- Aug 11,14 97. by Geoffrey C. Fox, Wojtek Furmanski


package Counter;
class CountServer {
static public void main(String[] args) {
try {
CORBA.ORB orb = CORBA.ORB.init(); // Initialize the ORB
CORBA.BOA boa = orb.BOA_init(); // Initialize the Basic Object Adapter
CountImpl count = new CountImpl("My Count"); // create Count object
boa.obj_is_ready(count); // export new object to the ORB
boa.impl_is_ready(); // ready to service requests
} catch(CORBA.Exception 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 Thu Jan 8 1998