Package com.sun.messaging.jmq.jmsserver.core

Examples of com.sun.messaging.jmq.jmsserver.core.Subscription


            errMsg =  rb.getString(rb.E_CANNOT_PROCEED_TAKEOVER_IN_PROCESS);

            logger.log(Logger.ERROR, this.getClass().getName() + ": " + errMsg);
  } else  {
        try {
            Subscription sub = Subscription.findDurableSubscription(clientID, durable);
            if (sub == null) {
                // couldnt find subscription
//XXX
                errMsg = " unknown durable subscription " + durable + ":" + clientID;
                status = Status.ERROR;
            } else {
                sub.purge();
            }
         
        } catch (BrokerException ex) {
            ex.printStackTrace();
            errMsg = getMessageFromException(ex);
View Full Code Here


    "Purge not supported for non durable subscribers.");
      return;
  }

  if (con instanceof Subscription)  {
            Subscription sub = (Subscription)con;

      try  {
    sub.purge();
      } catch(Exception e)  {
    handleOperationException(ConsumerOperations.PURGE, e);
      }
        }
    }
View Full Code Here

     */
    public Object next() throws RuntimeException {
        try {
            String dname = dis.readUTF();
            String cname = dis.readUTF();
            Subscription sub = Subscription.findDurableSubscription(cname, dname);
            count_read++;
            return sub;
        } catch (IOException e) {
            count_read = -1;
            throw new RuntimeException(e);
View Full Code Here

        return (new Boolean(isDurableActive(cid)));
    }

    private static String getDurableName(ConsumerUID cid)  {
  Consumer con;
  Subscription sub;

  if (!getDurable(cid).booleanValue())  {
      return (null);
  }

  con = Consumer.getConsumer(cid);
  if (con == null)  {
      return (null);
  }

  if (con instanceof Subscription)  {
            return (((Subscription)con).getDurableName());
  } else  {
      sub = con.getSubscription();

      if (sub != null)  {
                return (sub.getDurableName());
      } else  {
                return (null);
      }
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.core.Subscription

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.