/** * Creates a publisher for the specified topic. <p/> * <P> * A client uses a <CODE>TopicPublisher</CODE> object to publish messages * on a topic. Each time a client creates a <CODE>TopicPublisher</CODE> on * a topic, it defines a new sequence of messages that have no ordering * relationship with the messages it has previously sent. * * @param topic the <CODE>Topic</CODE> to publish to, or null if this is * an unidentified producer * @return TopicPublisher * @throws JMSException if the session fails to create a publisher due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicPublisher createPublisher(Topic topic) throws JMSException { checkClosed(); if (topic instanceof CustomDestination) { CustomDestination customDestination = (CustomDestination)topic; return customDestination.createPublisher(this); } int timeSendOut = connection.getSendTimeout(); return new ActiveMQTopicPublisher(this, ActiveMQMessageTransformation.transformDestination(topic),timeSendOut); }
public void publish(Topic topic, Message message, int i, int i1, long l) throws JMSException { getTopicPublisher().publish(topic, message, i, i1, l); }
public Topic getTopic() throws JMSException { return getTopicPublisher().getTopic(); }
public void publish(Message message, int i, int i1, long l) throws JMSException { getTopicPublisher().publish(message, i, i1, l); }
/** * Creates a publisher for the specified topic. <p/> * <P> * A client uses a <CODE>TopicPublisher</CODE> object to publish messages * on a topic. Each time a client creates a <CODE>TopicPublisher</CODE> on * a topic, it defines a new sequence of messages that have no ordering * relationship with the messages it has previously sent. * * @param topic the <CODE>Topic</CODE> to publish to, or null if this is * an unidentified producer * @return TopicPublisher * @throws JMSException if the session fails to create a publisher due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicPublisher createPublisher(Topic topic) throws JMSException { checkClosed(); if (topic instanceof CustomDestination) { CustomDestination customDestination = (CustomDestination)topic; return customDestination.createPublisher(this); } int timeSendOut = connection.getSendTimeout(); return new ActiveMQTopicPublisher(this, ActiveMQMessageTransformation.transformDestination(topic),timeSendOut); }
public void publish(Topic topic, Message message) throws JMSException { getTopicPublisher().publish(topic, message); }
/** * Creates a publisher for the specified topic. <p/> * <P> * A client uses a <CODE>TopicPublisher</CODE> object to publish messages * on a topic. Each time a client creates a <CODE>TopicPublisher</CODE> on * a topic, it defines a new sequence of messages that have no ordering * relationship with the messages it has previously sent. * * @param topic the <CODE>Topic</CODE> to publish to, or null if this is * an unidentified producer * @return TopicPublisher * @throws JMSException if the session fails to create a publisher due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicPublisher createPublisher(Topic topic) throws JMSException { checkClosed(); if (topic instanceof CustomDestination) { CustomDestination customDestination = (CustomDestination)topic; return customDestination.createPublisher(this); } int timeSendOut = connection.getSendTimeout(); return new ActiveMQTopicPublisher(this, ActiveMQMessageTransformation.transformDestination(topic),timeSendOut); }
public void publish(Message message) throws JMSException { getTopicPublisher().publish(message); }
/** * Creates a publisher for the specified topic. <p/> * <P> * A client uses a <CODE>TopicPublisher</CODE> object to publish messages * on a topic. Each time a client creates a <CODE>TopicPublisher</CODE> on * a topic, it defines a new sequence of messages that have no ordering * relationship with the messages it has previously sent. * * @param topic the <CODE>Topic</CODE> to publish to, or null if this is * an unidentified producer * @return TopicPublisher * @throws JMSException if the session fails to create a publisher due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ @Override public TopicPublisher createPublisher(Topic topic) throws JMSException { checkClosed(); if (topic instanceof CustomDestination) { CustomDestination customDestination = (CustomDestination)topic; return customDestination.createPublisher(this); } int timeSendOut = connection.getSendTimeout(); return new ActiveMQTopicPublisher(this, ActiveMQMessageTransformation.transformDestination(topic),timeSendOut); }
/** * Creates a publisher for the specified topic. <p/> * <P> * A client uses a <CODE>TopicPublisher</CODE> object to publish messages * on a topic. Each time a client creates a <CODE>TopicPublisher</CODE> on * a topic, it defines a new sequence of messages that have no ordering * relationship with the messages it has previously sent. * * @param topic the <CODE>Topic</CODE> to publish to, or null if this is * an unidentified producer * @return TopicPublisher * @throws JMSException if the session fails to create a publisher due to * some internal error. * @throws InvalidDestinationException if an invalid topic is specified. */ public TopicPublisher createPublisher(Topic topic) throws JMSException { checkClosed(); if (topic instanceof CustomDestination) { CustomDestination customDestination = (CustomDestination)topic; return customDestination.createPublisher(this); } int timeSendOut = connection.getSendTimeout(); return new ActiveMQTopicPublisher(this, ActiveMQMessageTransformation.transformDestination(topic),timeSendOut); }