Package org.codehaus.activemq.advisories

Examples of org.codehaus.activemq.advisories.TempDestinationAdvisoryEvent


        return filterFactory;
    }
   
    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);
                String destName = ActiveMQDestination.TEMP_DESTINATION_ADVISORY_PREFIX + dest.getPhysicalName();
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);
                String destName = ActiveMQDestination.TEMP_DESTINATION_ADVISORY_PREFIX + dest.getPhysicalName();
                ActiveMQDestination target = ActiveMQDestination.createDestination(dest.getDestinationType(), destName);
View Full Code Here

TOP

Related Classes of org.codehaus.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.