public class MessagePublisher extends Object
Constructor and Description |
---|
MessagePublisher(Topic topic,
TopicConnectionFactory factory) |
MessagePublisher(Topic topic,
TopicConnectionFactory factory,
MessageFactory messageFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static MessagePublisher |
createPublisher(String connectionFactory,
String topic) |
static MessagePublisher |
createPublisher(String connectionFactoryName,
String topicName,
MessageFactory messageFactory) |
TopicConnection |
getConnection() |
MessageFactory |
getMessageFactory() |
TopicPublisher |
getPublisher() |
TopicSession |
getSession() |
Topic |
getTopic() |
void |
publish(Message msg) |
void |
publish(Object content) |
void |
setMessageFactory(MessageFactory factory) |
void |
setTopic(Topic topic) |
public MessagePublisher(Topic topic, TopicConnectionFactory factory)
public MessagePublisher(Topic topic, TopicConnectionFactory factory, MessageFactory messageFactory)
public Topic getTopic()
public void setTopic(Topic topic)
public void setMessageFactory(MessageFactory factory)
public MessageFactory getMessageFactory()
public TopicConnection getConnection() throws JMSException
JMSException
public TopicSession getSession() throws JMSException
JMSException
public TopicPublisher getPublisher() throws JMSException
JMSException
public void publish(Object content) throws JMSException
JMSException
public void publish(Message msg) throws JMSException
JMSException
public void close() throws JMSException
JMSException
public static MessagePublisher createPublisher(String connectionFactory, String topic) throws NamingException
NamingException
public static MessagePublisher createPublisher(String connectionFactoryName, String topicName, MessageFactory messageFactory) throws NamingException
NamingException
Copyright © 2011 Nuxeo SA. All Rights Reserved.