应该同时实现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.
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.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货