Package org.activemq.advisories

Examples of org.activemq.advisories.TempDestinationAdvisoryEvent


  }

  protected void startTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .get(dest);
      if (event == null) {
        event = new TempDestinationAdvisoryEvent(dest, true);
        tempDestinationMap.put(dest, event);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
View Full Code Here


  }

  protected void stopTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .remove(dest);
      if (event != null) {
        event.setStarted(false);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
        msg.setJMSMessageID("ID:" + dest.getPhysicalName()
View Full Code Here

  }

  protected void startTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .get(dest);
      if (event == null) {
        event = new TempDestinationAdvisoryEvent(dest, true);
        tempDestinationMap.put(dest, event);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
View Full Code Here

  }

  protected void stopTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .remove(dest);
      if (event != null) {
        event.setStarted(false);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
        msg.setJMSMessageID("ID:" + dest.getPhysicalName()
View Full Code Here

  }

  protected void startTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .get(dest);
      if (event == null) {
        event = new TempDestinationAdvisoryEvent(dest, true);
        tempDestinationMap.put(dest, event);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
View Full Code Here

  }

  protected void stopTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .remove(dest);
      if (event != null) {
        event.setStarted(false);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
        msg.setJMSMessageID("ID:" + dest.getPhysicalName()
View Full Code Here

                dispatchToTarget(sender, generateAdvisory(advisory, info));
            }
            for (Iterator i = tempDestinations.values().iterator();i.hasNext();) {
                Set set = (Set) i.next();
                for (Iterator si = set.iterator();si.hasNext();) {
                    TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) si.next();
                    dispatchToTarget(sender, generateAdvisory(advisory, event));
                }
            }
        }
        addConsumer(sender, advisory);
View Full Code Here

     * @param sender
     * @param message
     * @throws JMSException
     */
    void processTempDestinationAdvisory(BrokerClient sender, ActiveMQMessage message) throws JMSException {
        TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) ((ObjectMessage) message).getObject();
        processTempDestinationAdvisory(event);
    }
View Full Code Here

    private void removeAllTempDestinations(BrokerClient sender, String clientId) {
        Set set = (Set) tempDestinations.remove(clientId);
        if (set != null) {
            for (Iterator i = set.iterator();i.hasNext();) {
                TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) i.next();
                event.setStarted(false);
                processTempDestinationAdvisory(event);
                for (Iterator it = advisoryConsumers.iterator();it.hasNext();) {
                    ConsumerInfo advisory = (ConsumerInfo) it.next();
                    dispatchToTarget(sender, generateAdvisory(advisory, event));
                }
View Full Code Here

  }

  protected void startTemporaryDestination(ActiveMQDestination dest)
      throws JMSException {
    if (dest != null && dest.isTemporary()) {
      TempDestinationAdvisoryEvent event = (TempDestinationAdvisoryEvent) tempDestinationMap
          .get(dest);
      if (event == null) {
        event = new TempDestinationAdvisoryEvent(dest, true);
        tempDestinationMap.put(dest, event);
        ActiveMQObjectMessage msg = new ActiveMQObjectMessage();
        msg.setObject(event);
        msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
        msg.setJMSDestination(dest.getTopicForTempAdvisory());
View Full Code Here

TOP

Related Classes of org.activemq.advisories.TempDestinationAdvisoryEvent

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.