Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.jboss.jbossts.xts.environment;
  
  
bean storing WS-C implementation configuration values derived from the xts properties file, system property settings and, in case we are running inside JBossAS the xts bean.xml file
 
 @PropertyPrefix(prefix = "org.jboss.jbossts.xts")
 public class WSCEnvironmentBean
 {
    
the initial time to wait before resending a coordination protocol messaage. this is increased gradually, doubling every two resends up to the maximum value
 
     @FullPropertyName(name="org.jboss.jbossts.xts.transport.initialTransportPeriod")
     private volatile int initialTransportPeriod = 5 * 1000;

    
the maximum time to wait before resending a coordination protocol messaage
 
     @FullPropertyName(name="org.jboss.jbossts.xts.transport.maximumTransportPeriod")
     private volatile int maximumTransportPeriod = 300 * 1000;

    
the wait period after sending a protocol message and not getting the expected reply before it is decided that the server at the other end has crashed. this wait is only used for some exchanges. a timeout may be handled by transitioning to a different transaction state. alternatively the service may merely begin resending the message starting at the initial transport period.
 
     @FullPropertyName(name="org.jboss.jbossts.xts.transport.transportTimeout")
     private volatile int transportTimeout =  30 * 1000;

    
the bind address on which the web service is listening. when running in JBoss AS this is derived from the JBoss Web service bean by injection.
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.bind.address")
     private volatile String bindAddress11 = "localhost";

    
the port which will be used to service non-secure requests.
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.bind.port")
     private volatile int bindPort11 = 8080;

    
the port which will be used to service secure requests.
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.bind.port.secure")
     private volatile int bindPortSecure11 = 8443;

    
the URL to be used by XTS clients to address the Activation Coordinator service when starting a transaction. if this is undefined then a URL is constructed using the scheme, host address, port and URL path specified in the properties file or, where they are missing, using their default values.
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.coordinatorURL")
     private volatile String coordinatorURL11 = null;

    
the scheme which will be used to construct a coordinator URL if it is not specified
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.coordinator.scheme")
     private volatile String coordinatorScheme11 = "http";

    
the address which will be used to construct a coordinator URL if it is not specified
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.coordinator.address")
     private volatile String coordinatorAddress11 = null;

    
the port which will be used to construct a coordinator URL if it is not specified
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.coordinator.port")
     private volatile int coordinatorPort11 = 8080;

    
the path which will be used to construct a coordinator URL if it is not specified
 
     @FullPropertyName(name = "org.jboss.jbossts.xts11.coordinator.path")
     private volatile String coordinatorPath11 = "ws-c11/ActivationService";

    
the bind address on which the web service is listening. when running in JBoss AS this is derived from the JBoss Web service bean by injection. if not set it defaults to localhost.
 
     @FullPropertyName(name = "org.jboss.jbossts.xts.bind.address")
     private volatile String bindAddress10 = "localhost";

    
the port which will be used to service non-secure requests. if not set it defaults to 8080.
 
     @FullPropertyName(name = "org.jboss.jbossts.xts.bind.port")
     private volatile int bindPort10 = 8080;
    
    
the port which will be used to service secure requests. if not set it defaults to 8080. n.b. the 1.0 implementation deploys its own servlet and it only listens on the non-secure port.
    @FullPropertyName(name = "org.jboss.jbossts.xts.bind.port.secure")
    private volatile int bindPortSecure10 = 8080;

    
the URL to be used by XTS clients to address the Activation Coordinator service when starting a transaction. if this is undefined then a URL is constructed using the scheme, host address, port and URL path specified in the properties file or, where they are missing, using their default values.
    @FullPropertyName(name = "org.jboss.jbossts.xts.coordinatorYRL")
    private volatile String coordinatorURL10 = null;

    
the scheme which will be used to construct a coordinator URL if it is not specified
    @FullPropertyName(name = "org.jboss.jbossts.xts.coordinator.scheme")
    private volatile String coordinatorScheme10 = "http";

    
the address which will be used to construct a coordinator URL if it is not specified
    @FullPropertyName(name = "org.jboss.jbossts.xts.coordinator.address")
    private volatile String coordinatorAddress10 = null;

    
the port which will be used to construct a coordinator URL if it is not specified
    @FullPropertyName(name = "org.jboss.jbossts.xts.coordinator.port")
    private volatile int coordinatorPort10 = 8080;

    
the path which will be used to construct a coordinator URL if it is not specified
    @FullPropertyName(name = "org.jboss.jbossts.xts.coordinator.path")
    private volatile String coordinatorPath10 = "ws-c10/soap/ActivationCoordinator";

    
the URL path component of the URL at which 1.1 WS-C services have been mapped. if this is null then the path is defaulted to "ws-c11"
    @FullPropertyName(name = "org.jboss.jbossts.xts.wsc11.serviceURLPath")
    private volatile String serviceURLPath = null;
    public int getInitialTransportPeriod() {
        return ;
    }
    public void setInitialTransportPeriod(int initialTransportPeriod) {
        this. = initialTransportPeriod;
    }
    public int getMaximumTransportPeriod() {
        return ;
    }
    public void setMaximumTransportPeriod(int maximumTransportPeriod) {
        this. = maximumTransportPeriod;
    }
    public int getTransportTimeout() {
        return ;
    }
    public void setTransportTimeout(int transportTimeout) {
        this. = transportTimeout;
    }

    
this setter is used by the microcontainer to inject the inet address supplied during app server startup.
    public void setHttpBindInetAddress(InetAddress httpBindInetAddress) {
        this. = httpBindInetAddress.getHostAddress();
        this. = this.;
    }
    public String getBindAddress11() {
        return ;
    }
    public void setBindAddress11(String bindAddress11) {
        this. = bindAddress11;
    }
    public int getBindPort11() {
        return ;
    }
    public void setBindPort11(int bindPort11) {
        if (bindPort11 > 0) {
            this. = bindPort11;
        }
    }
    public int getBindPortSecure11() {
        return ;
    }
    public void setBindPortSecure11(int bindPortSecure11) {
        if (bindPortSecure11 > 0) {
            this. = bindPortSecure11;
        }
    }
    public String getCoordinatorURL11() {
        if ( == null) {
            // compute the required value
            return getCoordinatorScheme11() + "://" + getCoordinatorAddress11() + ":" + getCoordinatorPort11() + "/" + getCoordinatorPath11();
        }
        return ;
    }
    public void setCoordinatorURL11(String coordinatorURL11) {
        this. = coordinatorURL11;
    }
    public String getCoordinatorScheme11() {
        return ;
    }
    public void setCoordinatorScheme11(String coordinatorScheme11) {
        this. = coordinatorScheme11;
    }
    public String getCoordinatorAddress11() {
        if ( == null) {
            return ;
        }
        return ;
    }
    public void setCoordinatorAddress11(String coordinatorAddress11) {
        this. = coordinatorAddress11;
    }
    public int getCoordinatorPort11() {
        if ( == 0) {
            // be sure to use the port appropriate to the protocol
            String scheme = getCoordinatorScheme11();
            if ("https".equals(scheme)) {
                return ;
            } else {
                return ;
            }
        }
        return ;
    }
    public void setCoordinatorPort11(int coordinatorPort11) {
        this. = coordinatorPort11;
    }
    public String getCoordinatorPath11() {
        return ;
    }
    public void setCoordinatorPath11(String coordinatorPath11) {
        this. = coordinatorPath11;
    }
    public String getBindAddress10() {
        return ;
    }
    public void setBindAddress10(String bindAddress10) {
        this. = bindAddress10;
    }
    public int getBindPort10() {
        return ;
    }
    public void setBindPort10(int bindPort10) {
        if (bindPort10 > 0) {
            this. = bindPort10;
        }
    }
    public int getBindPortSecure10() {
        return ;
    }
    public void setBindPortSecure10(int bindPortSecure10) {
        if (bindPortSecure10 > 0) {
            this. = bindPortSecure10;
        }
    }
    public String getCoordinatorURL10() {
        if ( == null) {
            // compute the required value
            return getCoordinatorScheme10() + "://" + getCoordinatorAddress10() + ":" + getCoordinatorPort10() + "/" + getCoordinatorPath10();
        }
        return ;
    }
    public void setCoordinatorURL10(String coordinatorURL10) {
        this. = coordinatorURL10;
    }
    public String getCoordinatorScheme10() {
        return ;
    }
    public void setCoordinatorScheme10(String coordinatorScheme10) {
        this. = coordinatorScheme10;
    }
    public String getCoordinatorAddress10() {
        if ( == null) {
            return ;
        }
        return ;
    }
    public void setCoordinatorAddress10(String coordinatorAddress10) {
        this. = coordinatorAddress10;
    }
    public int getCoordinatorPort10() {
        if ( == 0) {
            // be sure to use the port appropriate to the protocol
            String scheme = getCoordinatorScheme10();
            if ("https".equals(scheme)) {
                return ;
            } else {
                return ;
            }
        }
        return ;
    }
    public void setCoordinatorPort10(int coordinatorPort10) {
        this. = coordinatorPort10;
    }
    public String getCoordinatorPath10() {
        return ;
    }
    public void setCoordinatorPath10(String coordinatorPath10) {
        this. = coordinatorPath10;
    }
    public String getServiceURLPath() {
        return ;
    }
    public void setServiceURLPath(String serviceURLPath) {
        this. = serviceURLPath;
    }
New to GrepCode? Check out our FAQ X