应该同时实现MessageDrivenBean和MessageListener这两个接口.下面是对消息驱动bean的要求:
 It implements the MessageDrivenBean and MessageListener interfaces 
 The class is defined as public. 
 The class cannot be defined as abstract or final. 
 It implements one onMessage method. 
 It implements one ejbCreate method and one ejbRemove method. 
 It contains a public constructor with no arguments. 
 It must not define the finalize method.