/** * @param topic * @return * @throws JMSException */ public TopicPublisher createPublisher(Topic topic) throws JMSException { return next.createPublisher(topic); }
@Override protected synchronized MessageProducer createProducer() throws JMSException { if (producerConnection == null) return null; producerSession = producerConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); producer = producerSession.createPublisher(null); return producer; }
@Override public TopicPublisher createPublisher(Topic topic) throws JMSException { checkTopicSession(); TopicSession ts = (TopicSession) delegate; return TracingMessageProducer.create(ts.createPublisher(topic), jmsTracing); }
/** Constructor for the {@code TopicRequestor} class. * * <P>This implementation assumes the session parameter to be non-transacted, * with a delivery mode of either {@code AUTO_ACKNOWLEDGE} or * {@code DUPS_OK_ACKNOWLEDGE}. * * @param session the {@code TopicSession} the topic belongs to * @param topic the topic to perform the request/reply call on * * @exception JMSException if the JMS provider fails to create the * {@code TopicRequestor} due to some internal * error. * @exception InvalidDestinationException if an invalid topic is specified. */ public TopicRequestor(TopicSession session, Topic topic) throws JMSException { if (topic==null) throw new InvalidDestinationException("topic==null"); this.session = session; tempTopic = session.createTemporaryTopic(); publisher = session.createPublisher(topic); subscriber = session.createSubscriber(tempTopic); }
topicPublisher = topicSession.createPublisher(topic);
.getString(JmsHelper.JMS_DESTINATION_JNDI)); publisher = sess.createPublisher(topic);
public TopicRequestor(TopicSession session, Topic topic) throws JMSException { super(); setSession(session); setTopic(topic); setTemporaryTopic(session.createTemporaryTopic()); setPublisher(session.createPublisher(topic)); setSubscriber(session.createSubscriber(getTemporaryTopic())); }
topicPublisher = topicSession.createPublisher(topic);
public TopicPublisher getOrCreatePublisher() throws JMSException { if (publisher == null) { synchronized (this) { if (publisher == null) { publisher = ((TopicSession) session).createPublisher(null); } } } return publisher; }
/** * @param topic * @return * @throws JMSException */ public TopicPublisher createPublisher(Topic topic) throws JMSException { return next.createPublisher(topic); }
this.topicPublisher = topicSession.createPublisher(topic);
@Override protected synchronized MessageProducer createProducer() throws JMSException { if (producerConnection == null) return null; producerSession = producerConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); producer = producerSession.createPublisher(null); return producer; }
protected SendSession createSendSession(javax.jms.Connection connection) throws JMSException { TopicSession session = createTopicSession((TopicConnection)connection, JMSConstants.DEFAULT_ACKNOWLEDGE_MODE); TopicPublisher publisher = session.createPublisher(null); return new TopicSendSession(session, publisher); }
protected SendSession createSendSession(javax.jms.Connection connection) throws JMSException { TopicSession session = createTopicSession((TopicConnection)connection, JMSConstants.DEFAULT_ACKNOWLEDGE_MODE); TopicPublisher publisher = session.createPublisher(null); return new TopicSendSession(session, publisher); }
@Override protected synchronized MessageProducer createProducer() throws JMSException { if (producerConnection == null) return null; producerSession = producerConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); producer = producerSession.createPublisher(null); return producer; }
@Create public void create() throws JMSException, NamingException { topicPublisher = org.jboss.seam.jms.TopicSession.instance().createPublisher( getTopic() ); }
public TopicPublisher getTopicPublisher(Topic destination) throws JMSException { TopicPublisher result = null; if (useAnonymousProducers) { result = safeGetSessionHolder().getOrCreatePublisher(); } else { result = ((TopicSession) getInternalSession()).createPublisher(destination); } return result; }
public TopicRequestor(TopicSession session, Topic topic) throws JMSException { super(); setSession(session); setTopic(topic); setTemporaryTopic(session.createTemporaryTopic()); setPublisher(session.createPublisher(topic)); setSubscriber(session.createSubscriber(getTemporaryTopic())); }
public TopicRequestor(TopicSession session, Topic topic) throws JMSException { super(); setSession(session); setTopic(topic); setTemporaryTopic(session.createTemporaryTopic()); setPublisher(session.createPublisher(topic)); setSubscriber(session.createSubscriber(getTemporaryTopic())); }
public TopicRequestor(TopicSession session, Topic topic) throws JMSException { super(); setSession(session); setTopic(topic); setTemporaryTopic(session.createTemporaryTopic()); setPublisher(session.createPublisher(topic)); setSubscriber(session.createSubscriber(getTemporaryTopic())); }