org.apache.log.output.jms

Class JMSTopicTarget

public class JMSTopicTarget extends AbstractJMSTarget

A target that writes to a JMS Topic.

Author: Peter Donald

Field Summary
TopicConnectionm_connection
TopicConnectionFactorym_factory
TopicPublisherm_publisher
TopicSessionm_session
Topicm_topic
Constructor Summary
JMSTopicTarget(MessageBuilder builder, TopicConnectionFactory factory, Topic topic)
JMSTopicTarget(MessageBuilder builder, TopicConnectionFactory factory, Topic topic, ErrorHandler handler)
Method Summary
protected voidcloseConnection()
protected SessiongetSession()
protected voidopenConnection()
protected voidsend(Message message)

Field Detail

m_connection

private TopicConnection m_connection

m_factory

private TopicConnectionFactory m_factory

m_publisher

private TopicPublisher m_publisher

m_session

private TopicSession m_session

m_topic

private Topic m_topic

Constructor Detail

JMSTopicTarget

public JMSTopicTarget(MessageBuilder builder, TopicConnectionFactory factory, Topic topic)

JMSTopicTarget

public JMSTopicTarget(MessageBuilder builder, TopicConnectionFactory factory, Topic topic, ErrorHandler handler)

Method Detail

closeConnection

protected void closeConnection()

getSession

protected Session getSession()

openConnection

protected void openConnection()

send

protected void send(Message message)