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


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

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 Thu Jan 8 1998