DevPortal

What are the Basic Bean Class Level Validations?


The following table lists the basic bean class level validations:

Table 1: Basic bean class level validation

Validation ConditionError Messages
Public Constructor with no argumentsBeanName: Does not have a public constructor with no arguments.
Class Exists (Bean Class,Home,Remote)BeanName: Could not load Class (No further validation done on the bean.)
Could not load Support ClassBean Name: Could not load Support Class: Support Class Name.
Class AbstractBeanName: Bean Class cannot be abstract.(except CMP 2.0).
Could not load Class fieldsBeanName: Could not load Class field: Class Field.
Class FinalBeanName: Bean Class cannot be declared final.
Bean Class: Must be PublicBeanName: Bean Class must be declared public.
Bean Class: Static fields but not finalBeanName: All static fields have to be declared as final.: Field Name.
Environment Entries InvalidBeanName: Environment entry has invalid value: Entry type,Value.
Bean Class: Finalize methodBeanName: Finalize method cannot be declared in the bean.
Home Interface: extends EJBHOMEBeanName: Home Interface does not extend EJBHOME (No further validation done).
Home Interface: PublicBeanName: Home Interface should be declared public.
Home Interface: Corresponding MethodsBeanName: Corresponding method for method <> not found.
Remote Interface: extends EJBOBJECTBeanName: Remote Interface does not extend EJBOBJECT (No further validation done).
Remote Interface: PublicBeanName: Remote Interface should be declared public.
Method declared in DD present on the remote interfaceBeanName: No method defined in the remote interface with the details: Details.
Create Method ExceptionBeanName: Create Method does not throw Create/Remote Exception.
Remote Interface Corresponding Bean Class MethodsBeanName: No Cores method in bean class for: Remote Method Details.
Business Method: Not finalBeanName: Business Method cannot be declared final: Method Details.
Business Method: not publicBeanName: Business Method should be declared Public: Method Details.
Business Method: not staticBeanName: Business Method cannot be declared Static: Method Details.
Business Method: Valid Parameter typesBeanName: Invalid RMI-IIOP param type: Param Details.
Business Method: Valid NamesBeanName: Business Method names cannot start with ejb.
Business Method: Valid Return typesBeanName: Invalid RMI-IIOP return type: Return type Details.
Business Method: Remote ExceptionBeanName: Business Method does not throw Remote Exception: Method Detail.
Method Permission Element: Method PresentBeanName: Method does not exist but declared for permissions.
Create Method: Return Type Remote InterfaceBean Name: Create method should return remote interface.
Create Method: Matching ejbCreate Method.BeanName: Create method has no matching ejbCreate Method.
Home interface Methods: valid Parameter TypesBeanName: Invalid RMI-IIOP param type: Param Details.
Home interface Methods: valid Return TypesBeanName: Invalid RMI-IIOP return type: Return Details.
Assembly Descriptor: Method Permissions - Method ExistsBeanName: Method listed in Method permissions does not exist in the bean.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal