users@jms-spec.java.net

[jms-spec users] Re: MessageListener::onMessage Replacement?

From: Abhishek Gupta <abhirockzz_at_gmail.com>
Date: Sat, 25 Apr 2015 12:55:01 +0530

Hey George

Yes, such a feature does exist. However, it related to Message Driven Beans
in general rather than JMS.

From EJB 3.2 onwards, a MDB can implement a marker interface (with no
methods). This essentially exposes all public methods (which are non
static) as listener methods.

Please read EJB 3.2 spec doc <http://bit.ly/1DJmw0z> section 5.4.3 for more
details.

- Abhishek

On Sat, Apr 25, 2015 at 4:19 AM, <karabot_at_gmail.com> wrote:

> Hello fellow JMS users.
>
> Is there such a feature that will allow for a class to receive messages
> without implementing the MessageListener interface?
>
> Going though the JMS Spec 2.0 I see no such indication.
>
> I am only asking because one of my colleagues was claiming such a
> feature does exist.
>
> Cheers,
> George
>