Java Code Examples for com.sun.corba.se.spi.oa.ObjectAdapter#enter()
The following examples show how to use
com.sun.corba.se.spi.oa.ObjectAdapter#enter() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: POALocalCRDImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 2
Source File: ServantCacheLocalCRDBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected synchronized OAInvocationInfo getCachedInfo() { if (!servantIsLocal) throw wrapper.servantMustBeLocal() ; if (cachedInfo == null) { ObjectAdapter oa = oaf.find( oaid ) ; cachedInfo = oa.makeInvocationInfo( objectId ) ; // InvocationInfo must be pushed before calling getInvocationServant orb.pushInvocationInfo( cachedInfo ) ; try { oa.enter( ); oa.getInvocationServant( cachedInfo ) ; } catch (ForwardException freq) { throw wrapper.illegalForwardRequest( freq ) ; } catch( OADestroyed oades ) { // This is an error since no user of this implementation // should ever throw this exception throw wrapper.adapterDestroyed( oades ) ; } finally { oa.returnServant( ); oa.exit( ); orb.popInvocationInfo() ; } } return cachedInfo ; }
Example 3
Source File: POALocalCRDImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 4
Source File: POALocalCRDImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 5
Source File: ServantCacheLocalCRDBase.java From hottub with GNU General Public License v2.0 | 5 votes |
protected synchronized OAInvocationInfo getCachedInfo() { if (!servantIsLocal) throw wrapper.servantMustBeLocal() ; if (cachedInfo == null) { ObjectAdapter oa = oaf.find( oaid ) ; cachedInfo = oa.makeInvocationInfo( objectId ) ; // InvocationInfo must be pushed before calling getInvocationServant orb.pushInvocationInfo( cachedInfo ) ; try { oa.enter( ); oa.getInvocationServant( cachedInfo ) ; } catch (ForwardException freq) { throw wrapper.illegalForwardRequest( freq ) ; } catch( OADestroyed oades ) { // This is an error since no user of this implementation // should ever throw this exception throw wrapper.adapterDestroyed( oades ) ; } finally { oa.returnServant( ); oa.exit( ); orb.popInvocationInfo() ; } } return cachedInfo ; }
Example 6
Source File: POALocalCRDImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 7
Source File: ServantCacheLocalCRDBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected synchronized OAInvocationInfo getCachedInfo() { if (!servantIsLocal) throw wrapper.servantMustBeLocal() ; if (cachedInfo == null) { ObjectAdapter oa = oaf.find( oaid ) ; cachedInfo = oa.makeInvocationInfo( objectId ) ; // InvocationInfo must be pushed before calling getInvocationServant orb.pushInvocationInfo( cachedInfo ) ; try { oa.enter( ); oa.getInvocationServant( cachedInfo ) ; } catch (ForwardException freq) { throw wrapper.illegalForwardRequest( freq ) ; } catch( OADestroyed oades ) { // This is an error since no user of this implementation // should ever throw this exception throw wrapper.adapterDestroyed( oades ) ; } finally { oa.returnServant( ); oa.exit( ); orb.popInvocationInfo() ; } } return cachedInfo ; }
Example 8
Source File: ServantCacheLocalCRDBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected synchronized OAInvocationInfo getCachedInfo() { if (!servantIsLocal) throw wrapper.servantMustBeLocal() ; if (cachedInfo == null) { ObjectAdapter oa = oaf.find( oaid ) ; cachedInfo = oa.makeInvocationInfo( objectId ) ; // InvocationInfo must be pushed before calling getInvocationServant orb.pushInvocationInfo( cachedInfo ) ; try { oa.enter( ); oa.getInvocationServant( cachedInfo ) ; } catch (ForwardException freq) { throw wrapper.illegalForwardRequest( freq ) ; } catch( OADestroyed oades ) { // This is an error since no user of this implementation // should ever throw this exception throw wrapper.adapterDestroyed( oades ) ; } finally { oa.returnServant( ); oa.exit( ); orb.popInvocationInfo() ; } } return cachedInfo ; }
Example 9
Source File: POALocalCRDImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 10
Source File: POALocalCRDImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 11
Source File: POALocalCRDImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 12
Source File: POALocalCRDImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private OAInvocationInfo servantEnter( ObjectAdapter oa ) throws OADestroyed { oa.enter() ; OAInvocationInfo info = oa.makeInvocationInfo( objectId ) ; orb.pushInvocationInfo( info ) ; return info ; }
Example 13
Source File: ServantCacheLocalCRDBase.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
protected synchronized OAInvocationInfo getCachedInfo() { if (!servantIsLocal) throw wrapper.servantMustBeLocal() ; if (cachedInfo == null) { ObjectAdapter oa = oaf.find( oaid ) ; cachedInfo = oa.makeInvocationInfo( objectId ) ; // InvocationInfo must be pushed before calling getInvocationServant orb.pushInvocationInfo( cachedInfo ) ; try { oa.enter( ); oa.getInvocationServant( cachedInfo ) ; } catch (ForwardException freq) { throw wrapper.illegalForwardRequest( freq ) ; } catch( OADestroyed oades ) { // This is an error since no user of this implementation // should ever throw this exception throw wrapper.adapterDestroyed( oades ) ; } finally { oa.returnServant( ); oa.exit( ); orb.popInvocationInfo() ; } } return cachedInfo ; }
Example 14
Source File: CorbaServerRequestDispatcherImpl.java From JDKSourceCode1.8 with MIT License | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }
Example 15
Source File: CorbaServerRequestDispatcherImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }
Example 16
Source File: CorbaServerRequestDispatcherImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }
Example 17
Source File: CorbaServerRequestDispatcherImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }
Example 18
Source File: CorbaServerRequestDispatcherImpl.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }
Example 19
Source File: CorbaServerRequestDispatcherImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }
Example 20
Source File: CorbaServerRequestDispatcherImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected java.lang.Object getServantWithPI(CorbaMessageMediator request, ObjectAdapter objectAdapter, byte[] objectId, ObjectKeyTemplate oktemp, String operation) throws OADestroyed { try { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI->"); } // Prepare Portable Interceptors for a new server request // and invoke receive_request_service_contexts. The starting // point may throw a SystemException or ForwardException. orb.getPIHandler().initializeServerPIInfo(request, objectAdapter, objectId, oktemp); orb.getPIHandler().invokeServerPIStartingPoint(); objectAdapter.enter() ; // This must be set just after the enter so that exceptions thrown by // enter do not cause // the exception reply to pop the thread stack and do an extra oa.exit. if (request != null) request.setExecuteReturnServantInResponseConstructor(true); java.lang.Object servant = getServant(objectAdapter, objectId, operation); // Note: we do not know the MDI on a null servant. // We only end up in that situation if _non_existent called, // so that the following handleNullServant call does not throw an // exception. String mdi = "unknown" ; if (servant instanceof NullServant) handleNullServant(operation, (NullServant)servant); else mdi = objectAdapter.getInterfaces(servant, objectId)[0] ; orb.getPIHandler().setServerPIInfo(servant, mdi); if (((servant != null) && !(servant instanceof org.omg.CORBA.DynamicImplementation) && !(servant instanceof org.omg.PortableServer.DynamicImplementation)) || (SpecialMethod.getSpecialMethod(operation) != null)) { orb.getPIHandler().invokeServerPIIntermediatePoint(); } return servant ; } finally { if (orb.subcontractDebugFlag) { dprint(".getServantWithPI<-"); } } }