|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ResourceManagerEventListener
allows late enrolment of
connections that are opened in the thread before the transaction starts.
Resource Managers that support registration of
ResourceManagerEventListener
will be able to notify the
transaction manager of connections opened without transaction context and get
a callback from the transaction manager when the transaction begins.
In
a typical Resource Manager, the registration of the listener is made by the
application server via mutator method such as ResourceManager.
setResourceManagerEventListener(listener)
.
Method Summary | |
void |
connectionClosed(ResourceManagerEvent event)
This method is called by the resource manager when a logical connection that was opened without transaction context is closed. |
void |
connectionErrorOccured(ResourceManagerEvent event)
This method is called by the resource manager when a logical connection that was opened without transaction context is about to throw an exception. |
void |
connectionOpened(ResourceManagerEvent event)
This method is called by the resource manager when a getConnection call is made without a transaction
context. |
Method Detail |
public void connectionOpened(ResourceManagerEvent event)
getConnection
call is made without a transaction
context. The ResourceManagerEvent
is to be used
by the listener to keep track of those events and perform a late
enrolment of those logical connection when the transaction begins.
event
- event sent to the listenerpublic void connectionClosed(ResourceManagerEvent event)
event
- event sent to the listenerpublic void connectionErrorOccured(ResourceManagerEvent event)
event
- event sent to the listener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |