This is a bit side tracking, but I currently see the @RequestScoped and @SessionScoped in
the CDI spec not as technically bound to a HttpServlet but rather as more
'logical' units. E.g. CDI defines that @RequestScoped must also be active during
EJB invocations from JMS. See CDI-spec 6.7. It's definitely _not_ strictly web bound.
And this is really nice from an app perspective.
LieGrue,
strub
________________________________
From: Lincoln Baxter <lbaxter(a)redhat.com>
To: Reza Rahman <reza_rahman(a)lycos.com>
Cc: cdi-dev(a)lists.jboss.org
Sent: Wednesday, May 23, 2012 2:09 AM
Subject: Re: [cdi-dev] Transaction Scope for CDI
The only reason why I potentially object is because we already have several scope
annotations specified in CDI itself, when these annotations really do not belong there in
the first place.
There's no good reason I can think of why CDI should know what the
"@RequestScope" or "@ConversationScope" is. AFAIK this was done as a
convenience instead of doing work in the related specs, or as a separate deliverable of
this spec.
But I won't stand in the way. We already have precedent, it's already messy, and
we can't fix it now ;)
~Lincoln
>________________________________
From: "Reza Rahman" <reza_rahman(a)lycos.com>
To: cdi-dev(a)lists.jboss.org
Sent: Tuesday, May 22, 2012 7:28:13 PM
Subject: [cdi-dev] Transaction Scope for CDI
CDI enthusiasts,
Pete, I and Nigel (JMS 2 spec lead) have been discussing the issue of the transaction
scope behind the scenes the past few weeks. Attached is what we came up with and feel it
meets the various related use-cases the most effectively. The downside is that it is quite
involved (conceptually) and might take a bit of patience to absorb. Please give it a read
and let me know your thoughts.
Cheers,
Reza
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev