Package org.apache.tuscany.sca.binding.ejb.util

Examples of org.apache.tuscany.sca.binding.ejb.util.EJBHandler


        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        //
        // If we really couldn't have anything but a JavaOperation maybe we should
        // remove the if-block.  Assuming we had some other type of operation, if
        // that is possible, we might still need to map to a Java operation name,
        // (for example because the WSDL operation name might be set using a JSR-181
        // annotation to something other than the Java operation name.
        //
        // But for now we'll keep the else-block in here.
        //
        String methodName = null;
        if (operation instanceof JavaOperation) {
            JavaOperation javaOp = (JavaOperation) operation;
            methodName = javaOp.getJavaMethod().getName();
        } else {
            methodName = operation.getName();
        }

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here


        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        String methodName = operation.getName();

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        //
        // If we really couldn't have anything but a JavaOperation maybe we should
        // remove the if-block.  Assuming we had some other type of operation, if
        // that is possible, we might still need to map to a Java operation name,
        // (for example because the WSDL operation name might be set using a JSR-181
        // annotation to something other than the Java operation name.
        //
        // But for now we'll keep the else-block in here.
        //
        String methodName = null;
        if (operation instanceof JavaOperation) {
            JavaOperation javaOp = (JavaOperation) operation;
            methodName = javaOp.getJavaMethod().getName();
        } else {
            methodName = operation.getName();
        }

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        String methodName = operation.getName();

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        String methodName = operation.getName();

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        String methodName = operation.getName();

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        //
        // If we really couldn't have anything but a JavaOperation maybe we should
        // remove the if-block.  Assuming we had some other type of operation, if
        // that is possible, we might still need to map to a Java operation name,
        // (for example because the WSDL operation name might be set using a JSR-181
        // annotation to something other than the Java operation name.
        //
        // But for now we'll keep the else-block in here.
        //
        String methodName = null;
        if (operation instanceof JavaOperation) {
            JavaOperation javaOp = (JavaOperation) operation;
            methodName = javaOp.getJavaMethod().getName();
        } else {
            methodName = operation.getName();
        }

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        String methodName = operation.getName();

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        String methodName = operation.getName();

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

        // construct NamingendPoint
        NamingEndpoint endpoint = getNamingEndpoint();

        // lookup home and ejb stub
        EJBHandler ejbHandler = new EJBHandler(endpoint, serviceInterface);

        //
        // If we really couldn't have anything but a JavaOperation maybe we should
        // remove the if-block.  Assuming we had some other type of operation, if
        // that is possible, we might still need to map to a Java operation name,
        // (for example because the WSDL operation name might be set using a JSR-181
        // annotation to something other than the Java operation name.
        //
        // But for now we'll keep the else-block in here.
        //
        if (operation instanceof JavaOperation) {
            JavaOperation javaOp = (JavaOperation) operation;
            methodName = javaOp.getJavaMethod().getName();
        } else {
            methodName = operation.getName();
        }

        // invoke business method on ejb
        Object response = ejbHandler.invoke(methodName, (Object[])payload);

        return response;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.ejb.util.EJBHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.