Java Doc for TxManager.java in  » EJB-Server-JBoss-4.2.1 » messaging » org » jboss » mq » pm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » messaging » org.jboss.mq.pm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mq.pm.TxManager

TxManager
public class TxManager implements Recoverable(Code)
This class allows provides the base for user supplied persistence packages.
author:
   Hiram Chirino (Cojonudo14@hotmail.com)
author:
   Paul Kendall (paul.kendall@orion.co.nz)
author:
   Adrian Brock
version:
   $Revision: 57198 $

Inner Class :class GlobalXID implements Runnable
Inner Class :public static class PreparedInfo

Field Summary
 ConcurrentHashMapglobalToLocal
    
 PersistenceManagerpersistenceManager
    
 ConcurrentHashMapprepared
    

Constructor Summary
public  TxManager(PersistenceManager pm)
    

Method Summary
public  voidaddPostCommitTask(Tx txId, Runnable task)
    
public  voidaddPostRollbackTask(Tx txId, Runnable task)
    
 voidaddPreparedTx(Tx txId, Xid xid, boolean inDoubt)
    
final public  voidcommitTx(Tx txId)
     Commit the transaction to the persistent store.
final public  voidcommitTx(ConnectionToken dc, Object xid)
     Commit the transaction to the persistent store.
final public  TxcreateTx()
     Create and return a unique transaction id.
public  TxcreateTx(ConnectionToken dc, Object xid)
     Create and return a unique transaction id.
final public  TxgetPrepared(ConnectionToken dc, Object xid)
     Return the local transaction id for a distributed transaction id.
public  MapgetPreparedTransactions()
    
public  voidmarkPrepared(ConnectionToken dc, Object xid, Tx txId)
    
public  Xid[]recover(ConnectionToken dc, int flags)
    
public  voidrestoreTx(Tx txId)
    
public  voidrollbackTx(Tx txId)
     Rollback the transaction.
final public  voidrollbackTx(ConnectionToken dc, Object xid)
    

Field Detail
globalToLocal
ConcurrentHashMap globalToLocal(Code)
Maps Global transactions to local transactions



persistenceManager
PersistenceManager persistenceManager(Code)
The persistence manager



prepared
ConcurrentHashMap prepared(Code)
Prepared Transactions Map>




Constructor Detail
TxManager
public TxManager(PersistenceManager pm)(Code)
Create a new TxManager
Parameters:
  pm - the persistence manager




Method Detail
addPostCommitTask
public void addPostCommitTask(Tx txId, Runnable task) throws JMSException(Code)
Add an operation for after a commit
Parameters:
  txId - the transaction
Parameters:
  task - the task
throws:
  JMSException - for any error



addPostRollbackTask
public void addPostRollbackTask(Tx txId, Runnable task) throws JMSException(Code)
Add an operation for after a rollback
Parameters:
  txId - the transaction
Parameters:
  task - the task
throws:
  JMSException - for any error



addPreparedTx
void addPreparedTx(Tx txId, Xid xid, boolean inDoubt) throws JMSException(Code)
Add a prepared transactions
Parameters:
  txId - the transaction id
Parameters:
  xid - the xid
Parameters:
  inDoubt - whether it is in doubt
throws:
  JMSException - for any error



commitTx
final public void commitTx(Tx txId) throws JMSException(Code)
Commit the transaction to the persistent store.
Parameters:
  txId - the transaction
exception:
  JMSException - for any error



commitTx
final public void commitTx(ConnectionToken dc, Object xid) throws JMSException(Code)
Commit the transaction to the persistent store.
Parameters:
  dc - the connection token
Parameters:
  xid - the transaction
exception:
  JMSException - for any error



createTx
final public Tx createTx() throws JMSException(Code)
Create and return a unique transaction id. the transaction id
exception:
  JMSException - for any error



createTx
public Tx createTx(ConnectionToken dc, Object xid) throws JMSException(Code)
Create and return a unique transaction id. Given a distributed connection and a transaction id object, allocate a unique local transaction id if the remote id is not already known.
Parameters:
  dc - the connection token
Parameters:
  xid - the xid the transaction
exception:
  JMSException - for any error



getPrepared
final public Tx getPrepared(ConnectionToken dc, Object xid) throws JMSException(Code)
Return the local transaction id for a distributed transaction id.
Parameters:
  dc - the connection
Parameters:
  xid - the transaction id The Prepared transaction
exception:
  javax.jms.JMSException - Description of Exception



getPreparedTransactions
public Map getPreparedTransactions()(Code)
Get the prepared transactions



markPrepared
public void markPrepared(ConnectionToken dc, Object xid, Tx txId) throws JMSException(Code)
Mark the transaction branch as prepared
Parameters:
  dc - the connection token
Parameters:
  xid - the xid
Parameters:
  txId - the transaction
throws:
  JMSException - for any error



recover
public Xid[] recover(ConnectionToken dc, int flags) throws Exception(Code)



restoreTx
public void restoreTx(Tx txId) throws JMSException(Code)
Restore a prepared transaction
Parameters:
  txId - the transaction id
throws:
  JMSException - for any error



rollbackTx
public void rollbackTx(Tx txId) throws JMSException(Code)
Rollback the transaction.
Parameters:
  txId - the transaction
exception:
  JMSException - for any error



rollbackTx
final public void rollbackTx(ConnectionToken dc, Object xid) throws JMSException(Code)
Rollback the transaction
Parameters:
  dc - the connection token
Parameters:
  xid - the transaction
exception:
  JMSException - for any error



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.