com.sun.corba.se.impl.protocol.SpecialMethod Java Examples

The following examples show how to use com.sun.corba.se.impl.protocol.SpecialMethod. 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 Project: jdk1.8-source-analysis   Author: raysonfang   File: CorbaServerRequestDispatcherImpl.java    License: Apache License 2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #2
Source Project: TencentKona-8   Author: Tencent   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #3
Source Project: jdk8u60   Author: chenghanpeng   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #4
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: CorbaServerRequestDispatcherImpl.java    License: MIT License 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #5
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #6
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #7
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #8
Source Project: hottub   Author: dsrg-uoft   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #9
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #10
Source Project: openjdk-8   Author: bpupadhyaya   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Always throws OBJECT_NOT_EXIST if operation is not a special method.
* If operation is _non_existent or _not_existent, this will just
* return without performing any action, so that _non_existent can return
* false.  Always throws OBJECT_NOT_EXIST for any other special method.
* Update for issue 4385.
*/
protected void handleNullServant(String operation, NullServant nserv )
{
    try {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant->: " + operation);
        }

        SpecialMethod specialMethod =
            SpecialMethod.getSpecialMethod(operation);

        if ((specialMethod == null) ||
            !specialMethod.isNonExistentMethod()) {
            if (orb.subcontractDebugFlag) {
                dprint(".handleNullServant: " + operation
                       + ": throwing OBJECT_NOT_EXIST");
            }

            throw nserv.getException() ;
        }
    } finally {
        if (orb.subcontractDebugFlag) {
            dprint(".handleNullServant<-: " + operation);
        }
    }
}
 
Example #11
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: CorbaServerRequestDispatcherImpl.java    License: Apache License 2.0 4 votes vote down vote up
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 #12
Source Project: TencentKona-8   Author: Tencent   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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 #13
Source Project: jdk8u60   Author: chenghanpeng   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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 #14
Source Project: JDKSourceCode1.8   Author: wupeixuan   File: CorbaServerRequestDispatcherImpl.java    License: MIT License 4 votes vote down vote up
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 Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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 Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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 Project: openjdk-jdk9   Author: AdoptOpenJDK   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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 Project: hottub   Author: dsrg-uoft   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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
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 Project: openjdk-8   Author: bpupadhyaya   File: CorbaServerRequestDispatcherImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
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<-");
        }
    }
}