deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DELTASPIKE-967) Ability to start transaction scope manually
Date Thu, 30 Jul 2015 19:16:04 GMT

     [ 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)

Mime
View raw message