IBM WebSphere Application ServerTM
Release 8

com.ibm.wbiserver.manualrecovery
Interface JMSEvent

All Superinterfaces:
FailedEvent

public interface JMSEvent
extends FailedEvent

The JMSEvent is an interface to obtain detailed information of a failed event, and set new information for failed event resubmission. The detailed information includes


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from interface com.ibm.wbiserver.manualrecovery.FailedEvent
STATUS_FAILED, STATUS_STOPPED, STATUS_TERMINATED, TYPE_BFMHOLD, TYPE_BPC, TYPE_JMS, TYPE_MQ, TYPE_SCA
 
Method Summary
 java.lang.String getJMSCorrelationID()
           
 java.lang.String getJMSDeliveryMode()
           
 java.lang.String getJMSDestination()
           
 java.util.Date getJMSExpiration()
           
 int getJMSPriority()
           
 boolean getJMSRedelivered()
           
 java.lang.String getJMSReplyTo()
           
 java.lang.String getJMSType()
           
 int getJMSXDeliveryCount()
           
 java.util.List<FailedEventParameter> getPayload()
          Return parameters of the failed event.
 java.util.List<FailedEventParameter> getPayload(java.util.Properties adminClientProperties)
          Return parameters of the failed event with admin client connection properties.
 void setJMSExpiration(java.util.Date expiration)
           
 void setPayload(java.util.List payload)
           
 
Methods inherited from interface com.ibm.wbiserver.manualrecovery.FailedEvent
didInitiateStore, getCorrelationId, getDeploymentTarget, getDestinationComponentName, getDestinationMethodName, getDestinationModuleName, getFailureDateTime, getFailureMessage, getInteractionType, getMsgId, getOwner, getResubmitDestination, getSessionId, getSourceComponentName, getSourceModuleName, getStatus, getType, isESQualified, isProcessResponse
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

getPayload

java.util.List<FailedEventParameter> getPayload()
Return parameters of the failed event. This API is used in the following two scenarios.

1. The client is in the same cell as WPS runtime.

2. The client is in a different cell as WPS runtime, and the admin client properties have been put into Java system environment.

This API does not explicitly throw exception. However, if exception happens such as failed to load BO schema and BO deserialization fails, FailedEventRuntimeException will be throw as runtime exception.

Returns:
Parameter list of the failed event

getPayload

java.util.List<FailedEventParameter> getPayload(java.util.Properties adminClientProperties)
Return parameters of the failed event with admin client connection properties. This API is used when the client is in a different cell as WPS runtime, and the admin client properties are not in Java system environment.

The admin client properties should included the following information.

When security is enabled, additional information are required.

For SOAP based connection, some other properties may also be required in order to make a SSL connection.

An easy way to use this API is to obtain the properties from the existing admin client.
For example,

 List parameters = getFailedEventParameters(adminClient.getConnectorProperties());
 

This API does not explicitly throw exception. However, if exception happens such as failed to load BO schema and BO deserialization fails, FailedEventDataException will be throw as runtime exception.

Parameters:
adminClientProperties - the admin client properties
Returns:
parameter list of the failed event

getJMSCorrelationID

java.lang.String getJMSCorrelationID()
Returns:
JMS correlation ID

getJMSDeliveryMode

java.lang.String getJMSDeliveryMode()
Returns:
JMS delivery mode

getJMSDestination

java.lang.String getJMSDestination()
Returns:
JMS destination

getJMSExpiration

java.util.Date getJMSExpiration()
Returns:
JMS expiration

getJMSPriority

int getJMSPriority()
Returns:
JMS priority

getJMSRedelivered

boolean getJMSRedelivered()
Returns:
ture JMS message is redelivered false JMS message is delivered for the first time

getJMSReplyTo

java.lang.String getJMSReplyTo()
Returns:
JMS reply to destination

getJMSType

java.lang.String getJMSType()
Returns:
JMS type

getJMSXDeliveryCount

int getJMSXDeliveryCount()
Returns:
JMS delivery count

setPayload

void setPayload(java.util.List payload)
Parameters:
payload -

setJMSExpiration

void setJMSExpiration(java.util.Date expiration)
Parameters:
expiration -

IBM WebSphere Application ServerTM
Release 8