Java Doc for EjbTransactionManager.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » ejb » xa » 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 resin 3.1.5 » resin » com.caucho.ejb.xa 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.ejb.xa.EjbTransactionManager

EjbTransactionManager
public class EjbTransactionManager implements java.io.Serializable(Code)
Server containing all the EJBs for a given configuration.

Each protocol will extend the container to override Handle creation.



Field Summary
final public static  intRESIN_DATABASE
    
final public static  intRESIN_READ_ONLY
    
final public static  intRESIN_ROW_LOCKING
    
final protected static  ThreadLocal<TransactionContext>_threadTransaction
    
final protected  TransactionManager_transactionManager
    
protected  UserTransaction_userTransaction
    

Constructor Summary
public  EjbTransactionManager(EjbContainer ejbContainer)
     Create a server with the given prefix name.

Method Summary
public  TransactionContextbeginMandatory()
     Begins a new transaction, the old one must exist.
public  TransactionContextbeginNever()
     Starts a Never transaction, i.e.
public  TransactionContextbeginRequired()
     Returns a transaction context for the "required" transaction.
public  TransactionContextbeginRequiresNew()
     Begins a new transaction, suspending the old one if necessary.
public  TransactionContextbeginSingleRead()
     Returns a transaction context for a single read call.
public  TransactionContextbeginSupports()
     Begins a new transaction, suspending the old one if necessary.
public  voidcommitTransaction()
    
public  voidcommitTransaction(String xid)
     Commits a transaction from an external xid.
 TransactionContextcreateTransaction()
     Create a transaction context.
 TransactionContextcreateTransactionNoDepth()
     Create a transaction context.
public  voiddestroy()
     Closes the container.
public  voidfinishTransaction(String xid)
     Creates a transaction from an external xid.
 voidfreeTransaction(TransactionContext trans)
     Free a transaction context.
public  AmberConnectiongetAmberConnection()
     Returns a new AmberConnection.
public  EjbContainergetEjbContainer()
     Returns the manager.
public  intgetJDBCIsolation()
     Gets the JDBC isolation level.
public  intgetResinIsolation()
     Sets the Resin isolation for the container.
public  TransactiongetTransaction()
    
public  TransactionContextgetTransactionContext()
    
 TransactionManagergetTransactionManager()
    
public  longgetTransactionTimeout()
    
public  UserTransactiongetUserTransaction()
    
public  booleanisEJB3()
    
public  voidresume(TransactionContext oldCxt, Transaction oldTrans, Transaction completedTransaction)
     Resumes a suspended transaction.
public  voidrollbackTransaction()
    
public  voidrollbackTransaction(String xid)
     Rolls-back a transaction from an external xid.
public  voidsetEJB3(boolean isEJB3)
     Sets EJB 3.0 for throwing expected exceptions.
public  voidsetJDBCIsolation(int jdbcIsolation)
     Sets the JDBC isolation.
public  voidsetResinIsolation(int resinIsolation)
     Sets the Resin isolation.
public  voidsetTransactionTimeout(long transactionTimeout)
     Sets the transaction timout.
 voidsetUserTransaction(UserTransaction userTransaction)
    
public  TransactionContextstartTransaction(String xid)
     Creates a transaction from an external xid.
public  TransactionContextsuspend()
    

Field Detail
RESIN_DATABASE
final public static int RESIN_DATABASE(Code)



RESIN_READ_ONLY
final public static int RESIN_READ_ONLY(Code)



RESIN_ROW_LOCKING
final public static int RESIN_ROW_LOCKING(Code)



_threadTransaction
final protected static ThreadLocal<TransactionContext> _threadTransaction(Code)



_transactionManager
final protected TransactionManager _transactionManager(Code)



_userTransaction
protected UserTransaction _userTransaction(Code)




Constructor Detail
EjbTransactionManager
public EjbTransactionManager(EjbContainer ejbContainer) throws ConfigException(Code)
Create a server with the given prefix name.




Method Detail
beginMandatory
public TransactionContext beginMandatory() throws EJBException(Code)
Begins a new transaction, the old one must exist. the old transaction context



beginNever
public TransactionContext beginNever() throws EJBException(Code)
Starts a Never transaction, i.e. there is no transaction. the old transaction context



beginRequired
public TransactionContext beginRequired() throws EJBException(Code)
Returns a transaction context for the "required" transaction. If there's already an active transaction, use it. Otherwise create a new transaction. the transaction context for the request



beginRequiresNew
public TransactionContext beginRequiresNew() throws EJBException(Code)
Begins a new transaction, suspending the old one if necessary. the old transaction context



beginSingleRead
public TransactionContext beginSingleRead() throws EJBException(Code)
Returns a transaction context for a single read call. The single read is like supports, but returns a null transaction context if there's no transaction. the transaction context for the request



beginSupports
public TransactionContext beginSupports() throws EJBException(Code)
Begins a new transaction, suspending the old one if necessary. the old transaction context



commitTransaction
public void commitTransaction() throws EJBException(Code)



commitTransaction
public void commitTransaction(String xid)(Code)
Commits a transaction from an external xid.



createTransaction
TransactionContext createTransaction()(Code)
Create a transaction context.



createTransactionNoDepth
TransactionContext createTransactionNoDepth()(Code)
Create a transaction context.



destroy
public void destroy()(Code)
Closes the container.



finishTransaction
public void finishTransaction(String xid)(Code)
Creates a transaction from an external xid.



freeTransaction
void freeTransaction(TransactionContext trans)(Code)
Free a transaction context.



getAmberConnection
public AmberConnection getAmberConnection()(Code)
Returns a new AmberConnection.



getEjbContainer
public EjbContainer getEjbContainer()(Code)
Returns the manager.



getJDBCIsolation
public int getJDBCIsolation()(Code)
Gets the JDBC isolation level.



getResinIsolation
public int getResinIsolation()(Code)
Sets the Resin isolation for the container.



getTransaction
public Transaction getTransaction() throws EJBException(Code)



getTransactionContext
public TransactionContext getTransactionContext()(Code)



getTransactionManager
TransactionManager getTransactionManager() throws EJBException(Code)



getTransactionTimeout
public long getTransactionTimeout()(Code)
Gets the transaction timeout



getUserTransaction
public UserTransaction getUserTransaction()(Code)



isEJB3
public boolean isEJB3()(Code)
Returns true if it is EJB 3.0



resume
public void resume(TransactionContext oldCxt, Transaction oldTrans, Transaction completedTransaction) throws EJBException(Code)
Resumes a suspended transaction. the old transaction context



rollbackTransaction
public void rollbackTransaction() throws EJBException(Code)



rollbackTransaction
public void rollbackTransaction(String xid)(Code)
Rolls-back a transaction from an external xid.



setEJB3
public void setEJB3(boolean isEJB3)(Code)
Sets EJB 3.0 for throwing expected exceptions.



setJDBCIsolation
public void setJDBCIsolation(int jdbcIsolation)(Code)
Sets the JDBC isolation.



setResinIsolation
public void setResinIsolation(int resinIsolation)(Code)
Sets the Resin isolation.



setTransactionTimeout
public void setTransactionTimeout(long transactionTimeout)(Code)
Sets the transaction timout.



setUserTransaction
void setUserTransaction(UserTransaction userTransaction)(Code)



startTransaction
public TransactionContext startTransaction(String xid)(Code)
Creates a transaction from an external xid.



suspend
public TransactionContext suspend() throws EJBException(Code)
Suspends the current transaction the old transaction context



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.