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 |
import gnu.CORBA.Unexpected; |
import gnu.CORBA.Unexpected; |
44 |
import gnu.CORBA.Version; |
import gnu.CORBA.Version; |
141 |
* @return the resolved object. |
* @return the resolved object. |
142 |
*/ |
*/ |
143 |
public synchronized org.omg.CORBA.Object corbaloc(String corbaloc, |
public synchronized org.omg.CORBA.Object corbaloc(String corbaloc, |
144 |
Functional_ORB orb) |
OrbFunctional orb) |
145 |
throws BAD_PARAM |
throws BAD_PARAM |
146 |
{ |
{ |
147 |
boolean corbaname; |
boolean corbaname; |
378 |
|
|
379 |
static NameParser n = new NameParser(); |
static NameParser n = new NameParser(); |
380 |
|
|
381 |
static void corbalocT(String ior, Functional_ORB orb) |
static void corbalocT(String ior, OrbFunctional orb) |
382 |
{ |
{ |
383 |
System.out.println(ior); |
System.out.println(ior); |
384 |
System.out.println(n.corbaloc(ior, orb)); |
System.out.println(n.corbaloc(ior, orb)); |
389 |
{ |
{ |
390 |
try |
try |
391 |
{ |
{ |
392 |
Functional_ORB orb = (Functional_ORB) ORB.init(args, null); |
OrbFunctional orb = (OrbFunctional) ORB.init(args, null); |
393 |
corbalocT("corbaloc:iiop:1.3@155axyz.com/Prod/aTradingService", orb); |
corbalocT("corbaloc:iiop:1.3@155axyz.com/Prod/aTradingService", orb); |
394 |
corbalocT("corbaloc:iiop:2.7@255bxyz.com/Prod/bTradingService", orb); |
corbalocT("corbaloc:iiop:2.7@255bxyz.com/Prod/bTradingService", orb); |
395 |
corbalocT("corbaloc:iiop:355cxyz.com/Prod/cTradingService", orb); |
corbalocT("corbaloc:iiop:355cxyz.com/Prod/cTradingService", orb); |