Examples of JTAContextImple


Examples of com.arjuna.mwlabs.wsc.model.jta.context.JTAContextImple

            /*
            DeploymentContext manager = DeploymentContextFactory.deploymentContext();
            com.arjuna.mw.wsas.context.Context theContext = manager.context();
            */
       
                final JTAContextImple jtaContext = JTAContextImple.getContext() ;
                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(jtaContext.getTransactionIdentifier())) ;
                final int transactionExpires = jtaContext.getTransactionExpires() ;
                if (transactionExpires > 0)
                {
                    coordinationContext.setExpires(new AttributedUnsignedIntType(transactionExpires)) ;
                }
                final EndpointReferenceType registrationCoordinator = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorURI)) ;
                InstanceIdentifier.setEndpointInstanceIdentifier(registrationCoordinator, jtaContext.getTransactionIdentifier()) ;
                coordinationContext.setRegistrationService(registrationCoordinator) ;

            /*
             * Now add the registrar for this specific coordinator to
             * the mapper.
View Full Code Here

Examples of com.arjuna.mwlabs.wsc.model.jta.context.JTAContextImple

            /*
            DeploymentContext manager = DeploymentContextFactory.deploymentContext();
            com.arjuna.mw.wsas.context.Context theContext = manager.context();
            */
       
                final JTAContextImple jtaContext = JTAContextImple.getContext() ;
                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(jtaContext.getTransactionIdentifier())) ;
                final int transactionExpires = jtaContext.getTransactionExpires() ;
                if (transactionExpires > 0)
                {
                    coordinationContext.setExpires(new AttributedUnsignedIntType(transactionExpires)) ;
                }
                final EndpointReferenceType registrationCoordinator = new EndpointReferenceType(new AttributedURIType(registrationCoordinatorURI)) ;
                InstanceIdentifier.setEndpointInstanceIdentifier(registrationCoordinator, jtaContext.getTransactionIdentifier()) ;
                coordinationContext.setRegistrationService(registrationCoordinator) ;

            /*
             * Now add the registrar for this specific coordinator to
             * the mapper.
View Full Code Here

Examples of com.arjuna.mwlabs.wscf.model.as.coordinator.jta.context.soap.JTAContextImple

     * @return a context object or null if no augmentation is necessary.
     */

    public Context context () throws SystemException
    {
  return new JTAContextImple(currentCoordinator());
    }
View Full Code Here

Examples of com.arjuna.mwlabs.wscf.model.as.coordinator.jta.context.soap.JTAContextImple

     * @return a context object or null if no augmentation is necessary.
     */

    public Context context () throws SystemException
    {
  return new JTAContextImple(currentCoordinator());
    }
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.