Hi,
I have a MDB which extends a base class. This base class implements the
MessageListener and MessageDrivenBean interfaces and (among others) the
onMessage method. When I try to deploy this to JBoss 3.2.6 it gives an error:
11:51:54,934 WARN [verifier] EJB spec violation:
Bean : VeprRekenServiceMDB
Section: 15.7.4
Warning: The message driven bean must declare one onMessage() method.
11:51:54,934 ERROR [MainDeployer] could not create deployment:
file:/D:/java/jboss-3.2.6/server/default/tmp/deploy/tmp26985VeprEAR.ear-contents/VeprRe
kenEJB.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans
failed, see above for error messages.
It seems to me that JBoss expects the onMessage method in the MDB, and doesn't
look at the base class. Does anybody have an idea on how to fix this?
Signature MDB:
public class VeprRekenServiceMDBBean extends CIBaseMDBBean {
| ...
| }
Signature base class:
public abstract class CIBaseMDBBean implements MessageListener,
MessageDrivenBean {
| ...
| public void onMessage(javax.jms.Message msg) { ... }
| ...
| }
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859732#3859732
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859732
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user