org.jboss.resource.adapter.jms.inflow.dlq
Class JBossMQDLQHandler

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler (src) 
      extended byorg.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler
All Implemented Interfaces:
DLQHandler (src) , ExceptionListener (src)
Direct Known Subclasses:
GenericDLQHandler (src)

public class JBossMQDLQHandler
extends AbstractDLQHandler (src)

A DLQ Handler that knows about JBossMQ redelivery properties


Field Summary
protected static java.lang.String JMS_JBOSS_REDELIVERY_COUNT
          Properties copied from org.jboss.mq.SpyMessage
protected static java.lang.String JMS_JBOSS_REDELIVERY_LIMIT
          Properties copied from org.jboss.mq.SpyMessage
protected  int maxResent
          The maximum number of resends
 
Fields inherited from class org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler (src)
activation, connection, dlq, log
 
Fields inherited from interface org.jboss.resource.adapter.jms.inflow.DLQHandler (src)
JBOSS_ORIG_DESTINATION, JBOSS_ORIG_MESSAGEID
 
Constructor Summary
JBossMQDLQHandler()
           
 
Method Summary
protected  boolean handleDelivery(Message (src)  msg)
          Do we handle the message?
 void setup(JmsActivation (src)  activation, javax.naming.Context ctx)
          Set up the DLQ
 
Methods inherited from class org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler (src)
doSend, getDeliveryMode, getPriority, getTimeToLive, handleRedeliveredMessage, handleSendError, makeWritable, messageDelivered, onException, sendToDLQ, setupDLQConnection, setupDLQDestination, teardown, teardownDLQConnection, teardownDLQDestination, warnDLQ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JMS_JBOSS_REDELIVERY_COUNT

protected static final java.lang.String JMS_JBOSS_REDELIVERY_COUNT
Properties copied from org.jboss.mq.SpyMessage

See Also:
Constant Field Values (src)

JMS_JBOSS_REDELIVERY_LIMIT

protected static final java.lang.String JMS_JBOSS_REDELIVERY_LIMIT
Properties copied from org.jboss.mq.SpyMessage

See Also:
Constant Field Values (src)

maxResent

protected int maxResent
The maximum number of resends

Constructor Detail

JBossMQDLQHandler

public JBossMQDLQHandler()
Method Detail

setup

public void setup(JmsActivation (src)  activation,
                  javax.naming.Context ctx)
           throws java.lang.Exception
Description copied from interface: DLQHandler (src)
Set up the DLQ

Specified by:
setup in interface DLQHandler (src)
Overrides:
setup in class AbstractDLQHandler (src)
Throws:
java.lang.Exception

handleDelivery

protected boolean handleDelivery(Message (src)  msg)
Description copied from class: AbstractDLQHandler (src)
Do we handle the message?

Specified by:
handleDelivery in class AbstractDLQHandler (src)
Parameters:
msg - the message to handle
Returns:
true when we handle it