jsr343-experts@jms-spec.java.net

[jsr343-experts] Re: JMS 2.0: Planning the next stage

From: Rüdiger zu Dohna <ruediger.dohna_at_1und1.de>
Date: Thu, 29 Mar 2012 13:01:45 +0200

Nigel,

On 2012-03-29, at 12:27, Nigel Deakin wrote:
> On 24/03/2012 10:04, Rüdiger zu Dohna wrote:
>> one day late :-) but I've issued this: http://java.net/jira/browse/JMS_SPEC-88
>>
>> I actually was thinking seriously about abandoning the whole thing, because the simplified API is such a huge benefit
>> already. But when I tried around a little bit, I found that receiving and dispatching messages is still rather tedious.
>>
>> I'd really love to hear all your comments.
>>
> You offer two alternatives.
>
> 1. Binding to CDI events.
>
> In this, you are defining a listener on a CDI event. How is this related to JMS? Are you suggesting that when a JMS
> message is received the JMS provider automatically fires a CDI event containing the message payload? If not, what are you suggesting?

Yes, exactly. The same would work for the sender as well, and the only thing the business code _has_ to care about, is one annotation on the event type. Everything else has useful defaults.

> 2. Binding to a business interface
>
> Is this essentially the MessageAPI approach (which you kindly explained to me when we met in Belgium)?

Exactly! Only that I've explained it from the receiver side this time.


Rüdiger