1 26 27 package org.objectweb.openccm.corba; 28 29 35 36 public abstract class TheORB 37 extends TheORBSingleton 38 { 39 45 51 54 private 55 TheORB() 56 { 57 } 58 59 65 71 78 public static String [] 79 initialize(String [] args) 80 { 81 82 85 for (int i = 0; i < args.length; i++) { 86 if (args[i].equals("-ORBInitRef")) { 87 i++; 88 String arg = args[i]; 89 int index = arg.indexOf('='); 90 String location = arg.substring(index + 1); 91 if (location.startsWith("mcast:")) { 92 93 args[i] = 96 arg.substring(0, index) + '=' + TheORBSingleton.request_ior(location); 97 } 98 99 } 100 } 101 102 103 104 setORB( org.omg.CORBA.ORB.init(args, null) ); 106 107 return remove_ORB_arguments(args); 109 } 110 111 114 public static void 115 destroy() 116 { 117 } 120 } 121 122 123 124 125 | Popular Tags |