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


org.objectweb.jonas.jtests.clients.exception.A_Catcher
   org.objectweb.jonas.jtests.clients.exception.A_CatcherEntity

All known Subclasses:   org.objectweb.jonas.jtests.clients.exception.F_CatcherEC2,  org.objectweb.jonas.jtests.clients.exception.F_CatcherEC,  org.objectweb.jonas.jtests.clients.exception.F_CatcherEB,
A_CatcherEntity
abstract public class A_CatcherEntity extends A_Catcher (Code)



Constructor Summary
public  A_CatcherEntity(String name)
    

Method Summary
public  AccountEgetAccount(int i)
    
public  AccountSgetAccountS(int i)
    
abstract public  AccountEHomegetHome()
     return AccontHome, that can be either BMP or CMP bean.
public  voidtestApplicationCallerTx2()
     Test business method throwing an Application exception.
public  voidtestApplicationContTx2()
     Test business method throwing an Application exception. It must be caught by the client. A transaction is started in the container.
public  voidtestApplicationContTxRb2()
     Test business method throwing an Application exception. It must be caught by the client. A transaction is started in the container.
public  voidtestApplicationHomeContTx()
     Test create method throwing an Application exception.
public  voidtestApplicationHomeNoTx()
     Test home method throwing an Application exception.
public  voidtestApplicationHomeUserTx()
     Test Create method throwing an Application exception.
public  voidtestApplicationRemovePkContTx()
     Test remove(pk) method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the container.
public  voidtestApplicationRemovePkUserTx()
     Test remove(pk) method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the client.
public  voidtestApplicationRemoveThisContTx()
     Test remove() method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the container.
public  voidtestApplicationRemoveThisUserTx()
     Test remove() method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the client.
public  voidtestDestroyedAfterEJBContTx()
     Test business method throwing an EJBException Called inside a containertransaction (Requires).
public  voidtestDestroyedAfterEJBNoTx()
     Test business method throwing an EJBException Called outside transaction.
public  voidtestDestroyedAfterEJBUserTx()
     Test business method throwing an EJBException Called inside a client transaction (Supports).
public  voidtestDiscardedInstances()
    
public  voidtestRuntimeCallerTx()
     Test RuntimeException in a container-invoked callback (ejbStore) Methods runs in the context of the caller's transaction -> RollbackException should be received by the client on commit.
public  voidtestRuntimeContTx()
     Test RuntimeException in a container-invoked callback (ejbStore) The bean has the TransationRequired attribute.
public  voidtestUncheckedHomeContTx()
     Test ejbCreate method throwing an unchecked exception.
public  voidtestUncheckedHomeUserTx()
     Test ejbCreate method throwing an unchecked exception.


Constructor Detail
A_CatcherEntity
public A_CatcherEntity(String name)(Code)




Method Detail
getAccount
public AccountE getAccount(int i)(Code)
return an Account



getAccountS
public AccountS getAccountS(int i)(Code)
return an AccountS must be defined for common tests (A_Catcher.java)



getHome
abstract public AccountEHome getHome()(Code)
return AccontHome, that can be either BMP or CMP bean.



testApplicationCallerTx2
public void testApplicationCallerTx2() throws Exception(Code)
Test business method throwing an Application exception. It must be caught by the client. Methods runs in the context of the caller's transaction The business method has Mandatory attribute. Test that the transaction has not been marked rollback. Spec 2.0 page 375 (table15)



testApplicationContTx2
public void testApplicationContTx2() throws Exception(Code)
Test business method throwing an Application exception. It must be caught by the client. A transaction is started in the container. (RequiresNew) Bean does NOT call setRollbackOnly Test that the transaction has not been marked rollback. Spec 2.0 page 376 (table15)



testApplicationContTxRb2
public void testApplicationContTxRb2() throws Exception(Code)
Test business method throwing an Application exception. It must be caught by the client. A transaction is started in the container. (RequiresNew) Bean calls setRollbackOnly Test that the transaction has been rolledback. Spec 2.0 page 376 (table15)



testApplicationHomeContTx
public void testApplicationHomeContTx() throws Exception(Code)
Test create method throwing an Application exception. It must be caught by the client. instance call setRollbackOnly The test verify the ac is not created equivalent to testApplicationContTxRb1 but for create method. Spec 2.0 page 376 (table15)



testApplicationHomeNoTx
public void testApplicationHomeNoTx() throws Exception(Code)
Test home method throwing an Application exception. It must be caught by the client. Spec 2.0 page 376 (table15)



