users@jms-spec.java.net

[jms-spec users] [jsr343-experts] Re: (JMS_SPEC-70) Define annotations for injecting MessagingContext objects

From: Rüdiger zu Dohna <ruediger.dohna_at_1und1.de>
Date: Tue, 10 Apr 2012 09:24:09 +0200

John,

On 2012-04-06, at 03:58, John D. Ament wrote:
> Question 2: Should there be a separate instance for each injection point (answer A), or should normal CDI sharing (according to scope) be used? (answer B)
>
> I think the use case of needing multiple injection points is quite small. Injecting into multple stateless session beans, or even stateful session beans, should result in different instances. CDI scopes though behave different because the objects are related. CDI injection should use the same instance for same scoped objects that are all active together.

I don't really understand your comment. Do you mean A or B? ;-)


Rüdiger