|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jms.tx.ResourceManager
public class 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,
java.lang.String sessionId,
DeliveryInfo ackInfo)
Add an acknowledgement to the transaction |
void |
addMessage(java.lang.Object xid,
java.lang.String sessionId,
JBossMessage m)
Add a message to a transaction |
boolean |
checkForAcksInSession(java.lang.String sessionId)
|
void |
commitLocal(LocalTx xid,
ConnectionDelegate connection)
|
LocalTx |
createLocalTx()
Create a local tx. |
java.util.List |
getDeliveriesForSession(java.lang.String sessionID)
|
int |
getServerID()
|
ClientTransaction |
getTx(java.lang.Object xid)
|
void |
handleFailover(int newServerID,
java.lang.String oldSessionID,
java.lang.String 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 int getServerID()
public void merge(ResourceManager other)
public ClientTransaction removeTx(java.lang.Object xid)
public LocalTx createLocalTx()
public void addMessage(java.lang.Object xid, java.lang.String sessionId, JBossMessage m)
xid
- - The id of the transaction to add the message tom
- The messagepublic void handleFailover(int newServerID, java.lang.String oldSessionID, java.lang.String newSessionID)
public java.util.List getDeliveriesForSession(java.lang.String sessionID)
public void addAck(java.lang.Object xid, java.lang.String 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(java.lang.String sessionId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |