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

Examples of com.sun.messaging.jmq.jmsserver.service.imq.IMQBasicConnection


      // send a reply to the client that we received the request
        // currently we return OK even if we had an error during the shutdown
      setProperties(reply, MessageType.SHUTDOWN_REPLY, Status.OK, null);
      parent.sendReply(con, cmd_msg, reply);
      if (con instanceof IMQBasicConnection)  {
          IMQBasicConnection ipCon = (IMQBasicConnection)con;
            ipCon.flushControl(1000);
      }

       BrokerStateHandler bsh = Globals.getBrokerStateHandler();
       if (time == null || time.intValue() == 0) {
           // stop new connections
View Full Code Here


    public static void destroyConnections(Set destroyConns, int reason, String reasonstr) {

        ConnectionManager cm = Globals.getConnectionManager();
        Iterator cnitr = destroyConns.iterator();
        while (cnitr.hasNext()) {
            IMQBasicConnection conn = (IMQBasicConnection)cm.getConnection(
                                      (ConnectionUID)cnitr.next());
            if (conn == null) continue;
            Globals.getLogger().log(Logger.INFO,
                "Destroying connection " + conn + " because "+reasonstr);
            if (DEBUG) conn.dump();
            conn.destroyConnection(true, reason, reasonstr);
            conn.waitForRelease(Globals.getConfig().getLongProperty(
                 Globals.IMQ+"."+conn.getService().getName()+".destroy_timeout", 30)*1000);
        }
    }
View Full Code Here

             pkt.setProperties ( hash );
             con.sendControlMessage(pkt);
             // increase timeout
             if (con.isBlocking()) {
     if (con instanceof IMQBasicConnection)  {
         IMQBasicConnection ipCon = (IMQBasicConnection)con;
                     ipCon.flushControl(timeout);
     }
                 destroy = true;
             } else {
                 con.setDestroyReason(
                     Globals.getBrokerResources().getKString(
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.service.imq.IMQBasicConnection

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.