@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { next.send(context, messageSend); }
@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) { Destination destination = iter.next(); destination.send(context, messageSend); } } };
@Override public void run() { try { if (exceptionAtomicReference.get() == null) { dest.send(context, copy(message, dest.getActiveMQDestination())); } } catch (ResourceAllocationException e) { if (!dropMessageOnResourceLimit) { exceptionAtomicReference.set(e); } } catch (Exception e) { exceptionAtomicReference.set(e); } finally { concurrent.countDown(); } } });
/** * Sends a message to the given destination which may be a wildcard * * @param context broker context * @param message message to send * @param destination possibly wildcard destination to send the message to * @throws Exception on error */ protected void send(ProducerBrokerExchange context, Message message, ActiveMQDestination destination) throws Exception { Broker broker = context.getConnectionContext().getBroker(); Set<Destination> destinations = broker.getDestinations(destination); for (Destination dest : destinations) { dest.send(context, message.copy()); } }
if (shouldDispatch(broker, message, dest)) { try { dest.send(context, copy(message, dest.getActiveMQDestination())); } catch (ResourceAllocationException e) { if (!dropMessageOnResourceLimit) {
public void send(ProducerBrokerExchange context, Message message) throws Exception { message.setDestination(mirrorDestination.getActiveMQDestination()); mirrorDestination.send(context, message); if (isCopyMessage()) { message = message.copy(); } message.setDestination(destination.getActiveMQDestination()); message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic. super.send(context, message); } };
@Override public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { final ConnectionContext context = producerExchange.getConnectionContext(); if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) { final Destination regionDestination = lookup(context, messageSend.getDestination(),false); producerExchange.setRegionDestination(regionDestination); } producerExchange.getRegionDestination().send(producerExchange, messageSend); if (producerExchange.getProducerState() != null && producerExchange.getProducerState().getInfo() != null){ producerExchange.getProducerState().getInfo().incrementSentCount(); } }
@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { next.send(context, messageSend); }
@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { next.send(context, messageSend); }
@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) { Destination destination = iter.next(); destination.send(context, messageSend); } } };
@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) { Destination destination = iter.next(); destination.send(context, messageSend); } } };
@Override public void send(ProducerBrokerExchange context, Message messageSend) throws Exception { for (Iterator<Destination> iter = destinations.iterator(); iter.hasNext();) { Destination destination = iter.next(); destination.send(context, messageSend); } } };
@Override public void run() { try { if (exceptionAtomicReference.get() == null) { dest.send(context, copy(message, dest.getActiveMQDestination())); } } catch (Exception e) { exceptionAtomicReference.set(e); } finally { concurrent.countDown(); } } });
@Override public void run() { try { if (exceptionAtomicReference.get() == null) { dest.send(context, copy(message, dest.getActiveMQDestination())); } } catch (Exception e) { exceptionAtomicReference.set(e); } finally { concurrent.countDown(); } } });
public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { final ConnectionContext context = producerExchange.getConnectionContext(); if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) { final Destination regionDestination = lookup(context, messageSend.getDestination(),false); producerExchange.setRegionDestination(regionDestination); } producerExchange.getRegionDestination().send(producerExchange, messageSend); }
public void send(ProducerBrokerExchange context, Message message) throws Exception { message.setDestination(mirrorDestination.getActiveMQDestination()); mirrorDestination.send(context, message); if (isCopyMessage()) { message = message.copy(); } message.setDestination(destination.getActiveMQDestination()); message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic. super.send(context, message); } };
public void send(ProducerBrokerExchange context, Message message) throws Exception { message.setDestination(mirrorDestination.getActiveMQDestination()); mirrorDestination.send(context, message); if (isCopyMessage()) { message = message.copy(); } message.setDestination(destination.getActiveMQDestination()); message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic. super.send(context, message); } };
public void send(ProducerBrokerExchange context, Message message) throws Exception { message.setDestination(mirrorDestination.getActiveMQDestination()); mirrorDestination.send(context, message); if (isCopyMessage()) { message = message.copy(); } message.setDestination(destination.getActiveMQDestination()); message.setMemoryUsage(null); // set this to null so that it will use the queue memoryUsage instance instead of the topic. super.send(context, message); } };
@Override public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { final ConnectionContext context = producerExchange.getConnectionContext(); if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) { final Destination regionDestination = lookup(context, messageSend.getDestination(),false); producerExchange.setRegionDestination(regionDestination); } producerExchange.getRegionDestination().send(producerExchange, messageSend); if (producerExchange.getProducerState() != null && producerExchange.getProducerState().getInfo() != null){ producerExchange.getProducerState().getInfo().incrementSentCount(); } }
@Override public void send(final ProducerBrokerExchange producerExchange, Message messageSend) throws Exception { final ConnectionContext context = producerExchange.getConnectionContext(); if (producerExchange.isMutable() || producerExchange.getRegionDestination() == null) { final Destination regionDestination = lookup(context, messageSend.getDestination(),false); producerExchange.setRegionDestination(regionDestination); } producerExchange.getRegionDestination().send(producerExchange, messageSend); if (producerExchange.getProducerState() != null && producerExchange.getProducerState().getInfo() != null){ producerExchange.getProducerState().getInfo().incrementSentCount(); } }