@Override public Destination getDestination() throws JMSException { return this.target.getDestination(); }
@Override public Topic getTopic() throws JMSException { return (Topic) this.target.getDestination(); }
@Override public Queue getQueue() throws JMSException { return (Queue) this.target.getDestination(); }
@Override public Destination getDestination() throws JMSException { return delegate.getDestination(); }
@Override Destination destination(Message message) { try { Destination result = message.getJMSDestination(); if (result != null) return result; return delegate.getDestination(); } catch (JMSException ignored) { // don't crash on wonky exceptions! } return null; }
@Override public Topic getTopic() throws JMSException { return (Topic) this.target.getDestination(); }
@Override public Queue getQueue() throws JMSException { return (Queue) this.target.getDestination(); }
@Override public String getDestinationName() { try { if (producer != null && producer.getDestination() != null) { return producer.getDestination().toString(); } } catch (JMSException e) { // eat this } return null; }
@Override public String getDestinationName() { try { if (producer != null && producer.getDestination() != null) { return producer.getDestination().toString(); } } catch (JMSException e) { // eat this } return null; }
/** Delegates the call to the wrapped producer. */ public Topic getTopic() throws JMSException { checkValidity(); return (Topic) producer.getDestination(); }
/** Delegates the call to the wrapped producer. */ public Topic getTopic() throws JMSException { checkValidity(); return (Topic) producer.getDestination(); }
/** Delegates the call to the wrapped producer. */ public Destination getDestination() throws JMSException { checkValidity(); return producer.getDestination(); }
/** Delegates the call to the wrapped producer. */ public Destination getDestination() throws JMSException { checkValidity(); return producer.getDestination(); }
public Destination getDestination() throws JMSException { return getMessageProducer().getDestination(); }
@Override public Destination getDestination() throws JMSException { return getMessageProducer().getDestination(); }
/** Delegates the call to the wrapped producer. */ public Queue getQueue() throws JMSException { if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG)) AdapterTracing.dbgAdapter.log(BasicLevel.DEBUG, this + " getQueue() = " + producer.getDestination()); checkValidity(); return (Queue) producer.getDestination(); }
/** Delegates the call to the wrapped producer. */ public Queue getQueue() throws JMSException { if (logger.isLoggable(BasicLevel.DEBUG)) logger.log(BasicLevel.DEBUG, this + " getQueue() = " + producer.getDestination()); checkValidity(); return (Queue) producer.getDestination(); }
@Test public void testGetDestination() throws Exception { Connection pconn = createConnection(); try { Session ps = pconn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer p = ps.createProducer(ActiveMQServerTestCase.topic1); Destination dest = p.getDestination(); ProxyAssertSupport.assertEquals(dest, ActiveMQServerTestCase.topic1); } finally { pconn.close(); } }
public PooledProducer(MessageProducer messageProducer, Destination destination) throws JMSException { this.messageProducer = messageProducer; this.destination = destination; this.anonymous = messageProducer.getDestination() == null; this.deliveryMode = messageProducer.getDeliveryMode(); this.disableMessageID = messageProducer.getDisableMessageID(); this.disableMessageTimestamp = messageProducer.getDisableMessageTimestamp(); this.priority = messageProducer.getPriority(); this.timeToLive = messageProducer.getTimeToLive(); }
public PooledProducer(MessageProducer messageProducer, Destination destination) throws JMSException { this.messageProducer = messageProducer; this.destination = destination; this.anonymous = messageProducer.getDestination() == null; this.deliveryMode = messageProducer.getDeliveryMode(); this.disableMessageID = messageProducer.getDisableMessageID(); this.disableMessageTimestamp = messageProducer.getDisableMessageTimestamp(); this.priority = messageProducer.getPriority(); this.timeToLive = messageProducer.getTimeToLive(); }