Package org.objectweb.joram.client.jms

Examples of org.objectweb.joram.client.jms.FactoryParameters


   *
   * @param host  Name or IP address of the server's host.
   * @param port  Server's listening port.
   */
  public AbstractConnectionFactory(String host, int port) {
    params = new FactoryParameters(host, port);
   
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG, this + ": created.");
  }
View Full Code Here


   * Constructs a <code>ConnectionFactory</code> dedicated to a given server.
   *
   * @param url  joram ha url.
   */
  public AbstractConnectionFactory(String url) {
    params = new FactoryParameters(url);
   
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG, this + ": created.");
  }
View Full Code Here

  /**
   * Constructs an empty <code>ConnectionFactory</code>.
   * Needed by ObjectFactory.
   */
  public AbstractConnectionFactory() {
    params = new FactoryParameters();
  }
View Full Code Here

  public int getMultiThreadSyncDelay() {
    return multiThreadSyncDelay;
  }

  protected void setParameters(Object factory) {
    FactoryParameters fp = null;
    if (factory instanceof org.objectweb.joram.client.jms.ConnectionFactory) {
      org.objectweb.joram.client.jms.ConnectionFactory f =
        (org.objectweb.joram.client.jms.ConnectionFactory) factory;
      fp = f.getParameters();
    } else if (factory instanceof org.objectweb.joram.client.jms.XAConnectionFactory) {
      org.objectweb.joram.client.jms.XAConnectionFactory f =
        (org.objectweb.joram.client.jms.XAConnectionFactory) factory;
      fp = f.getParameters();
    }
    if (fp != null) {
      fp.connectingTimer = connectingTimer;
      fp.cnxPendingTimer = cnxPendingTimer;
      fp.txPendingTimer = txPendingTimer;
      if (asyncSend) {
        fp.asyncSend = asyncSend;
      }
      if (multiThreadSync) {
        fp.multiThreadSync = multiThreadSync;
      }
      if (multiThreadSyncDelay > 0) {
        fp.multiThreadSyncDelay = multiThreadSyncDelay;
      }
      if (outLocalPort > 0) {
        fp.outLocalPort = outLocalPort;
      }
      if (outLocalAddress != null) {
        fp.outLocalAddress = outLocalAddress;
      }
      if (inInterceptors != null) {
      String[] interceptorArray = inInterceptors.split(",");
      if (interceptorArray != null) {
        for (String interceptorClassName : interceptorArray) {
            String interceptorName = interceptorClassName.trim();
        if (interceptorName.length() > 0) {
          fp.addInInterceptor(interceptorName);
          }
          }
        }
      }
      if (outInterceptors != null) {
        String[] interceptorArray = outInterceptors.split(",");
        if (interceptorArray != null) {
          for (String interceptorClassName : interceptorArray) {
            String interceptorName = interceptorClassName.trim();
            if (interceptorName.length() > 0) {
          fp.addOutInterceptor(interceptorName);
        }
          }
        }
      }     
     
View Full Code Here

      try {
        cnx = cf.createConnection(name, password);
        cnx.start();
        wrapper = new AdminWrapper(cnx);

        FactoryParameters params = cf.getParameters();
        localHost = params.getHost();
        localPort = params.getPort();
      } catch (JMSSecurityException exc) {
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "AdminModule.doConnect", exc);
        throw new AdminException(exc.getMessage());
      } catch (JMSException exc) {
View Full Code Here

TOP

Related Classes of org.objectweb.joram.client.jms.FactoryParameters

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.