Package org.apache.geronimo.core.service

Examples of org.apache.geronimo.core.service.InvocationResult


    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Invocation invocation = new ProxyInvocation();
        ProxyInvocation.putMethod(invocation, method);
        ProxyInvocation.putArguments(invocation, args);
        ProxyInvocation.putProxy(invocation, proxy);
        InvocationResult result = this.invoke(invocation);
        if( result.isException() )
            throw result.getException();
        return result.getResult();
    }
View Full Code Here


                e.printStackTrace();
                return RequestChannelInterceptor.serialize(new ThrowableWrapper(e));               
            }

            try {
                InvocationResult rc = next.invoke(marshalledInvocation);
                return RequestChannelInterceptor.serialize(rc);               
            } catch (Throwable e) {
                return RequestChannelInterceptor.serialize(new ThrowableWrapper(e));               
            }
View Full Code Here

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Invocation invocation = new ProxyInvocation();
        ProxyInvocation.putMethod(invocation, method);
        ProxyInvocation.putArguments(invocation, args);
        ProxyInvocation.putProxy(invocation, proxy);
        InvocationResult result = this.invoke(invocation);
        if( result.isException() )
            throw result.getException();
        return result.getResult();
    }
View Full Code Here

                e.printStackTrace();
                return RequestChannelInterceptor.serialize(new ThrowableWrapper(e));               
            }

            try {
                InvocationResult rc = next.invoke(marshalledInvocation);
                return RequestChannelInterceptor.serialize(rc);               
            } catch (Throwable e) {
                return RequestChannelInterceptor.serialize(new ThrowableWrapper(e));               
            }
View Full Code Here

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Invocation invocation = new ProxyInvocation();
        ProxyInvocation.putMethod(invocation, method);
        ProxyInvocation.putArguments(invocation, args);
        ProxyInvocation.putProxy(invocation, proxy);
        InvocationResult result = this.invoke(invocation);
        if( result.isException() )
            throw result.getException();
        return result.getResult();
    }
View Full Code Here

                e.printStackTrace();
                return RequestChannelInterceptor.serialize(new ThrowableWrapper(e));               
            }

            try {
                InvocationResult rc = next.invoke(marshalledInvocation);
                return RequestChannelInterceptor.serialize(rc);               
            } catch (Throwable e) {
                return RequestChannelInterceptor.serialize(new ThrowableWrapper(e));               
            }
View Full Code Here

            // Marshall the invocation and store it.
            MarshalledObject mo = next.createMarshalledObject();
            mo.set(invocation);
            InvocationSupport.putMarshaledValue(invocation, mo);

            InvocationResult rc = next.invoke(invocation);

            // Demarshal the obj.
            mo = (MarshalledObject) rc.getResult();
            Object obj;
            try {
           
                obj = mo.get();
View Full Code Here

            SimpleInvocation invocation = new SimpleInvocation();
            InvocationSupport.putMarshaledValue(invocation, msg.popMarshaledObject());
            InvocationSupport.putRemoteURI(invocation, to);

            InvocationResult result = interceptor.invoke(invocation);

            msg = msg.createMsg();
            Object rc = result.getResult();
            msg.pushMarshaledObject((MarshalledObject) rc);
            return msg;

        } catch (Throwable e) {
            e.printStackTrace();
View Full Code Here

                mo.set(new ThrowableWrapper(e));
                return new SimpleInvocationResult(false, mo);               
            }

            try {
                InvocationResult rc = next.invoke(marshalledInvocation);
                mo.set(new SimpleInvocationResult(rc.isNormal(), rc.getResult()));
                return new SimpleInvocationResult(true, mo);
            } catch (Throwable e) {
                mo.set(new ThrowableWrapper(e));
                return new SimpleInvocationResult(true, mo);
            }
View Full Code Here

    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Invocation invocation = new ProxyInvocation();
        ProxyInvocation.putMethod(invocation, method);
        ProxyInvocation.putArguments(invocation, args);
        ProxyInvocation.putProxy(invocation, proxy);
        InvocationResult result = this.invoke(invocation);
        if( result.isException() )
            throw result.getException();
        return result.getResult();
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.core.service.InvocationResult

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.