Package javax.transaction.cdi

Examples of javax.transaction.cdi.TransactionalException


    @AroundInvoke
    public Object transactional(InvocationContext ctx) throws Exception {
        Logger logger = Logger.getLogger(ctx.getTarget().getClass().getName());
        logger.info("In MANDATORY TransactionalInterceptor");
        if(getTransactionManager().getTransaction() == null)
            throw new TransactionalException(
                    "TransactionRequiredException thrown from TxType.MANDATORY transactional interceptor.",
                    new TransactionRequiredException("Managed bean with Transactional annotation and TxType of " +
                                        "MANDATORY called outside of a transaction context"));
        return proceed(ctx);
    }
View Full Code Here

TOP

Related Classes of javax.transaction.cdi.TransactionalException

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.