Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.494 :

Posted: Thu Aug 08, 2013 8:35 am
by mopuffus
I think that the question
A JMS message driven bean class must implement...
can have the answer
javax.jms.MessageListener
but in the same time can not. The message listener interface can be the javax.jms.MessageListener but also something else.

According with the specs, 5.4.6 The Optional MessageDrivenBean Interface (page 140)
The message-driven bean class is not required to implement the javax.ejb.MessageDrivenBean interface.
IMHO the question should use a "may" instead of must (e.g. "A JMS message driven bean class may implement...")


Best Regards,
Mihai

Re: About Question enthuware.oce-ejbd.v6.2.494 :

Posted: Thu Aug 08, 2013 6:33 pm
by admin
No, while it is true that a message listener class may implement some other interface but a JMS message listener must, either directly or indirectly, implement javax.jms.MessageListener.

HTH,
Paul.

Re: About Question enthuware.oce-ejbd.v6.2.494 :

Posted: Wed Aug 14, 2013 11:29 am
by mopuffus
Good point, I just discover the Connector Based Message Driven Beans

Thanks