|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jms.tx.ResourceManager
The ResourceManager manages work done in both local and global (XA) transactions. This is one instance of ResourceManager per JMS server. The ResourceManager instances are managed by ResourceManagerFactory.
Method Summary | |
void |
addAck(java.lang.Object xid,
int sessionId,
DeliveryInfo ackInfo)
Add an acknowledgement to the transaction |
void |
addMessage(java.lang.Object xid,
int sessionId,
JBossMessage m)
Add a message to a transaction |
boolean |
checkForAcksInSession(int sessionId)
|
void |
commitLocal(LocalTx xid,
ConnectionDelegate connection)
|
LocalTx |
createLocalTx()
Create a local tx. |
java.util.List |
getDeliveriesForSession(int sessionID)
|
ClientTransaction |
getTx(java.lang.Object xid)
|
void |
handleFailover(int newServerID,
int oldSessionID,
int newSessionID)
|
void |
merge(ResourceManager other)
|
ClientTransaction |
removeTx(java.lang.Object xid)
Remove a tx |
void |
rollbackLocal(java.lang.Object xid)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void merge(ResourceManager other)
public ClientTransaction removeTx(java.lang.Object xid)
public LocalTx createLocalTx()
public void addMessage(java.lang.Object xid, int sessionId, JBossMessage m)
xid
- - The id of the transaction to add the message tom
- The messagepublic void handleFailover(int newServerID, int oldSessionID, int newSessionID)
public java.util.List getDeliveriesForSession(int sessionID)
public void addAck(java.lang.Object xid, int sessionId, DeliveryInfo ackInfo) throws JMSException
xid
- - The id of the transaction to add the message toackInfo
- Information describing the acknowledgement
JMSException
public void commitLocal(LocalTx xid, ConnectionDelegate connection) throws JMSException
JMSException
public void rollbackLocal(java.lang.Object xid) throws JMSException
JMSException
public ClientTransaction getTx(java.lang.Object xid)
public int size()
public boolean checkForAcksInSession(int sessionId)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |