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

Examples of com.sun.messaging.jmq.jmsserver.core.Subscription.purge()


                while (itr.hasNext()) {
                    DestinationUID c_duid = (DestinationUID) itr.next();
                    Destination dd = Destination.getDestination(c_duid);
                    Subscription oldsub = (Subscription)dd.addConsumer(sub, true, con);
                    if (oldsub != null) {
                        oldsub.purge();
                    }
                }
                sub.sendCreateSubscriptionNotification(c);
            } else if ((wildcard || !d.isQueue()) && shared) {
              // non-durable
View Full Code Here


                // 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

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

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

TOP
Copyright © 2018 www.massapi.com. 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.