Package net.sf.ehcache.transaction.xa

Examples of net.sf.ehcache.transaction.xa.EhcacheXAException


        XAResponse xaResponse;
        try {
            xaResponse = (XAResponse) multiRunner.execute(new XARequestCallable(resourceImpl, request, request.getXid()));
        } catch (InterruptedException e) {
            cleanupThread(request.getXid());
            throw new EhcacheXAException(e.getMessage(), XAException.XAER_RMERR, e);
        } catch (ExecutionException e) {
            cleanupThread(request.getXid());
            throw new EhcacheXAException(e.getMessage(), XAException.XAER_RMERR, e);
        }
        if (xaResponse.getXaException() != null) {
            cleanupThread(request.getXid());
            throw new EhcacheXAException("XA " + request.getRequestType().toString().toLowerCase() +
                    " request failed on [" + request.getXid() + "]", xaResponse.getXaException().errorCode,
                    xaResponse.getXaException());
        }
       
        if (request.getRequestType().equals(XARequest.RequestType.COMMIT) ||
View Full Code Here


                case COMMIT:
                    resourceImpl.commitInternal(request.getXid(), request.isOnePhase());
                    break;
               
                default:
                    throw new EhcacheXAException("Unknown enum type: " + request.getRequestType(), XAException.XAER_RMERR);
            }
            } catch (XAException xaE) {
                xaException = xaE;
            }
           
View Full Code Here

TOP

Related Classes of net.sf.ehcache.transaction.xa.EhcacheXAException

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.