Package org.jboss.as.controller

Examples of org.jboss.as.controller.ControllerTransaction.commit()


        } catch (OperationFailedException ofe) {
            transaction.setRollbackOnly();
            throw ofe;
        } finally {
            transaction.commit();
        }

    }

    @Override
View Full Code Here


        @Override
        protected void sendResponse(final OutputStream outputStream) throws IOException {
            ControllerTransaction tx = transactions.remove(txId);
            if (tx != null) {
                tx.setRollbackOnly();
                tx.commit();
            }
        }
    }

    private final class FailureHolder {
View Full Code Here

        @Override
        protected void sendResponse(final OutputStream outputStream) throws IOException {
            ControllerTransaction tx = transactions.remove(txId);
            if (tx != null) {
                tx.commit();
            }
        }
    }

    private class RollbackTransactionOperation extends ManagementResponse {
View Full Code Here

        try {
            hostResults = pushToHosts(operation, routing, transaction);
        }
        catch (Exception e) {
            transaction.setRollbackOnly();
            transaction.commit();
            handler.handleResultFragment(new String[]{DOMAIN_FAILURE_DESCRIPTION}, new ModelNode().set(e.toString()));
            handler.handleFailed(null);
            return new BasicOperationResult();
        }
View Full Code Here

        //    System.out.println("======================================================");
        //    System.out.println(entry.getValue());
        // }

        if (transaction.isRollbackOnly()) {
            transaction.commit();
            if (masterFailureResult != null) {
                handler.handleResultFragment(new String[]{DOMAIN_FAILURE_DESCRIPTION}, masterFailureResult);
            }
            else if (hostFailureResults != null) {
                handler.handleResultFragment(new String[]{HOST_FAILURE_DESCRIPTIONS}, hostFailureResults);
View Full Code Here

                handler.handleResultFragment(new String[]{DOMAIN_FAILURE_DESCRIPTION}, ofe.getFailureDescription());
                handler.handleFailed(null);
                return new BasicOperationResult();
            }
            finally {
                transaction.commit();
            }

            // System.out.println(rolloutPlan);
            ModelNode compensatingOperation = getCompensatingOperation(operationNode, hostResults);
            // System.out.println(compensatingOperation);
View Full Code Here

        try {
            hostResults = pushToHosts(operationContext, routing, transaction);
        }
        catch (Exception e) {
            transaction.setRollbackOnly();
            transaction.commit();
            handler.handleResultFragment(new String[]{DOMAIN_FAILURE_DESCRIPTION}, new ModelNode().set(e.toString()));
            handler.handleFailed(null);
            return new BasicOperationResult();
        }
View Full Code Here

//            System.out.println("======================================================");
//            System.out.println(entry.getValue());
//        }

        if (transaction.isRollbackOnly()) {
            transaction.commit();
            if (masterFailureResult != null) {
                handler.handleResultFragment(new String[]{DOMAIN_FAILURE_DESCRIPTION}, masterFailureResult);
            }
            else if (hostFailureResults != null) {
                handler.handleResultFragment(new String[]{HOST_FAILURE_DESCRIPTIONS}, hostFailureResults);
View Full Code Here

                handler.handleResultFragment(new String[]{DOMAIN_FAILURE_DESCRIPTION}, ofe.getFailureDescription());
                handler.handleFailed(null);
                return new BasicOperationResult();
            }
            finally {
                transaction.commit();
            }

//            System.out.println(rolloutPlan);

            ModelNode compensatingOperation = getCompensatingOperation(operation, hostResults);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.