304 |
} |
} |
305 |
else if (a_servant instanceof DynamicImplementation) |
else if (a_servant instanceof DynamicImplementation) |
306 |
{ |
{ |
307 |
return new dynImpHandler((DynamicImplementation) a_servant); |
return new DynamicImpHandler((DynamicImplementation) a_servant); |
308 |
} |
} |
309 |
else |
else |
310 |
{ |
{ |
436 |
try |
try |
437 |
{ |
{ |
438 |
CookieHolder cookie = null; |
CookieHolder cookie = null; |
439 |
activeObjectMap.Obj self = poa.aom.get(Id); |
AOM.Obj self = poa.aom.get(Id); |
440 |
|
|
441 |
if (poa.servant_locator != null) |
if (poa.servant_locator != null) |
442 |
{ |
{ |
477 |
{ |
{ |
478 |
// In some cases exception is thrown if the delegate is not set. |
// In some cases exception is thrown if the delegate is not set. |
479 |
} |
} |
480 |
if (d instanceof servantDelegate) |
if (d instanceof ServantDelegateImpl) |
481 |
{ |
{ |
482 |
// If the delegate is already set, check maybe we can |
// If the delegate is already set, check maybe we can |
483 |
// reuse the existing instance. |
// reuse the existing instance. |
484 |
if (((servantDelegate) d).object != this) |
if (((ServantDelegateImpl) d).object != this) |
485 |
{ |
{ |
486 |
servant._set_delegate(new servantDelegate(servant, poa, Id)); |
servant._set_delegate(new ServantDelegateImpl(servant, poa, Id)); |
487 |
} |
} |
488 |
} |
} |
489 |
else |
else |
490 |
{ |
{ |
491 |
servant._set_delegate(new servantDelegate(servant, poa, Id)); |
servant._set_delegate(new ServantDelegateImpl(servant, poa, Id)); |
492 |
} |
} |
493 |
|
|
494 |
try |
try |