testApplicationHomeUserTx
public void testApplicationHomeUserTx() throws Exception(Code)
Test Create method throwing an Application exception. It must be caught by the client. Test that the transaction has not been marked rollback. equivalent to testApplicationContTx but the businessmethod is a create method Spec 2.0 page 376 (table15)



testApplicationRemovePkContTx
public void testApplicationRemovePkContTx() throws Exception(Code)
Test remove(pk) method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the container. (Required) Spec 2.0 page 376 (table15)



testApplicationRemovePkUserTx
public void testApplicationRemovePkUserTx() throws Exception(Code)
Test remove(pk) method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the client. (Required) bug #100265 Spec 2.1 page 400 (table15)



testApplicationRemoveThisContTx
public void testApplicationRemoveThisContTx() throws Exception(Code)
Test remove() method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the container. (Required) equivalent to testApplicationRemoveHomeContTx but for obj.remove() method. Spec 2.0 page 376 (table15)



testApplicationRemoveThisUserTx
public void testApplicationRemoveThisUserTx() throws Exception(Code)
Test remove() method throwing an Application exception (RemoveException). It must be caught by the client. A transaction is started in the client. (Required) equivalent to testApplicationRemoveHomeUserTx but for obj.remove() method. BUG #100265 Spec 2.0 page 400 (table15)



testDestroyedAfterEJBContTx
public void testDestroyedAfterEJBContTx() throws Exception(Code)
Test business method throwing an EJBException Called inside a containertransaction (Requires). The client must receive RemoteException See EJB 2.1 specs page 400 (table 15). Test also if the instance has been discarded, ie means that the container must not invoke any bussiness methods or container callbacks on this instance. To reproduce the bug #300421.



testDestroyedAfterEJBNoTx
public void testDestroyedAfterEJBNoTx() throws Exception(Code)
Test business method throwing an EJBException Called outside transaction. The client must receive RemoteException See EJB 2.1 specs page 401 (table 15). Test also if the instance has been discarded, ie means that the container must not invoke any bussiness methods or container callbacks on this instance. To reproduce the bug #300421.



testDestroyedAfterEJBUserTx
public void testDestroyedAfterEJBUserTx() throws Exception(Code)
Test business method throwing an EJBException Called inside a client transaction (Supports). The client must receive RemoteException See EJB 2.1 specs page 400 (table 15). Test also if the instance has been discarded, ie means that the container must not invoke any bussiness methods or container callbacks on this instance. To reproduce the bug #300421.



testDiscardedInstances
public void testDiscardedInstances() throws Exception(Code)



testRuntimeCallerTx
public void testRuntimeCallerTx() throws Exception(Code)
Test RuntimeException in a container-invoked callback (ejbStore) Methods runs in the context of the caller's transaction -> RollbackException should be received by the client on commit. See EJB2.0 specs 8.3.3 page 379



testRuntimeContTx
public void testRuntimeContTx() throws Exception(Code)
Test RuntimeException in a container-invoked callback (ejbStore) The bean has the TransationRequired attribute. -> Exception must be logged, instance discarded, and the client should receive a RemoteException. See EJB2.0 specs 8.3.3 page 379



testUncheckedHomeContTx
public void testUncheckedHomeContTx() throws Exception(Code)
Test ejbCreate method throwing an unchecked exception. Called inside a containertransaction. The client must receive RemoteException See EJB2.0 specs page 376 (table 15)



testUncheckedHomeUserTx
public void testUncheckedHomeUserTx() throws Exception(Code)
Test ejbCreate method throwing an unchecked exception. Methods runs in the context of the caller's transaction A transaction has been started by the client. Called inside a client transaction. TransactionRolledbackException must be caught by the client. The business method has Mandatory attribute. See EJB2.0 specs page 375 (table 15)



Methods inherited from org.objectweb.jonas.jtests.clients.exception.A_Catcher
abstract public AccountS getAccountS(int i)(Code)(Java Doc)
protected void setUp()(Code)(Java Doc)
public void testApplicationCallerTx1() throws Exception(Code)(Java Doc)
public void testApplicationContTx1() throws Exception(Code)(Java Doc)
public void testApplicationContTxRb1() throws Exception(Code)(Java Doc)
public void testApplicationNoTx() throws Exception(Code)(Java Doc)
public void testApplicationNotTx() throws Exception(Code)(Java Doc)
public void testEJBContTx() throws Exception(Code)(Java Doc)
public void testRemoteCallerTx() throws Exception(Code)(Java Doc)
public void testUncheckedCallerTx() throws Exception(Code)(Java Doc)
public void testUncheckedContTx() throws Exception(Code)(Java Doc)
public void testUncheckedNoTx() throws Exception(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.