public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { trace(info.createRemoveCommand()); super.removeProducer(context, info); }
/** * Closes the message producer. * <P> * Since a provider may allocate some resources on behalf of a <CODE> * MessageProducer</CODE> * outside the Java virtual machine, clients should close them when they are * not needed. Relying on garbage collection to eventually reclaim these * resources may not be timely enough. * * @throws JMSException if the JMS provider fails to close the producer due * to some internal error. */ @Override public void close() throws JMSException { if (!closed) { dispose(); this.session.asyncSendPacket(info.createRemoveCommand()); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { super.removeProducer(context, info); // Don't advise advisory topics. ActiveMQDestination dest = info.getDestination(); if (info.getDestination() != null && !AdvisorySupport.isAdvisoryTopic(dest)) { ActiveMQTopic topic = AdvisorySupport.getProducerAdvisoryTopic(dest); producers.remove(info.getProducerId()); if (!dest.isTemporary() || destinations.containsKey(dest)) { fireProducerAdvisory(context, dest, topic, info.createRemoveCommand()); } } }
LOG.debug("tx remove replayed producer :" + producerState.getInfo()); transport.oneway(producerState.getInfo().createRemoveCommand());
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { trace(info.createRemoveCommand()); super.removeProducer(context, info); }
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { trace(info.createRemoveCommand()); super.removeProducer(context, info); }
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { trace(info.createRemoveCommand()); super.removeProducer(context, info); }
public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { trace(info.createRemoveCommand()); super.removeProducer(context, info); }
/** * Closes the message producer. * <P> * Since a provider may allocate some resources on behalf of a <CODE> * MessageProducer</CODE> * outside the Java virtual machine, clients should close them when they are * not needed. Relying on garbage collection to eventually reclaim these * resources may not be timely enough. * * @throws JMSException if the JMS provider fails to close the producer due * to some internal error. */ @Override public void close() throws JMSException { if (!closed) { dispose(); this.session.asyncSendPacket(info.createRemoveCommand()); } }
/** * Closes the message producer. * <P> * Since a provider may allocate some resources on behalf of a <CODE> * MessageProducer</CODE> * outside the Java virtual machine, clients should close them when they are * not needed. Relying on garbage collection to eventually reclaim these * resources may not be timely enough. * * @throws JMSException if the JMS provider fails to close the producer due * to some internal error. */ @Override public void close() throws JMSException { if (!closed) { dispose(); this.session.asyncSendPacket(info.createRemoveCommand()); } }
/** * Closes the message producer. * <P> * Since a provider may allocate some resources on behalf of a <CODE> * MessageProducer</CODE> * outside the Java virtual machine, clients should close them when they are * not needed. Relying on garbage collection to eventually reclaim these * resources may not be timely enough. * * @throws JMSException if the JMS provider fails to close the producer due * to some internal error. */ @Override public void close() throws JMSException { if (!closed) { dispose(); this.session.asyncSendPacket(info.createRemoveCommand()); } }
/** * Closes the message producer. * <P> * Since a provider may allocate some resources on behalf of a <CODE> * MessageProducer</CODE> * outside the Java virtual machine, clients should close them when they are * not needed. Relying on garbage collection to eventually reclaim these * resources may not be timely enough. * * @throws JMSException if the JMS provider fails to close the producer due * to some internal error. */ public void close() throws JMSException { if (!closed) { dispose(); this.session.asyncSendPacket(info.createRemoveCommand()); } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { super.removeProducer(context, info); // Don't advise advisory topics. ActiveMQDestination dest = info.getDestination(); if (info.getDestination() != null && !AdvisorySupport.isAdvisoryTopic(dest)) { ActiveMQTopic topic = AdvisorySupport.getProducerAdvisoryTopic(dest); producers.remove(info.getProducerId()); if (!dest.isTemporary() || destinations.containsKey(dest)) { fireProducerAdvisory(context, dest, topic, info.createRemoveCommand()); } } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { super.removeProducer(context, info); // Don't advise advisory topics. ActiveMQDestination dest = info.getDestination(); if (info.getDestination() != null && !AdvisorySupport.isAdvisoryTopic(dest)) { ActiveMQTopic topic = AdvisorySupport.getProducerAdvisoryTopic(dest); producers.remove(info.getProducerId()); if (!dest.isTemporary() || destinations.containsKey(dest)) { fireProducerAdvisory(context, dest, topic, info.createRemoveCommand()); } } }
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { super.removeProducer(context, info); // Don't advise advisory topics. ActiveMQDestination dest = info.getDestination(); if (info.getDestination() != null && !AdvisorySupport.isAdvisoryTopic(dest)) { ActiveMQTopic topic = AdvisorySupport.getProducerAdvisoryTopic(dest); producers.remove(info.getProducerId()); if (!dest.isTemporary() || destinations.containsKey(dest)) { fireProducerAdvisory(context, dest, topic, info.createRemoveCommand()); } } }
LOG.debug("tx remove replayed producer :" + producerState.getInfo()); transport.oneway(producerState.getInfo().createRemoveCommand());
LOG.debug("tx remove replayed producer :" + producerState.getInfo()); transport.oneway(producerState.getInfo().createRemoveCommand());
public void close() throws IOException { if (!closed) { flushBuffer(); try { // Send an EOS style empty message to signal EOS. send(new ActiveMQMessage(), true); dispose(); this.connection.asyncSendPacket(info.createRemoveCommand()); } catch (JMSException e) { IOExceptionSupport.create(e); } } }
LOG.debug("tx remove replayed producer :" + producerState.getInfo()); transport.oneway(producerState.getInfo().createRemoveCommand());
@Override public void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception { super.removeProducer(context, info); // Don't advise advisory topics. ActiveMQDestination dest = info.getDestination(); if (info.getDestination() != null && !AdvisorySupport.isAdvisoryTopic(dest)) { ActiveMQTopic topic = AdvisorySupport.getProducerAdvisoryTopic(dest); producers.remove(info.getProducerId()); if (!dest.isTemporary() || destinations.contains(dest)) { fireProducerAdvisory(context, dest,topic, info.createRemoveCommand()); } } }