Package oracle.jdbc.xa

Examples of oracle.jdbc.xa.OracleXAException


    public void testExtract() throws Exception {
        DefaultExceptionAnalyzer analyzer = new DefaultExceptionAnalyzer();
       
        assertNull(analyzer.extractExtraXAExceptionDetails(new BitronixXAException("XA error", XAException.XA_HEURCOM)));
        assertEquals("ORA-1234", analyzer.extractExtraXAExceptionDetails(new OracleXAException(1234)));
    }
View Full Code Here


        poolingDataSource1.close();
        tm.shutdown();
    }

    private XAException createXAException(String msg, int errorCode) {
        XAException prepareException = new OracleXAException(msg, 9876);
        prepareException.errorCode = errorCode;
        return prepareException;
    }
View Full Code Here

TOP

Related Classes of oracle.jdbc.xa.OracleXAException

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.