Package com.sun.messaging.jmq.jmsserver.service

Examples of com.sun.messaging.jmq.jmsserver.service.ConnectionManager


  return (new Long(currentTime - cxnUID.age(currentTime)));
    }


    public static List getConsumerIDs(long cxnId)  {
  ConnectionManager  cm = Globals.getConnectionManager();
  ConnectionInfo    cxnInfo = null;
  IMQConnection    cxn = null;
  List      consumerIDs;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(cxnId));
  consumerIDs = cxn.getConsumersIDs();

  return (consumerIDs);
    }
View Full Code Here


  return (consumerIDs);
    }

    public static List getProducerIDs(long cxnId)  {
  ConnectionManager  cm = Globals.getConnectionManager();
  ConnectionInfo    cxnInfo = null;
  IMQConnection    cxn = null;
  List      producerIDs;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(cxnId));
  producerIDs = cxn.getProducerIDs();

  return (producerIDs);
    }
View Full Code Here

  return (producerIDs);
    }

    public static void destroyConnection(long cxnId, String reasonString)  {
  ConnectionManager  cm = Globals.getConnectionManager();
  IMQConnection    cxn = null;

  cxn = (IMQConnection)cm.getConnection(new ConnectionUID(cxnId));

  if (cxn != null)  {
      cxn.destroyConnection(true, GoodbyeReason.ADMIN_KILLED_CON,
            reasonString);
  }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.service.ConnectionManager

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.