DevPortal

What are Session Beans Specific Validations?


The following table lists the Session Beans specific validations:

Table 1: Validating session beans

Validation ConditionError Messages
Implements Session Bean InterfaceBeanName: Does not implement javax.ejb.SessionBean interface
Create MethodBeanName: No create method defined on the home interface
ejbCreate Method: Return type.BeanName: Return type should be void
Bean Class: No params ConstructorBean Name: Bean class does not define a no-params public constructor
Bean Class: Not abstractBean Name: Bean class cannot be abstract
SLBean Create MethodBeanName: More than one create method cannot be declared on home
SLBean Create Method ParametersBeanName: SL create method cannot take parameters
ejbCreate PublicBeanName: ejbCreate should be declared public
ejbCreate: Not FinalBeanName: ejbCreate should not be declared final
ejbCreate: Not StaticBeanName: ejbCreate should not be declared static
ejbCreate: Return typeBeanName: ejbCreate should return void
StatelessBean: SessionSync InterfaceBeanName: SL Session beans cannot implement SessionSync interface
StatefulBean: Session Bean Interface - Should have CMTBeanName: SF Beans with BMTs should not implement SessionSync interface
Stateful Bean: SessionSync Interface - Transaction AttributeBeanName: 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


Related Topics:

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