001 package org.omg.CosNaming; 002 003 004 /** 005 * Generated from IDL interface "NamingContextExt". 006 * 007 * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007 008 * @version generated at Sep 22, 2012 10:57:17 AM 009 */ 010 011 public class _NamingContextExtStub 012 extends org.omg.CORBA.portable.ObjectImpl 013 implements org.omg.CosNaming.NamingContextExt 014 { 015 private String[] ids = {"IDL:omg.org/CosNaming/NamingContextExt:1.0","IDL:omg.org/CosNaming/NamingContext:1.0"}; 016 public String[] _ids() 017 { 018 return ids; 019 } 020 021 public final static java.lang.Class _opsClass = org.omg.CosNaming.NamingContextExtOperations.class; 022 public void list(int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi) 023 { 024 while(true) 025 { 026 if(! this._is_local()) 027 { 028 org.omg.CORBA.portable.InputStream _is = null; 029 try 030 { 031 org.omg.CORBA.portable.OutputStream _os = _request( "list", true); 032 _os.write_ulong(how_many); 033 _is = _invoke(_os); 034 bl.value = org.omg.CosNaming.BindingListHelper.read(_is); 035 bi.value = org.omg.CosNaming.BindingIteratorHelper.read(_is); 036 return; 037 } 038 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 039 catch( org.omg.CORBA.portable.ApplicationException _ax ) 040 { 041 String _id = _ax.getId(); 042 throw new RuntimeException("Unexpected exception " + _id ); 043 } 044 finally 045 { 046 this._releaseReply(_is); 047 } 048 } 049 else 050 { 051 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "list", _opsClass ); 052 if( _so == null ) 053 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 054 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 055 try 056 { 057 _localServant.list(how_many,bl,bi); 058 } 059 finally 060 { 061 _servant_postinvoke(_so); 062 } 063 return; 064 } 065 066 } 067 068 } 069 070 public void bind(org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.AlreadyBound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 071 { 072 while(true) 073 { 074 if(! this._is_local()) 075 { 076 org.omg.CORBA.portable.InputStream _is = null; 077 try 078 { 079 org.omg.CORBA.portable.OutputStream _os = _request( "bind", true); 080 org.omg.CosNaming.NameHelper.write(_os,n); 081 _os.write_Object(obj); 082 _is = _invoke(_os); 083 return; 084 } 085 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 086 catch( org.omg.CORBA.portable.ApplicationException _ax ) 087 { 088 String _id = _ax.getId(); 089 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 090 { 091 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 092 } 093 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0")) 094 { 095 throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read(_ax.getInputStream()); 096 } 097 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 098 { 099 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 100 } 101 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 102 { 103 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 104 } 105 throw new RuntimeException("Unexpected exception " + _id ); 106 } 107 finally 108 { 109 this._releaseReply(_is); 110 } 111 } 112 else 113 { 114 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "bind", _opsClass ); 115 if( _so == null ) 116 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 117 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 118 try 119 { 120 _localServant.bind(n,obj); 121 } 122 finally 123 { 124 _servant_postinvoke(_so); 125 } 126 return; 127 } 128 129 } 130 131 } 132 133 public org.omg.CosNaming.NamingContext bind_new_context(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.AlreadyBound,org.omg.CosNaming.NamingContextPackage.InvalidName 134 { 135 while(true) 136 { 137 if(! this._is_local()) 138 { 139 org.omg.CORBA.portable.InputStream _is = null; 140 try 141 { 142 org.omg.CORBA.portable.OutputStream _os = _request( "bind_new_context", true); 143 org.omg.CosNaming.NameHelper.write(_os,n); 144 _is = _invoke(_os); 145 org.omg.CosNaming.NamingContext _result = org.omg.CosNaming.NamingContextHelper.read(_is); 146 return _result; 147 } 148 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 149 catch( org.omg.CORBA.portable.ApplicationException _ax ) 150 { 151 String _id = _ax.getId(); 152 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 153 { 154 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 155 } 156 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 157 { 158 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 159 } 160 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0")) 161 { 162 throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read(_ax.getInputStream()); 163 } 164 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 165 { 166 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 167 } 168 throw new RuntimeException("Unexpected exception " + _id ); 169 } 170 finally 171 { 172 this._releaseReply(_is); 173 } 174 } 175 else 176 { 177 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "bind_new_context", _opsClass ); 178 if( _so == null ) 179 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 180 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 181 org.omg.CosNaming.NamingContext _result; 182 try 183 { 184 _result = _localServant.bind_new_context(n); 185 } 186 finally 187 { 188 _servant_postinvoke(_so); 189 } 190 return _result; 191 } 192 193 } 194 195 } 196 197 public void rebind_context(org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 198 { 199 while(true) 200 { 201 if(! this._is_local()) 202 { 203 org.omg.CORBA.portable.InputStream _is = null; 204 try 205 { 206 org.omg.CORBA.portable.OutputStream _os = _request( "rebind_context", true); 207 org.omg.CosNaming.NameHelper.write(_os,n); 208 org.omg.CosNaming.NamingContextHelper.write(_os,nc); 209 _is = _invoke(_os); 210 return; 211 } 212 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 213 catch( org.omg.CORBA.portable.ApplicationException _ax ) 214 { 215 String _id = _ax.getId(); 216 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 217 { 218 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 219 } 220 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 221 { 222 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 223 } 224 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 225 { 226 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 227 } 228 throw new RuntimeException("Unexpected exception " + _id ); 229 } 230 finally 231 { 232 this._releaseReply(_is); 233 } 234 } 235 else 236 { 237 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "rebind_context", _opsClass ); 238 if( _so == null ) 239 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 240 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 241 try 242 { 243 _localServant.rebind_context(n,nc); 244 } 245 finally 246 { 247 _servant_postinvoke(_so); 248 } 249 return; 250 } 251 252 } 253 254 } 255 256 public java.lang.String to_url(java.lang.String addr, java.lang.String sn) throws org.omg.CosNaming.NamingContextPackage.InvalidName,org.omg.CosNaming.NamingContextExtPackage.InvalidAddress 257 { 258 while(true) 259 { 260 if(! this._is_local()) 261 { 262 org.omg.CORBA.portable.InputStream _is = null; 263 try 264 { 265 org.omg.CORBA.portable.OutputStream _os = _request( "to_url", true); 266 _os.write_string(addr); 267 _os.write_string(sn); 268 _is = _invoke(_os); 269 java.lang.String _result = _is.read_string(); 270 return _result; 271 } 272 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 273 catch( org.omg.CORBA.portable.ApplicationException _ax ) 274 { 275 String _id = _ax.getId(); 276 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 277 { 278 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 279 } 280 else if( _id.equals("IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0")) 281 { 282 throw org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.read(_ax.getInputStream()); 283 } 284 throw new RuntimeException("Unexpected exception " + _id ); 285 } 286 finally 287 { 288 this._releaseReply(_is); 289 } 290 } 291 else 292 { 293 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "to_url", _opsClass ); 294 if( _so == null ) 295 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 296 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 297 java.lang.String _result; 298 try 299 { 300 _result = _localServant.to_url(addr,sn); 301 } 302 finally 303 { 304 _servant_postinvoke(_so); 305 } 306 return _result; 307 } 308 309 } 310 311 } 312 313 public void bind_context(org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.AlreadyBound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 314 { 315 while(true) 316 { 317 if(! this._is_local()) 318 { 319 org.omg.CORBA.portable.InputStream _is = null; 320 try 321 { 322 org.omg.CORBA.portable.OutputStream _os = _request( "bind_context", true); 323 org.omg.CosNaming.NameHelper.write(_os,n); 324 org.omg.CosNaming.NamingContextHelper.write(_os,nc); 325 _is = _invoke(_os); 326 return; 327 } 328 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 329 catch( org.omg.CORBA.portable.ApplicationException _ax ) 330 { 331 String _id = _ax.getId(); 332 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 333 { 334 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 335 } 336 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0")) 337 { 338 throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read(_ax.getInputStream()); 339 } 340 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 341 { 342 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 343 } 344 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 345 { 346 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 347 } 348 throw new RuntimeException("Unexpected exception " + _id ); 349 } 350 finally 351 { 352 this._releaseReply(_is); 353 } 354 } 355 else 356 { 357 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "bind_context", _opsClass ); 358 if( _so == null ) 359 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 360 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 361 try 362 { 363 _localServant.bind_context(n,nc); 364 } 365 finally 366 { 367 _servant_postinvoke(_so); 368 } 369 return; 370 } 371 372 } 373 374 } 375 376 public void unbind(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 377 { 378 while(true) 379 { 380 if(! this._is_local()) 381 { 382 org.omg.CORBA.portable.InputStream _is = null; 383 try 384 { 385 org.omg.CORBA.portable.OutputStream _os = _request( "unbind", true); 386 org.omg.CosNaming.NameHelper.write(_os,n); 387 _is = _invoke(_os); 388 return; 389 } 390 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 391 catch( org.omg.CORBA.portable.ApplicationException _ax ) 392 { 393 String _id = _ax.getId(); 394 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 395 { 396 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 397 } 398 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 399 { 400 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 401 } 402 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 403 { 404 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 405 } 406 throw new RuntimeException("Unexpected exception " + _id ); 407 } 408 finally 409 { 410 this._releaseReply(_is); 411 } 412 } 413 else 414 { 415 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "unbind", _opsClass ); 416 if( _so == null ) 417 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 418 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 419 try 420 { 421 _localServant.unbind(n); 422 } 423 finally 424 { 425 _servant_postinvoke(_so); 426 } 427 return; 428 } 429 430 } 431 432 } 433 434 public org.omg.CosNaming.NamingContext new_context() 435 { 436 while(true) 437 { 438 if(! this._is_local()) 439 { 440 org.omg.CORBA.portable.InputStream _is = null; 441 try 442 { 443 org.omg.CORBA.portable.OutputStream _os = _request( "new_context", true); 444 _is = _invoke(_os); 445 org.omg.CosNaming.NamingContext _result = org.omg.CosNaming.NamingContextHelper.read(_is); 446 return _result; 447 } 448 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 449 catch( org.omg.CORBA.portable.ApplicationException _ax ) 450 { 451 String _id = _ax.getId(); 452 throw new RuntimeException("Unexpected exception " + _id ); 453 } 454 finally 455 { 456 this._releaseReply(_is); 457 } 458 } 459 else 460 { 461 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "new_context", _opsClass ); 462 if( _so == null ) 463 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 464 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 465 org.omg.CosNaming.NamingContext _result; 466 try 467 { 468 _result = _localServant.new_context(); 469 } 470 finally 471 { 472 _servant_postinvoke(_so); 473 } 474 return _result; 475 } 476 477 } 478 479 } 480 481 public org.omg.CORBA.Object resolve_str(java.lang.String n) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 482 { 483 while(true) 484 { 485 if(! this._is_local()) 486 { 487 org.omg.CORBA.portable.InputStream _is = null; 488 try 489 { 490 org.omg.CORBA.portable.OutputStream _os = _request( "resolve_str", true); 491 _os.write_string(n); 492 _is = _invoke(_os); 493 org.omg.CORBA.Object _result = _is.read_Object(); 494 return _result; 495 } 496 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 497 catch( org.omg.CORBA.portable.ApplicationException _ax ) 498 { 499 String _id = _ax.getId(); 500 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 501 { 502 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 503 } 504 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 505 { 506 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 507 } 508 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 509 { 510 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 511 } 512 throw new RuntimeException("Unexpected exception " + _id ); 513 } 514 finally 515 { 516 this._releaseReply(_is); 517 } 518 } 519 else 520 { 521 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "resolve_str", _opsClass ); 522 if( _so == null ) 523 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 524 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 525 org.omg.CORBA.Object _result; 526 try 527 { 528 _result = _localServant.resolve_str(n); 529 } 530 finally 531 { 532 _servant_postinvoke(_so); 533 } 534 return _result; 535 } 536 537 } 538 539 } 540 541 public void rebind(org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 542 { 543 while(true) 544 { 545 if(! this._is_local()) 546 { 547 org.omg.CORBA.portable.InputStream _is = null; 548 try 549 { 550 org.omg.CORBA.portable.OutputStream _os = _request( "rebind", true); 551 org.omg.CosNaming.NameHelper.write(_os,n); 552 _os.write_Object(obj); 553 _is = _invoke(_os); 554 return; 555 } 556 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 557 catch( org.omg.CORBA.portable.ApplicationException _ax ) 558 { 559 String _id = _ax.getId(); 560 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 561 { 562 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 563 } 564 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 565 { 566 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 567 } 568 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 569 { 570 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 571 } 572 throw new RuntimeException("Unexpected exception " + _id ); 573 } 574 finally 575 { 576 this._releaseReply(_is); 577 } 578 } 579 else 580 { 581 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "rebind", _opsClass ); 582 if( _so == null ) 583 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 584 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 585 try 586 { 587 _localServant.rebind(n,obj); 588 } 589 finally 590 { 591 _servant_postinvoke(_so); 592 } 593 return; 594 } 595 596 } 597 598 } 599 600 public org.omg.CosNaming.NameComponent[] to_name(java.lang.String sn) throws org.omg.CosNaming.NamingContextPackage.InvalidName 601 { 602 while(true) 603 { 604 if(! this._is_local()) 605 { 606 org.omg.CORBA.portable.InputStream _is = null; 607 try 608 { 609 org.omg.CORBA.portable.OutputStream _os = _request( "to_name", true); 610 _os.write_string(sn); 611 _is = _invoke(_os); 612 org.omg.CosNaming.NameComponent[] _result = org.omg.CosNaming.NameHelper.read(_is); 613 return _result; 614 } 615 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 616 catch( org.omg.CORBA.portable.ApplicationException _ax ) 617 { 618 String _id = _ax.getId(); 619 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 620 { 621 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 622 } 623 throw new RuntimeException("Unexpected exception " + _id ); 624 } 625 finally 626 { 627 this._releaseReply(_is); 628 } 629 } 630 else 631 { 632 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "to_name", _opsClass ); 633 if( _so == null ) 634 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 635 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 636 org.omg.CosNaming.NameComponent[] _result; 637 try 638 { 639 _result = _localServant.to_name(sn); 640 } 641 finally 642 { 643 _servant_postinvoke(_so); 644 } 645 return _result; 646 } 647 648 } 649 650 } 651 652 public org.omg.CORBA.Object resolve(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound,org.omg.CosNaming.NamingContextPackage.CannotProceed,org.omg.CosNaming.NamingContextPackage.InvalidName 653 { 654 while(true) 655 { 656 if(! this._is_local()) 657 { 658 org.omg.CORBA.portable.InputStream _is = null; 659 try 660 { 661 org.omg.CORBA.portable.OutputStream _os = _request( "resolve", true); 662 org.omg.CosNaming.NameHelper.write(_os,n); 663 _is = _invoke(_os); 664 org.omg.CORBA.Object _result = _is.read_Object(); 665 return _result; 666 } 667 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 668 catch( org.omg.CORBA.portable.ApplicationException _ax ) 669 { 670 String _id = _ax.getId(); 671 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0")) 672 { 673 throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(_ax.getInputStream()); 674 } 675 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0")) 676 { 677 throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read(_ax.getInputStream()); 678 } 679 else if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 680 { 681 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 682 } 683 throw new RuntimeException("Unexpected exception " + _id ); 684 } 685 finally 686 { 687 this._releaseReply(_is); 688 } 689 } 690 else 691 { 692 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "resolve", _opsClass ); 693 if( _so == null ) 694 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 695 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 696 org.omg.CORBA.Object _result; 697 try 698 { 699 _result = _localServant.resolve(n); 700 } 701 finally 702 { 703 _servant_postinvoke(_so); 704 } 705 return _result; 706 } 707 708 } 709 710 } 711 712 public java.lang.String to_string(org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.InvalidName 713 { 714 while(true) 715 { 716 if(! this._is_local()) 717 { 718 org.omg.CORBA.portable.InputStream _is = null; 719 try 720 { 721 org.omg.CORBA.portable.OutputStream _os = _request( "to_string", true); 722 org.omg.CosNaming.NameHelper.write(_os,n); 723 _is = _invoke(_os); 724 java.lang.String _result = _is.read_string(); 725 return _result; 726 } 727 catch( org.omg.CORBA.portable.RemarshalException _rx ){} 728 catch( org.omg.CORBA.portable.ApplicationException _ax ) 729 { 730 String _id = _ax.getId(); 731 if( _id.equals("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0")) 732 { 733 throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(_ax.getInputStream()); 734 } 735 throw new RuntimeException("Unexpected exception " + _id ); 736 } 737 finally 738 { 739 this._releaseReply(_is); 740 } 741 } 742 else 743 { 744 org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "to_string", _opsClass ); 745 if( _so == null ) 746 throw new org.omg.CORBA.UNKNOWN("local invocations not supported!"); 747 NamingContextExtOperations _localServant = (NamingContextExtOperations)_so.servant; 748 java.lang.String _result; 749 try 750 { 751 _result = _localServant.to_string(n); 752 } 753 finally 754 { 755 _servant_postinvoke(_so); 756 } 757 return _result; 758 } 759 760 } 761 762 } 763 764 }