DevPortal

What are MessageDriven Beans Specific Validations?


The following table lists the MessageDriven Beans specific validations:

Table 1: MDB Validation

Validation ConditionError Messages
MDB: Implements MessageDriven Bean InterfaceBeanName: Does not implement javax.ejb.MessageDrivenBean interface.
MDB: Implements MessageListener InterfaceBean Name: Does not implement the javax.jms.MessageListener
ejbCreate Method: Return typeBeanName: Return type should be void.
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.
ejbRemove: Public, Not Final and Not StaticBeanName: ejbRemove not declared as required.
MDB: Transaction attributeBeanName: MDB can have either Required/NotSupported as Transaction attribute.
MDB: SelectorBeanName: The Message Selector for the MDB should be valid.


Related Topics:

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