org.jboss.resource.adapter.jms.inflow
Interface DLQHandler

All Known Implementing Classes:
AbstractDLQHandler (src)

public interface DLQHandler

An interface for DLQ Handling


Field Summary
static java.lang.String JBOSS_ORIG_DESTINATION
          JMS property name holding original destination.
static java.lang.String JBOSS_ORIG_MESSAGEID
          JMS property name holding original JMS message id.
 
Method Summary
 boolean handleRedeliveredMessage(Message (src)  msg)
          Check whether the DLQ should handle the message
 void messageDelivered(Message (src)  msg)
          Notification that the message was delivered
 void setup(JmsActivation (src)  activation, javax.naming.Context ctx)
          Set up the DLQ
 void teardown()
          Tear down the DLQ
 

Field Detail

JBOSS_ORIG_DESTINATION

public static final java.lang.String JBOSS_ORIG_DESTINATION
JMS property name holding original destination.

See Also:
Constant Field Values (src)

JBOSS_ORIG_MESSAGEID

public static final java.lang.String JBOSS_ORIG_MESSAGEID
JMS property name holding original JMS message id.

See Also:
Constant Field Values (src)
Method Detail

setup

public void setup(JmsActivation (src)  activation,
                  javax.naming.Context ctx)
           throws java.lang.Exception
Set up the DLQ

Parameters:
activation - the activation
Throws:
java.lang.Exception - for any error

teardown

public void teardown()
Tear down the DLQ


handleRedeliveredMessage

public boolean handleRedeliveredMessage(Message (src)  msg)
Check whether the DLQ should handle the message

Returns:
true if the message is handled and should not be delivered

messageDelivered

public void messageDelivered(Message (src)  msg)
Notification that the message was delivered