Package com.sun.messaging

Examples of com.sun.messaging.QueueConnectionFactory


            String ackTimeout = null;
            Reference ref = (Reference)obj;
            String refClassName = ref.getClassName();
            ConnectionFactory cf;
            if (refClassName.equals(com.sun.messaging.QueueConnectionFactory.class.getName())) {
                cf = new QueueConnectionFactory();
            } else {
                if (refClassName.equals(com.sun.messaging.TopicConnectionFactory.class.getName())) {
                    cf = new TopicConnectionFactory();
                } else {
                    throw new MissingVersionNumberException();
View Full Code Here


     *
     * @exception JMSException thrown if ping fails
     */
    public void pingProvider(String username, String password, int port)
      throws JMSException {
        QueueConnectionFactory    pingQcf;
        Connection      pingConn;
  Properties      props;

  /*
   * Get configuration used to create 'real' admin connections.
   */
  props = qcf.getConfiguration();

  /*
   * Create new connection factory and apply the above configuration
   * to it.
   */
        pingQcf = new QueueConnectionFactory();
        pingQcf.setConnectionType(ClientConstants.CONNECTIONTYPE_ADMIN);

        for (Enumeration e = props.propertyNames();
                         e.hasMoreElements();) {
            String propName = (String)e.nextElement();
            String value  = props.getProperty(propName);

            if (value != null)  {
                pingQcf.setProperty(propName, value);
            }
        }

  /*
   * Use specified port in his new connection factory.
   */
  pingQcf.setProperty(ConnectionConfiguration.imqBrokerHostPort,
      String.valueOf(port));

  /*
   * Create new connection object using specified username/password.
   */
        pingConn = pingQcf.createQueueConnection(username, password);

  /*
   * Perform ping operation.
   */
        pingConn.setExceptionListener(this);
View Full Code Here

    }

    private void createFactory(Properties connectionProps)
        throws JMSException {

        qcf = new QueueConnectionFactory();
        qcf.setConnectionType(ClientConstants.CONNECTIONTYPE_ADMIN);

        for (Enumeration e = connectionProps.propertyNames();
                         e.hasMoreElements();) {
            String propName = (String)e.nextElement();
View Full Code Here

    }

    private void createFactory(Properties brokerAttrs) throws BrokerAdminException  {
  BrokerAdminException  bae;

  qcf = new QueueConnectionFactory();

        try {
      qcf.setConnectionType(ClientConstants.CONNECTIONTYPE_ADMIN);

      for (Enumeration e = brokerAttrs.propertyNames();
View Full Code Here

    private int timeout      = 5000;


    public iASBrokerAdmin(String host, String port) {
  try {
      qcf = new QueueConnectionFactory();
            qcf.setConnectionType(ClientConstants.CONNECTIONTYPE_ADMIN);
      qcf.setProperty(ConnectionConfiguration.imqBrokerHostName, host);
      qcf.setProperty(ConnectionConfiguration.imqBrokerHostPort, port);

            connection = qcf.createQueueConnection
View Full Code Here

TOP

Related Classes of com.sun.messaging.QueueConnectionFactory

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.