Basic HTML version of Foils prepared July 15 1998

Foil 26 Publishing the Client Object Reference (CORBA) I

From Java Distributed Collaborative Environment as a CORBA and RMI Example Tutorial: ITEA HPCC Conference Aberdeen Md. -- July 13 98. by Shrideep Pallickara


{ // Initialize the ORB. org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(thisClient);
// Create the ClientControl object. ClientControlImpl control = new ClientControlImpl(thisClient); orb.connect(control);
try { /* Get a reference to the Naming Service */ org.omg.CORBA.Object
nameServiceObj = orb.resolve_initial_references("NameService");
if (nameServiceObj == null) {
System.out.println("Name Service Object = null");
return; }
org.omg.CosNaming.NamingContext nameService = org.omg.CosNaming.NamingContextHelper.narrow(nameServiceObj);
if (nameService == null) {
System.out.println("nameService = null"); return; }
NameComponent[] collabName =new NameComponent ("Collaboration", thisClient.partyName+"Chat"+"Coordinator")
};
System.out.println(thisClient.partyName+"Chat"+"Coordinator");



© 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 Sat Nov 28 1998