org.apache.log.output.jms
Class JMSTopicTarget

java.lang.Object
  |
  +--org.apache.log.output.AbstractTarget
        |
        +--org.apache.log.output.jms.AbstractJMSTarget
              |
              +--org.apache.log.output.jms.JMSTopicTarget
All 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, javax.jms.TopicConnectionFactory factory, javax.jms.Topic topic)
           
 
Method Summary
protected  void closeConnection()
           
protected  javax.jms.Session getSession()
           
protected  void openConnection()
           
protected  void send(javax.jms.Message message)
           
 
Methods inherited from class org.apache.log.output.jms.AbstractJMSTarget
close, doProcessEvent, open
 
Methods inherited from class org.apache.log.output.AbstractTarget
error, getErrorHandler, isOpen, processEvent, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSTopicTarget

public JMSTopicTarget(MessageBuilder builder,
                      javax.jms.TopicConnectionFactory factory,
                      javax.jms.Topic topic)
Method Detail

send

protected void send(javax.jms.Message message)
Overrides:
send in class AbstractJMSTarget

getSession

protected javax.jms.Session getSession()
Overrides:
getSession in class AbstractJMSTarget

openConnection

protected void openConnection()
Overrides:
openConnection in class AbstractJMSTarget

closeConnection

protected void closeConnection()
Overrides:
closeConnection in class AbstractJMSTarget


"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."