users@jms-spec.java.net

[jms-spec users] [jsr343-experts] [jms-spec issues] (JMS_SPEC-88) Bind JMS to CDI events and/or business interfaces

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Thu, 29 Mar 2012 14:29:57 +0100

(Starting a new thread for this issue, and sent to correct list this time)

RĂ¼diger,

On 29/03/2012 12:01, RĂ¼diger zu Dohna wrote:
> On 2012-03-29, at 12:27, Nigel Deakin wrote:
>>>
>> 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.

So how would the incoming JMS message be converted into a CDI event? Are you proposing a standard mechanism for doing this?

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

OK. Initially I'd like to find out whether these are two separate proposals, or whether the first is actually a way to
express MessageAPI in terms of CDI events.

Nigel