Method | Description | |
---|---|---|
ExecuteListener ( ISession session, IMessage message ) : void |
Executes the specified listener, committing or rolling back the transaction afterwards (if necessary).
|
Method | Description | |
---|---|---|
CheckMessageListener ( object messageListener ) : void |
Checks the message listener, throwing an exception if it does not correspond to a supported listener type. By default, only a standard JMS MessageListener object or a Spring ISessionAwareMessageListener object will be accepted.
|
|
CommitIfNecessary ( ISession session, IMessage message ) : void |
Perform a commit or message acknowledgement, as appropriate
|
|
DoExecuteListener ( ISession session, IMessage message ) : void |
Executes the specified listener, committing or rolling back the transaction afterwards (if necessary).
|
|
DoInvokeListener ( IMessageListener listener, IMessage message ) : void |
Invoke the specified listener as standard JMS MessageListener. Default implementation performs a plain invocation of the |
|
DoInvokeListener ( ISessionAwareMessageListener listener, ISession session, IMessage message ) : void |
Invoke the specified listener as Spring SessionAwareMessageListener, exposing a new NMS Session (potentially with its own transaction) to the listener if demanded.
|
|
HandleListenerException ( |
Handle the given exception that arose during listener execution. The default implementation logs the exception at error level, not propagating it to the JMS provider - assuming that all handling of acknowledgement and/or transactions is done by this listener container. This can be overridden in subclasses. |
|
InvokeErrorHandler ( |
Invokes the error handler.
|
|
InvokeExceptionListener ( |
Invokes the registered exception listener, if any.
|
|
InvokeListener ( ISession session, IMessage message ) : void |
Invokes the specified listener: either as standard NMS MessageListener or (preferably) as Spring SessionAwareMessageListener.
|
|
IsSessionLocallyTransacted ( ISession session ) : bool |
Determines whether the given Session is locally transacted, that is, whether its transaction is managed by this listener container's Session handling and not by an external transaction coordinator. The Session's own transacted flag will already have been checked before. This method is about finding out whether the Session's transaction is local or externally coordinated. |
|
RollbackIfNecessary ( ISession session ) : void |
Perform a rollback, if appropriate.
|
|
RollbackOnExceptionIfNecessary ( ISession session, |
Perform a rollback, handling rollback excepitons properly.
|
|
ValidateConfiguration ( ) : void |
Validate that the destination is not null and that if the subscription is durable, then we are not using the Pub/Sub domain.
|
protected CheckMessageListener ( object messageListener ) : void | ||
messageListener | object | The message listener. |
return | void |
protected CommitIfNecessary ( ISession session, IMessage message ) : void | ||
session | ISession | The session to commit. |
message | IMessage | The message to acknowledge. |
return | void |
protected DoExecuteListener ( ISession session, IMessage message ) : void | ||
session | ISession | The session to operate on. |
message | IMessage | The received message. |
return | void |
protected DoInvokeListener ( IMessageListener listener, IMessage message ) : void | ||
listener | IMessageListener | The listener to invoke. |
message | IMessage | The received message. |
return | void |
protected DoInvokeListener ( ISessionAwareMessageListener listener, ISession session, IMessage message ) : void | ||
listener | ISessionAwareMessageListener | The Spring ISessionAwareMessageListener to invoke. |
session | ISession | The session to operate on. |
message | IMessage | The received message. |
return | void |
public ExecuteListener ( ISession session, IMessage message ) : void | ||
session | ISession | The session to operate on. |
message | IMessage | The received message. |
return | void |
protected HandleListenerException ( |
||
ex | The exceptin to handle | |
return | void |
protected InvokeErrorHandler ( |
||
exception | The exception. | |
return | void |
protected InvokeExceptionListener ( |
||
ex | The exception that arose during NMS processing. | |
return | void |
protected InvokeListener ( ISession session, IMessage message ) : void | ||
session | ISession | The session to operate on. |
message | IMessage | The received message. |
return | void |
protected IsSessionLocallyTransacted ( ISession session ) : bool | ||
session | ISession | The session to check. |
return | bool |
protected RollbackIfNecessary ( ISession session ) : void | ||
session | ISession | The session to rollback. |
return | void |
protected RollbackOnExceptionIfNecessary ( ISession session, |
||
session | ISession | The session to rollback. |
ex | The thrown application exception. | |
return | void |