![]() |
|
Table 1: Validating session beans
| Validation Condition | Error Messages |
|---|---|
| Implements Session Bean Interface | BeanName: Does not implement javax.ejb.SessionBean interface |
| Create Method | BeanName: No create method defined on the home interface |
| ejbCreate Method: Return type. | BeanName: Return type should be void |
| Bean Class: No params Constructor | Bean Name: Bean class does not define a no-params public constructor |
| Bean Class: Not abstract | Bean Name: Bean class cannot be abstract |
| SLBean Create Method | BeanName: More than one create method cannot be declared on home |
| SLBean Create Method Parameters | BeanName: SL create method cannot take parameters |
| ejbCreate Public | BeanName: ejbCreate should be declared public |
| ejbCreate: Not Final | BeanName: ejbCreate should not be declared final |
| ejbCreate: Not Static | BeanName: ejbCreate should not be declared static |
| ejbCreate: Return type | BeanName: ejbCreate should return void |
| StatelessBean: SessionSync Interface | BeanName: SL Session beans cannot implement SessionSync interface |
| StatefulBean: Session Bean Interface - Should have CMT | BeanName: SF Beans with BMTs should not implement SessionSync interface |
| Stateful Bean: SessionSync Interface - Transaction Attribute | BeanName: SF Bean implemented SessionSync interface can have required, RequiresNew, or mandatory transaction attribute |
| *transaction attributes for all methods on the remote interface ++ | BeanName: transaction attributes should be set for all methods on the remote interface except for the EJBObject methods |
| *transaction attributes for all methods on the home interface ++ | BeanName: transaction attributes should be set for all methods on the home interface |
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |