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

Moderator: admin

Post Reply
mopuffus
Posts: 22
Joined: Thu Jul 25, 2013 3:39 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

mopuffus
Posts: 22
Joined: Thu Jul 25, 2013 3:39 pm
Contact:

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

Post by mopuffus »

Good point, I just discover the Connector Based Message Driven Beans

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests