org.apache.log.output.jms

Class JMSTopicTarget

Implemented Interfaces:
ErrorAware, LogTarget

public class JMSTopicTarget
extends AbstractJMSTarget

A target that writes to a JMS Topic.
Author:
Peter Donald

Constructor Summary

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

Method Summary

protected void
closeConnection()
protected Session
getSession()
protected void
openConnection()
protected void
send(Message message)

Methods inherited from class org.apache.log.output.jms.AbstractJMSTarget

close, closeConnection, doProcessEvent, getSession, open, openConnection, send

Methods inherited from class org.apache.log.output.AbstractTarget

close, doProcessEvent, error, getErrorHandler, isOpen, open, processEvent, setErrorHandler

Constructor Details

JMSTopicTarget

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

JMSTopicTarget

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

Method Details

closeConnection

protected void closeConnection()
Overrides:
closeConnection in interface AbstractJMSTarget

getSession

protected Session getSession()
Overrides:
getSession in interface AbstractJMSTarget

openConnection

protected void openConnection()
Overrides:
openConnection in interface AbstractJMSTarget

send

protected void send(Message message)
Overrides:
send in interface AbstractJMSTarget