org.apache.log.output.jms
Class JMSQueueTarget

java.lang.Object
  extended byorg.apache.log.output.AbstractTarget
      extended byorg.apache.log.output.jms.AbstractJMSTarget
          extended byorg.apache.log.output.jms.JMSQueueTarget
All Implemented Interfaces:
Closeable, ErrorAware, LogTarget

public class JMSQueueTarget
extends AbstractJMSTarget

A target that writes to a JMS Queue.

Author:
Mircea Toma

Constructor Summary
JMSQueueTarget(MessageBuilder builder, javax.jms.QueueConnectionFactory factory, javax.jms.Queue queue)
           
JMSQueueTarget(MessageBuilder builder, javax.jms.QueueConnectionFactory factory, javax.jms.Queue queue, ErrorHandler handler)
           
 
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
getErrorHandler, isOpen, processEvent, setErrorHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSQueueTarget

public JMSQueueTarget(MessageBuilder builder,
                      javax.jms.QueueConnectionFactory factory,
                      javax.jms.Queue queue)

JMSQueueTarget

public JMSQueueTarget(MessageBuilder builder,
                      javax.jms.QueueConnectionFactory factory,
                      javax.jms.Queue queue,
                      ErrorHandler handler)
Method Detail

send

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

getSession

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

openConnection

protected void openConnection()
Specified by:
openConnection in class AbstractJMSTarget

closeConnection

protected void closeConnection()
Specified by:
closeConnection in class AbstractJMSTarget


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.