38 |
|
|
39 |
package gnu.CORBA.NamingService; |
package gnu.CORBA.NamingService; |
40 |
|
|
41 |
import gnu.CORBA.Functional_ORB; |
import gnu.CORBA.OrbFunctional; |
42 |
import gnu.CORBA.IOR; |
import gnu.CORBA.IOR; |
43 |
|
|
44 |
import org.omg.CosNaming.NamingContextExt; |
import org.omg.CosNaming.NamingContextExt; |
102 |
try |
try |
103 |
{ |
{ |
104 |
// Create and initialize the ORB |
// Create and initialize the ORB |
105 |
final Functional_ORB orb = new Functional_ORB(); |
final OrbFunctional orb = new OrbFunctional(); |
106 |
|
|
107 |
if (args.length > 1) |
if (args.length > 1) |
108 |
for (int i = 0; i < args.length - 1; i++) |
for (int i = 0; i < args.length - 1; i++) |
114 |
iorf = args[i + 1]; |
iorf = args[i + 1]; |
115 |
} |
} |
116 |
|
|
117 |
Functional_ORB.setPort(port); |
OrbFunctional.setPort(port); |
118 |
|
|
119 |
// Create the servant and register it with the ORB |
// Create the servant and register it with the ORB |
120 |
NamingContextExt namer = new Ext(new TransientContext()); |
NamingContextExt namer = new Ext(new TransientContext()); |
159 |
|
|
160 |
// Restore the default value for allocating ports for the subsequent |
// Restore the default value for allocating ports for the subsequent |
161 |
// objects. |
// objects. |
162 |
Functional_ORB.setPort(Functional_ORB.DEFAULT_INITIAL_PORT); |
OrbFunctional.setPort(OrbFunctional.DEFAULT_INITIAL_PORT); |
163 |
} |
} |
164 |
} |
} |