users@jms-spec.java.net

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

From: Abhishek Gupta <abhirockzz_at_gmail.com>
Date: Mon, 27 Apr 2015 12:16:35 +0530

George,

MDB and JMS are quite different.

MDB - just another type of EJB. Very similar to a Stateless EJB except for
the fact that a MDB responds to messages and not called by client code
directly. The messages which a MDB responds to can be sent by any message
source - JMS is just one of those sources. It can any external resource
which needs to be integrated with the container via a JCA adapter

JMS - generic Java API for message exchange. It has nothing to do with MDBs
specifically.

David Blevins already has a lot of content (blogs and talks) with regards
to this. I strongly recommend you checking them out

http://blog.dblevins.com/2010/10/ejbnext-connectorbean-api-jax-rs-and.html
https://github.com/dblevins/mdb-improvements
small blog post which I wrote -
https://abhirockzz.wordpress.com/2015/01/19/mdb-jms-and-vice-versa/

Hope this helps.

- Abhishek


On Mon, Apr 27, 2015 at 12:22 AM, George Karabotsos <karabot_at_gmail.com>
wrote:

> Thank you for all the replies!
> Reading through the fifth chapter of the EJB 3.2 Spec I see similarities
> with JMS. Unfortunately, I can't tell where the similarities begin and
> end, so I will ask a question knowingly in ignorance :).
>
> What is the difference between a MDB and JMS?!
>
> Cheers,
> George
>
> On Sat, Apr 25, 2015, at 09:21 PM, Clebert wrote:
> > Arrays of messages (batching) would be a great add on ;)
> >
> > -- Clebert Suconic typing on the iPhone.
> >
> > > On Apr 24, 2015, at 18:49, <karabot_at_gmail.com> <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
>