Package org.jboss.narayana.txframework.impl.handlers

Examples of org.jboss.narayana.txframework.impl.handlers.ProtocolHandler


        Object serviceInstance = componentInstance.getInstance();
        Method serviceMethod = context.getMethod();
        Class serviceClass = serviceInstance.getClass();

        Object result;
        ProtocolHandler protocolHandler = HandlerFactory.getInstance(new ServiceInvocationMeta(serviceInstance, serviceClass, serviceMethod));
        try {
            protocolHandler.preInvocation();
            result = context.proceed();
            protocolHandler.notifySuccess();
        } catch (Exception e) {
            protocolHandler.notifyFailure();
            throw e;
        }

        return result;
    }
View Full Code Here


        Object serviceInstance = mr.getInstance();
        Class serviceClass = context.getTarget().getClass();
        Method serviceMethod = context.getMethod();

        Object result;
        ProtocolHandler protocolHandler = HandlerFactory.getInstance(new ServiceInvocationMeta(serviceInstance, serviceClass, serviceMethod));
        try {
            protocolHandler.preInvocation();
            result = context.proceed();
            protocolHandler.notifySuccess();
        } catch (Exception e) {
            protocolHandler.notifyFailure();
            throw e;
        }

        return result;
    }
View Full Code Here

TOP

Related Classes of org.jboss.narayana.txframework.impl.handlers.ProtocolHandler

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.