[ 
https://issues.apache.org/jira/browse/DELTASPIKE-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Struberg resolved DELTASPIKE-967.
--------------------------------------
    Resolution: Won't Fix
      Assignee: Mark Struberg

CdiCtrl ContextCtrl is only intended to control the CDI specified contexts. 
There is simply no portable way to control the impl of e.g.@ApplicationContext 
as this code is part of the CDI container.

The @TransactionScoped otoh is none such a scope but a DeltaSpike specific 
scope. 
So this can perfectly be handled in a portable way by controling DeltaSpikes 
TransactionContext directly. But I would not suggest this to random Joe but 
only for user who know _exactly_ what they do!

> Ability to start transaction scope manually
> -------------------------------------------
>
>                 Key: DELTASPIKE-967
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-967
>             Project: DeltaSpike
>          Issue Type: New Feature
>    Affects Versions: 1.4.2
>            Reporter: John D. Ament
>            Assignee: Mark Struberg
>
> Currently, the CDI Context controller class defines methods to manually start 
> the CDI 1.0 provided scopes - Request, Session, Application and 
> ConversationScoped.
> There's presently no way in the DS codebase to manually start a 
> TransactionScope using the controllers
> See here
> https://github.com/apache/deltaspike/blob/master/deltaspike/cdictrl/impl-weld/src/main/java/org/apache/deltaspike/cdise/weld/WeldContextControl.java#L76
> https://github.com/apache/deltaspike/blob/master/deltaspike/cdictrl/impl-owb/src/main/java/org/apache/deltaspike/cdise/owb/OpenWebBeansContextControl.java#L72



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to