Package com.arjuna.webservices.wsaddr

Examples of com.arjuna.webservices.wsaddr.EndpointReferenceType


     * @throws SoapFault for processing errors.
     */
    public void invoke(final XMLStreamReader in, final MessageContext context)
        throws XMLStreamException, SoapFault
    {
        final EndpointReferenceType from = new EndpointReferenceType(in) ;
        AddressingContext.getContext(context).setFrom(from) ;
    }
View Full Code Here


        // Add client policies
        ClientPolicy.register(handlerRegistry) ;
       
        soapService = new SoapService(handlerRegistry) ;
        final String activationRequesterURI = SoapRegistry.getRegistry().getServiceURI(CoordinationConstants.SERVICE_ACTIVATION_REQUESTER) ;
        activationRequester = new EndpointReferenceType(new AttributedURIType(activationRequesterURI)) ;
    }
View Full Code Here

        // Add client policies
        ClientPolicy.register(handlerRegistry) ;
       
        soapService = new SoapService(handlerRegistry) ;
        final String registrationCoordinatorURI = SoapRegistry.getRegistry().getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
        registrationCoordinator = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorURI)) ;
    }
View Full Code Here

        // Add client policies
        ClientPolicy.register(handlerRegistry) ;
       
        soapService = new SoapService(handlerRegistry) ;
        final String activationCoordinatorURI = SoapRegistry.getRegistry().getServiceURI(CoordinationConstants.SERVICE_ACTIVATION_COORDINATOR) ;
        activationCoordinator = new EndpointReferenceType(new AttributedURIType(activationCoordinatorURI)) ;
    }
View Full Code Here

       * for how to do this).
       *
       * The same applies for an interposed subordinate transaction created via beginSubordinate.
       */

      final EndpointReferenceType completionCoordinator = (EndpointReferenceType) _completionCoordinators.get(id);

      if (completionCoordinator == null)
        throw new WrongStateException();

      CompletionStub completionStub = new CompletionStub(id, completionCoordinator);
View Full Code Here

       * for how to do this).
       *
       * The same applies for an interposed subordinate transaction created via beginSubordinate.
       */

      EndpointReferenceType completionCoordinator = (EndpointReferenceType) _completionCoordinators.get(id);

      if (completionCoordinator == null)
        throw new WrongStateException();

      CompletionStub completionStub = new CompletionStub(id, completionCoordinator);
View Full Code Here

    private EndpointReferenceType getCompletionParticipant(final String id)
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final String serviceURI = soapRegistry.getServiceURI(AtomicTransactionConstants.SERVICE_COMPLETION_INITIATOR) ;
        final EndpointReferenceType participant = new EndpointReferenceType(new AttributedURIType(serviceURI)) ;
        InstanceIdentifier.setEndpointInstanceIdentifier(participant, id) ;
        return participant ;
    }
View Full Code Here

            final int transactionExpires = arjunaContext.getTransactionExpires() ;
            if (transactionExpires > 0)
            {
                coordinationContext.setExpires(new AttributedUnsignedIntType(transactionExpires)) ;
            }
            final EndpointReferenceType registrationCoordinator = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorURI)) ;
            InstanceIdentifier.setEndpointInstanceIdentifier(registrationCoordinator, arjunaContext.getTransactionIdentifier()) ;
            coordinationContext.setRegistrationService(registrationCoordinator) ;
           
            TerminationCoordinatorProcessor.getProcessor().activateParticipant(new BusinessActivityTerminatorImple(), arjunaContext.getTransactionIdentifier()) ;
   
View Full Code Here

      throws WrongStateException, UnknownTransactionException,
      AlreadyRegisteredException, SystemException
  {
    try
    {
      final EndpointReferenceType coordinator = registerParticipant(getParticipant(id) , AtomicTransactionConstants.WSAT_SUB_PROTOCOL_DURABLE_2PC);

      ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
    }
    catch (com.arjuna.wsc.InvalidProtocolException ex)
    {
View Full Code Here

      throws WrongStateException, UnknownTransactionException,
      AlreadyRegisteredException, SystemException
  {
    try
    {
      final EndpointReferenceType coordinator = registerParticipant(getParticipant(id), AtomicTransactionConstants.WSAT_SUB_PROTOCOL_VOLATILE_2PC);

      ParticipantProcessor.getProcessor().activateParticipant(new ParticipantEngine(tpp, id, coordinator), id) ;
    }
    catch (com.arjuna.wsc.InvalidProtocolException ex)
    {
View Full Code Here

TOP

Related Classes of com.arjuna.webservices.wsaddr.EndpointReferenceType

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.