Package com.arjuna.webservices

Examples of com.arjuna.webservices.SoapRegistry


            _coordManager.begin();
       
            DeploymentContext manager = DeploymentContextFactory.deploymentContext();
                ArjunaContextImple arjunaContext = (ArjunaContextImple)manager.context();

                final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
                final String registrationCoordinatorURI = soapRegistry.getServiceURI(CoordinationConstants.SERVICE_REGISTRATION_COORDINATOR) ;
               
                final CoordinationContextType coordinationContext = new CoordinationContextType() ;
                coordinationContext.setCoordinationType(new URI(coordinationTypeURI)) ;
                coordinationContext.setIdentifier(new AttributedURIType(arjunaContext.getTransactionIdentifier())) ;
                final int transactionExpires = arjunaContext.getTransactionExpires() ;
View Full Code Here


     */
    private SoapService getSoapService(final String pathInfo)
    {
        if (pathInfo.length() > 0)
        {
            final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
            if ('/' == pathInfo.charAt(0))
            {
                return soapRegistry.getSoapService(pathInfo.substring(1)) ;
            }
            else
            {
                return soapRegistry.getSoapService(pathInfo) ;
            }
        }
        else
        {
            return null ;
View Full Code Here

    {
        final HttpServiceMultiplexorServlet servlet = this;

        Sequencer.Callback callback = new Sequencer.Callback(Sequencer.SEQUENCE_WSCOOR10, Sequencer.WEBAPP_WSC10) {
           public void run() {
               final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
               soapRegistry.registerSoapServiceProvider(HttpUtils.HTTP_SCHEME, servlet) ;
               soapRegistry.registerSoapServiceProvider(HttpUtils.HTTPS_SCHEME, servlet) ;
               servlet.configureBaseURIs();
           }
        };

        // this is the last WSC callback to be initialised so close the list
View Full Code Here

     */
    public void contextInitialized(final ServletContextEvent servletContextEvent)
    {
        Sequencer.Callback callback = new Sequencer.Callback(Sequencer.SEQUENCE_WSCOOR10, Sequencer.WEBAPP_WSC10) {
           public void run() {
               final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
               final SoapClient client = new HttpClient() ;
               soapRegistry.registerSoapClient(HttpUtils.HTTP_SCHEME, client) ;
               soapRegistry.registerSoapClient(HttpUtils.HTTPS_SCHEME, client) ;
           }
        };
    }
View Full Code Here

     * The context is about to be destroyed.
     * @param servletContextEvent The servlet context event.
     */
    public void contextDestroyed(final ServletContextEvent servletContextEvent)
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        soapRegistry.removeSoapClient(HttpUtils.HTTPS_SCHEME) ;
        soapRegistry.removeSoapClient(HttpUtils.HTTP_SCHEME) ;
    }
View Full Code Here

    protected void setUp()
        throws Exception
    {
        origCoordinatorCompletionParticipantProcessor = CoordinatorCompletionParticipantProcessor.setProcessor(testCoordinatorCompletionParticipantProcessor) ;
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        coordinatorCompletionParticipantServiceURI = soapRegistry.getServiceURI(BusinessActivityConstants.SERVICE_COORDINATOR_COMPLETION_PARTICIPANT) ;
        coordinatorCompletionCoordinatorServiceURI = soapRegistry.getServiceURI(BusinessActivityConstants.SERVICE_COORDINATOR_COMPLETION_COORDINATOR) ;
    }
View Full Code Here

public class CompletionCoordinatorTestCase extends TestCase
{
    protected void setUp()
        throws Exception
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        completionInitiatorServiceURI = soapRegistry.getServiceURI(AtomicTransactionConstants.SERVICE_COMPLETION_INITIATOR) ;
        completionCoordinatorServiceURI = soapRegistry.getServiceURI(AtomicTransactionConstants.SERVICE_COMPLETION_COORDINATOR) ;
    }
View Full Code Here

    protected void setUp()
        throws Exception
    {
        origCoordinatorCompletionCoordinatorProcessor = CoordinatorCompletionCoordinatorProcessor.setProcessor(testCoordinatorCompletionCoordinatorProcessor) ;
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        coordinatorCompletionCoordinatorServiceURI = soapRegistry.getServiceURI(BusinessActivityConstants.SERVICE_COORDINATOR_COMPLETION_COORDINATOR) ;
        coordinatorCompletionParticipantServiceURI = soapRegistry.getServiceURI(BusinessActivityConstants.SERVICE_COORDINATOR_COMPLETION_PARTICIPANT) ;
    }
View Full Code Here

    protected void setUp()
        throws Exception
    {
        origParticipantProcessor = ParticipantProcessor.setProcessor(testParticipantProcessor) ;
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        participanURIService = soapRegistry.getServiceURI(AtomicTransactionConstants.SERVICE_PARTICIPANT) ;
        coordinatorServiceURI = soapRegistry.getServiceURI(AtomicTransactionConstants.SERVICE_COORDINATOR) ;
    }
View Full Code Here

public class CompletionServiceTestCase extends TestCase
{
    protected void setUp()
        throws Exception
    {
        final SoapRegistry soapRegistry = SoapRegistry.getRegistry() ;
        final String completionCoordinatorServiceURI = soapRegistry.getServiceURI(AtomicTransactionConstants.SERVICE_COMPLETION_COORDINATOR) ;

        EndpointReferenceType noExceptionCompletionCoordinator = new EndpointReferenceType(new AttributedURIType(completionCoordinatorServiceURI));
        InstanceIdentifier.setEndpointInstanceIdentifier(noExceptionCompletionCoordinator, TestUtil.NOEXCEPTION_TRANSACTION_IDENTIFIER);

        EndpointReferenceType transactionRolledBackExceptionCompletionCoordinator = new EndpointReferenceType(new AttributedURIType(completionCoordinatorServiceURI));
View Full Code Here

TOP

Related Classes of com.arjuna.webservices.SoapRegistry

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.