[jboss-jira] [JBoss JIRA] (AS7-2638) a Message driven bean that implements MessageListener in a superclass is considered invalid.
Davide Gesino (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Nov 16 08:47:40 EST 2011
[ https://issues.jboss.org/browse/AS7-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643342#comment-12643342 ]
Davide Gesino commented on AS7-2638:
------------------------------------
You can package and EAR with a single EJB module, that contains these 2 classes.
// ONE
import javax.jms.MessageListener;
public class AbstractMessageDriven implements MessageListener {
public void onMessage(javax.jms.Message arg0){
System.out.println(arg0);
}
}
//TWO
import javax.jms.MessageListener;
@MessageDriven(name="ConcreteMDB")
public class ConcreteMDB extends AbstractMessageDriven {
}
The "ConcreteMDB" is not considered valid because JBOSS do not recognize the fact that it implements MessageListener, in its superclass, and not directly.
> a Message driven bean that implements MessageListener in a superclass is considered invalid.
> --------------------------------------------------------------------------------------------
>
> Key: AS7-2638
> URL: https://issues.jboss.org/browse/AS7-2638
> Project: Application Server 7
> Issue Type: Bug
> Components: JMS
> Affects Versions: 7.0.2.Final
> Environment: windows vista
> Reporter: Davide Gesino
> Assignee: jaikiran pai
> Labels: new_and_noteworthy
>
> a Message driven bean that implements MessageListener in a superclass is considered invalid.
> I have:
> public abstract class AsynchReplyManager implements MessageListener {
> public void onMessage(Message message) {... }
> ...}
> @MessageDriven(mappedName = "myMappedName")
> public class MyMessageDrivenBean extends AsynchReplyManager {
> ...
> }
> The deployment validator complains that:
> "MyMessageDrivenBean does not implement 1 interface nor specifies message listener interface"
> I think it should deal with the validator here:
> https://github.com/jbossas/jboss-as/blob/master/ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/MessageDrivenComponentDescriptionFactory.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list