Java Doc for TransactionServiceImpl.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » jtm » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.jtm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.service.AbsServiceImpl
   org.objectweb.jonas.jtm.TransactionServiceImpl

TransactionServiceImpl
public class TransactionServiceImpl extends AbsServiceImpl implements TransactionService,TransactionServiceImplMBean(Code)
Transaction Service implementation. This singleton class must exist in each jonas server. This class manages a unique Current object that implements both TransactionManager and UserTransaction interfaces.
author:
   Philippe Durieux
author:
   Contributor(s): Adriana Danes


Field Summary
final static  StringCLASS
    
final static  StringREMOTE
    
final public static  StringSERVICE_NAME
    
final static  StringTIMEOUT
    


Method Summary
protected  intcommitXAResource(String xatx)
    
public  voiddoInit(Context ctx)
     Init the Service.
public  voiddoStart()
     Start the Service Initialization of the service is already done.
public  voiddoStop()
    
protected  intforgetXAResource(String xatx)
    
protected  String[]getAllActiveTx()
    
protected  Xid[]getAllActiveXids()
    
protected  String[]getAllRecoveryTx()
    
protected  String[]getAllXAResource(String xtx)
    
public  CurrentgetCurrent()
    
public  intgetTimeout()
    
protected  intgetTotalBegunTransactions()
    
protected  intgetTotalCommittedTransactions()
    
protected  intgetTotalCurrentTransactions()
    
protected  intgetTotalExpiredTransactions()
    
protected  intgetTotalRolledbackTransactions()
    
public  TransactionFactorygetTransactionFactory()
    
public  TransactionManagergetTransactionManager()
    
public  UserTransactiongetUserTransaction()
    
protected  voidresetAllTxTotalCounters()
    
protected  introllbackXAResource(String xatx)
    
public  voidsetTimeout(int t)
    

Field Detail
CLASS
final static String CLASS(Code)
name of the 'class' configuration parameter



REMOTE
final static String REMOTE(Code)
name of the 'remote' configuration parameter



SERVICE_NAME
final public static String SERVICE_NAME(Code)
Service name as used to label configuration properties



TIMEOUT
final static String TIMEOUT(Code)
name of the 'timeout' configuration parameter





Method Detail
commitXAResource
protected int commitXAResource(String xatx)(Code)
Returns all XAResources that require administrator recovery action.



doInit
public void doInit(Context ctx) throws ServiceException(Code)
Init the Service. Configuration information is passed thru a Context object.
Parameters:
  ctx - naming context containing configuration parameters
throws:
  ServiceException - if service initialization failes



doStart
public void doStart() throws ServiceException(Code)
Start the Service Initialization of the service is already done.
throws:
  ServiceException - if service start fails



doStop
public void doStop() throws ServiceException(Code)
Stop the transaction service Not already implementated
throws:
  ServiceException - if the service stop fails



forgetXAResource
protected int forgetXAResource(String xatx)(Code)
Returns all XAResources that require administrator recovery action.



getAllActiveTx
protected String[] getAllActiveTx()(Code)
Get all currently executing transactions total number of executing transaction



getAllActiveXids
protected Xid[] getAllActiveXids()(Code)
Get all currently executing Xids total number of executing Xids



getAllRecoveryTx
protected String[] getAllRecoveryTx()(Code)
Get all transactions that require administrator recovery action Transactions that require administrator recovery action



getAllXAResource
protected String[] getAllXAResource(String xtx)(Code)
Get all XAResoures of a transaction that require administrator recovery action XAResources that require administrator recovery action



getCurrent
public Current getCurrent()(Code)
Gets the Current object instance the current object



getTimeout
public int getTimeout()(Code)



getTotalBegunTransactions
protected int getTotalBegunTransactions()(Code)
Get begun transactions number total number of begun transactions



getTotalCommittedTransactions
protected int getTotalCommittedTransactions()(Code)
Get committed transactions number total number of committed transactions



getTotalCurrentTransactions
protected int getTotalCurrentTransactions()(Code)
Get current transactions number total number of current transactions



getTotalExpiredTransactions
protected int getTotalExpiredTransactions()(Code)
Get expired transactions number total number of expired transactions



getTotalRolledbackTransactions
protected int getTotalRolledbackTransactions()(Code)
Get rollebacked transactions number total number of rollbacked transactions



getTransactionFactory
public TransactionFactory getTransactionFactory()(Code)
Gets the TransactionFactory object (JTM factory) the transaction factory (JTM object)



getTransactionManager
public TransactionManager getTransactionManager()(Code)
Gets the TransactionManager object instance the transaction manager



getUserTransaction
public UserTransaction getUserTransaction()(Code)
Gets the UserTransaction object instance the user transaction object



resetAllTxTotalCounters
protected void resetAllTxTotalCounters()(Code)
Reset all transaction counters



rollbackXAResource
protected int rollbackXAResource(String xatx)(Code)
Returns all XAResources that require administrator recovery action.



setTimeout
public void setTimeout(int t)(Code)
Sets the default transaction timeout and register Current in JNDI
Parameters:
  t - new value for time-out



Methods inherited from org.objectweb.jonas.service.AbsServiceImpl
abstract protected void doInit(Context ctx) throws ServiceException(Code)(Java Doc)
abstract protected void doStart() throws ServiceException(Code)(Java Doc)
abstract protected void doStop() throws ServiceException(Code)(Java Doc)
public String getDomainName()(Code)(Java Doc)
public String getJonasServerName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void init(Context ctx) throws ServiceException(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void start() throws ServiceException(Code)(Java Doc)
public void stop() throws ServiceException(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.