Package org.jboss.blacktie.jatmibroker.core.server

Examples of org.jboss.blacktie.jatmibroker.core.server.ServiceData


    int min = Math.min(Connection.XATMI_SERVICE_NAME_LENGTH,
        serviceName.length());
    serviceName = serviceName.substring(0, min);
    log.debug("Advertising: " + serviceName);

    ServiceData serviceData = this.serviceData.get(serviceName);
    if (serviceData == null) {
      try {
        ServiceData data = new ServiceData(properties, serviceName,
            serviceClassName);
        this.serviceData.put(serviceName, data);
        log.info("Advertised: " + serviceName);
      } catch (Throwable t) {
        throw new ConnectionException(Connection.TPESYSTEM,
View Full Code Here


  public void tpunadvertise(String serviceName) throws ConnectionException {
    serviceName = serviceName.substring(
        0,
        Math.min(Connection.XATMI_SERVICE_NAME_LENGTH,
            serviceName.length()));
    ServiceData data = serviceData.remove(serviceName);
    if (data == null) {
      throw new ConnectionException(Connection.TPENOENT,
          "Service did not exist: " + serviceName);
    }
    data.close();
  }
View Full Code Here

TOP

Related Classes of org.jboss.blacktie.jatmibroker.core.server.ServiceData

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.