com.waveset.adapter.jms
Class JmsMessageLifeCycleEvent

java.lang.Object
  extended bycom.waveset.adapter.jms.JmsMessageLifeCycleEvent

public class JmsMessageLifeCycleEvent
extends java.lang.Object

This is the object type which is passed to the event listener.


Field Summary
static java.lang.String EVENT_AWAITING_CLIENT_ACK
          This event type indicates that the message shoud be acknowledged at this point.
static java.lang.String EVENT_COMMITTED
          This event type indicates that the JMS session in which this message was received was just successfully committed.
The data Map returned by getData() will be null.
static java.lang.String EVENT_FAILED
          This event type indicates that IdM processing of the message failed.
The data Map returned by getData() will be populated as follows: KeyValue TypeDescription "throwable"java.lang.ThrowableThe failure
static java.lang.String EVENT_MAPPED
          This event type indicates that the message was succesfully translated to an attribute map.
The data Map returned by getData() will be populated as follows: KeyValue TypeDescription "rhsMap"java.util.MapThe populated right-hand attribute side
static java.lang.String EVENT_RECEIVED
          This event type indicates that the message was just received from the JMS provider.
The data Map returned by getData() will be populated as follows: KeyValue TypeDescription "isTransacted"java.lang.Booleantrue if the receiving session is transacted "acknowledgeMode"java.lang.Integerthe acknowledgeMode of the receiving session
static java.lang.String EVENT_SUCCEEDED
          This event type indicates that IdM processing of the message was successful.
The data Map returned by getData() will be null.
 
Constructor Summary
JmsMessageLifeCycleEvent(javax.jms.Message message, java.lang.String type, java.util.Map data)
           
 
Method Summary
 java.util.Map getData()
           
 javax.jms.Message getMessage()
           
 java.lang.String getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_RECEIVED

public static final java.lang.String EVENT_RECEIVED
This event type indicates that the message was just received from the JMS provider.
The data Map returned by getData() will be populated as follows:
KeyValue TypeDescription
"isTransacted"java.lang.Booleantrue if the receiving session is transacted
"acknowledgeMode"java.lang.Integerthe acknowledgeMode of the receiving session

See Also:
Constant Field Values

EVENT_COMMITTED

public static final java.lang.String EVENT_COMMITTED
This event type indicates that the JMS session in which this message was received was just successfully committed.
The data Map returned by getData() will be null.

See Also:
Constant Field Values

EVENT_MAPPED

public static final java.lang.String EVENT_MAPPED
This event type indicates that the message was succesfully translated to an attribute map.
The data Map returned by getData() will be populated as follows:
KeyValue TypeDescription
"rhsMap"java.util.MapThe populated right-hand attribute side

See Also:
Constant Field Values

EVENT_AWAITING_CLIENT_ACK

public static final java.lang.String EVENT_AWAITING_CLIENT_ACK
This event type indicates that the message shoud be acknowledged at this point. You will only receive this event of the JMS Listener adapter is configured to use CLIENT_ACK acknowledgment.
The data Map returned by getData() will be null.

See Also:
Constant Field Values

EVENT_SUCCEEDED

public static final java.lang.String EVENT_SUCCEEDED
This event type indicates that IdM processing of the message was successful.
The data Map returned by getData() will be null.

See Also:
Constant Field Values

EVENT_FAILED

public static final java.lang.String EVENT_FAILED
This event type indicates that IdM processing of the message failed.
The data Map returned by getData() will be populated as follows:
KeyValue TypeDescription
"throwable"java.lang.ThrowableThe failure

See Also:
Constant Field Values
Constructor Detail

JmsMessageLifeCycleEvent

public JmsMessageLifeCycleEvent(javax.jms.Message message,
                                java.lang.String type,
                                java.util.Map data)
Method Detail

getData

public java.util.Map getData()
Returns:
Returns the optional data associated with the event.

getMessage

public javax.jms.Message getMessage()
Returns:
Returns the message.

getType

public java.lang.String getType()
Returns:
Returns the type.

toString

public java.lang.String toString()