Package org.jpox.transaction

Examples of org.jpox.transaction.JPOXTransactionException


            // See http://www.onjava.com/pub/a/onjava/2005/07/20/transactions.html
            jtaTxManager = new TransactionManagerFinder(this).getTransactionManager(
                getClassLoaderResolver((ClassLoader)persistenceConfig.getProperty("org.jpox.primaryClassLoader")));
            if (jtaTxManager == null)
            {
                throw new JPOXTransactionException(LOCALISER.msg("015030"));
            }
        }
        return jtaTxManager;
    }
View Full Code Here


                }
            }
        }
        catch (SystemException se)
        {
            throw new JPOXTransactionException(LOCALISER.msg("015026"), se);
        }
        catch (RollbackException e)
        {
            // tx is marked for rollback: leave registeredSynchronizationOnJtaTx==false
            // so that we try to register again next time we're called
View Full Code Here

    private TransactionManager obtainTransactionManager()
    {
        TransactionManager tm = om.getOMFContext().getJtaTransactionManager();
        if (tm == null)
        {
            throw new JPOXTransactionException(LOCALISER.msg("015030"));
        }
        else
        {
            return tm;
        }
View Full Code Here

TOP

Related Classes of org.jpox.transaction.JPOXTransactionException

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.