I have a similar issue where my abstract base class doesn't have the
onMessage(Message m) declaration.
| public abstract class BaseMessageBean implements MessageDrivenBean,
MessageListener
| {
| private MessageDrivenContext context = null;
|
| public void setMessageDrivenContext(MessageDrivenContext context)
throws EJBException
| {
| this.context = context;
| }
|
| public void ejbRemove() throws EJBException
| {
| }
|
| public void ejbCreate() throws EJBException
| {
| }
|
| }
|
My subclass implements the BaseMessageBean and onMessage(Message m) correctly
| public class ReportSchedulerBean extends BaseMessageBean
| implements MessageDrivenBean, MessageListener
| {
| public void onMessage(Message message)
| {
| // stuff happens here
| }
|
| }
|
But I still get the spec violation stack.
14:56:07,578 WARN [verifier] EJB spec violation:
Bean : ReportSchedulerListener
Section: 15.7.4
Warning: The message driven bean must declare one onMessage() method.
I'm running
Jboss 4.0.3SP1,
Java 1.5.0_06-b05
This worked on 4.0.1sp1
Thoughts?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931439#3931439
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931439
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user