Binding to the sessionScheduler (CORBA) Vs (RMI)
CORBA Binding Process. private void getSessionSchedulerHandle() {
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(this, null);
long startTime = System.currentTimeMillis();
// Bind to the Scheduler Object
/* 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");
org.omg.CosNaming.NamingContext nameService =
org.omg.CosNaming.NamingContextHelper.narrow (nameServiceObj);
if (nameService == null) {
System.out.println("nameService = null");
NameComponent[] collabName =
{ new NameComponent("Collaboration", "Scheduler")};
jdce.scheduler.sessionSchedulerHelper.narrow (nameService.resolve(collabName));
System.out.println("Exception: " + e); } }
private void getSessionSchedulerHandle() {
"rmi://jojo.npac.syr.edu:7000/Scheduler");
} catch (java.lang.Exception exec) {
System.out.println("Unable to lookup created Scheduler");
_chatSession = (jdce.scheduler.RMISessionScheduler) remoteObject;