Examples of cannotComplete()


Examples of com.arjuna.webservices11.wsba.CoordinatorCompletionCoordinatorInboundEvents.cannotComplete()

        if (coordinator != null)
        {
            try
            {
                coordinator.cannotComplete(cannotComplete, addressingProperties, arjunaContext); ;
            }
            catch (final Throwable th)
            {
                if (WSTLogger.arjLoggerI18N.isDebugEnabled())
                {
View Full Code Here

Examples of com.arjuna.webservices11.wsba.ParticipantCompletionCoordinatorInboundEvents.cannotComplete()

        if (coordinator != null)
        {
            try
            {
                coordinator.cannotComplete(cannotComplete, addressingProperties, arjunaContext) ;
            }
            catch (final Throwable th)
            {
                if (WSTLogger.arjLoggerI18N.isDebugEnabled())
                {
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.cannotComplete()

            try {
                /*
                 * tell the participant manager we cannot complete. this will force the activity to fail
                 */
                System.out.println("[SERVICE] Prepare failed, notifying coordinator that we cannot complete");
                participantManager.cannotComplete();
            } catch (Exception e) {
                System.err.println("'cannotComplete' callback failed");
                throw new SetServiceException("Error when notifying the coordinator that the work is cannot be completed", e);
            }
            throw new SetServiceException("Unable to prepare the back-end resource");
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.cannotComplete()

            try {
                /*
                 * tell the participant manager we cannot complete. this will force the activity to fail
                 */
                log.info("[SERVICE] Prepare failed, notifying coordinator that we cannot complete");
                participantManager.cannotComplete();
            } catch (Exception e) {
                log.error("'cannotComplete' callback failed");
                throw new SetServiceException("Error when notifying the coordinator that the work is cannot be completed", e);
            }
            throw new SetServiceException("Unable to prepare the back-end resource");
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.cannotComplete()

                log.info("[BA COORDINATOR COMPL SERVICE] Enlisting a participant into the BA");
                BAParticipantManager baParticipantManager =  activityManager.enlistForBusinessAgreementWithCoordinatorCompletion(participantBA,
                        "BACoordinatorCompletition:" + new Uid().toString());

                if (ServiceCommand.isPresent(CANNOT_COMPLETE, serviceCommands)) {
                    baParticipantManager.cannotComplete();
                    return;
                }
               
                if (ServiceCommand.isPresent(DO_COMPLETE, serviceCommands)) {
                    throw new RuntimeException("Only ParticipantCompletion participants are supposed to call complete. " +
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.cannotComplete()

       
        if (ServiceCommand.isPresent(CANNOT_COMPLETE, serviceCommands)) {
            try {
                // Tell the participant manager we cannot complete. This will force the activity to fail.
                log.info("[BA PARTICIPANT COMPL SERVICE] Prepared fail, notifying coordinator that we cannot complete");
                participantManager.cannotComplete();
                return;
            } catch (Exception e) {
                log.error("[BA PARTICIPANT COMPL SERVICE] 'cannotComplete' callback failed");
                throw new RuntimeException("Error when notifying the coordinator that the work is cannot be completed", e);
            }
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.cannotComplete()

            try {
                /*
                 * tell the participant manager we cannot complete. this will force the activity to fail
                 */
                System.out.println("[SERVICE] Prepare failed, notifying coordinator that we cannot complete");
                participantManager.cannotComplete();
            } catch (Exception e) {
                System.err.println("'cannotComplete' callback failed");
                throw new SetServiceException("Error when notifying the coordinator that the work is cannot be completed", e);
            }
            throw new SetServiceException("Unable to prepare the back-end resource");
View Full Code Here

Examples of com.arjuna.wst11.BAParticipantManager.cannotComplete()

                if (participant != null ) {
                    if (participant instanceof ParticipantCompletionTestParticipant) {
                        ParticipantCompletionTestParticipant baparticipant = (ParticipantCompletionTestParticipant)participant;
                        BAParticipantManager manager = managerMap.get(id);
                        try {
                            manager.cannotComplete();
                            resultsList.add("ok");
                        } catch (Exception e) {
                            throw new WebServiceException("cannotComplete " + id + " failed with exception " + e);
                        }
                    } else {
View Full Code Here

Examples of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType.cannotComplete()

    {
        addressingProperties.setReplyTo(initiator) ;
        ParticipantPortType port = BAInteropClient.getParticipantPort(addressingProperties, cannotCompleteAction);
        CoordinationContextManager.setThreadContext(coordinationContext) ;
        try {
            port.cannotComplete();
        } finally {
            CoordinationContextManager.setThreadContext(null) ;
        }
    }
   
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wsba._2006._06.BusinessAgreementWithCoordinatorCompletionCoordinatorPortType.cannotComplete()

        AddressingHelper.installFromFaultTo(addressingProperties, participant, identifier);
        BusinessAgreementWithCoordinatorCompletionCoordinatorPortType port;
        port = getPort(endpoint, addressingProperties, cannotCompleteAction);
        NotificationType cannotComplete = new NotificationType();

        port.cannotComplete(cannotComplete);
    }

    /**
     * Send a get status request.
     * @param addressingProperties addressing context initialised with to and message ID.
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.