![]() |
|
Table 1: Validating EJB 2.0
| Validation Condition | Error Messages |
|---|---|
| Local Home i/f | BeanName: Local Home class could not be loaded |
| LocalHome: Interface ExtendsEJBLocalHome | BeanName: LocalHome does not extend EJBLocalHome |
| LocalHome: InterfacePublic | BeanName: LocalHomeInterface should be declared public |
| LocalHomeMethodModifiers | Bean Name: Local Home methods should be public and not static |
| LocalHome: MethodNameMatch | Bean Name: Local Home methods do not match with the Bean class |
| Local I/f: Public | BeanName: Local Component Interface not declared public |
| Local I/f: Extends EJBLocalObject | BeanName: Local Component i/f does not extend EJBLocalObject |
| Local I/f: Corresponding methods on the bean class | BeanName: Local i/f methods do not corresponding to the bean class |
| CMP 2.0: Cascade Delete not supported for Many - Many relation | BeanName: Many - Many relation cannot specify cascade - delete |
| CMP 2.0: CMF field declaration: Accessor methods Upper case get/set | BeanName: Invalid Container Managed Field Accessor |
| CMP 2.0: CMFs Public or Protected and Abstract | BeanName: CMFs should be declared abstract |
| CMP 2.0: CMF starts with lower case | BeanName: CMFs should start with lower case |
| CMP 2.0: CMF valid | BeanName: CMF should be primitive/serializable/remote/home reference |
| CMP 2.0: CMF declared in bean | BeanName: CMF should not be declared in the Bean Class |
| CMP 2.0: CMR declaration: Accessor methods Upper case get/set | BeanName: Invalid Container Managed Relation Accessor |
| CMP 2.0: CMRs Accessors public /protected and Abstract | BeanName: CMR accessors should be declared public/protected and abstract |
| CMP 2.0: CMRs must start with lower case | BeanName: CMRs should start with lower case |
| CMP 2.0: CMR Local Interface for One - One Collection for One -Many or Many - Many | BeanName: Invalid CMR declaration |
| CMP 2.0: CMR fields Virtual | BeanName: CMR accessors should be declared virtual |
| CMP 2.0: CMR Multiplicity | BeanName: CMR Type - EJBLocalObject for One -One or Many -One Collection/Set for One - Many or Many - Many |
| EjbFinders: abstract | BeanName: Finder method should not be declared in the bean class |
| EjbSelect: throws FinderException | BeanName: Select method should throw FinderException |
| EjbSelect: Public and abstract | BeanName: Select method should be abstract and public |
| EjbSelect: QL association | BeanName: ejbSelect method not associated with QL |
| EjbSelect: Param Length and param matching | BeanName: ejbSelect Method params declared in the BeanClass and those declared in the ejb-jar.xml do not match |
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |