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

All Known Implementing Classes:
AbstractDLQHandler, GenericDLQHandler, JBossMQDLQHandler

public interface DLQHandler

An interface for DLQ Handling

Version:
$Revision: 1.1.2.4 $
Author:
Adrian Brock

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

Field Detail

JBOSS_ORIG_DESTINATION

static final String JBOSS_ORIG_DESTINATION
JMS property name holding original destination.

See Also:
Constant Field Values

JBOSS_ORIG_MESSAGEID

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

See Also:
Constant Field Values

PROPERTY_DELIVERY_COUNT

static final String PROPERTY_DELIVERY_COUNT
Standard property for delivery count

See Also:
Constant Field Values
Method Detail

setup

void setup(JmsActivation activation,
           Context ctx)
           throws Exception
Set up the DLQ

Parameters:
activation - the activation
ctx - the naming context
Throws:
Exception - for any error

teardown

void teardown()
Tear down the DLQ


handleRedeliveredMessage

boolean handleRedeliveredMessage(javax.jms.Message msg)
Check whether the DLQ should handle the message

Parameters:
msg - the message about to be delivered
Returns:
true if the message is handled and should not be delivered

messageDelivered

void messageDelivered(javax.jms.Message msg)
Notification that the message was delivered

Parameters:
msg - the message that was delivered


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.