You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Arne Limburg (JIRA)" <ji...@apache.org> on 2012/07/05 00:06:40 UTC
[jira] [Created] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Arne Limburg created DELTASPIKE-219:
---------------------------------------
Summary: @Transactional for JTA UserTransaction
Key: DELTASPIKE-219
URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
Project: DeltaSpike
Issue Type: New Feature
Components: JPA-Module
Affects Versions: 0.2-incubating
Reporter: Arne Limburg
Assignee: Arne Limburg
Fix For: 0.3-incubating
Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved DELTASPIKE-219.
-----------------------------------------
Resolution: Fixed
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Gerhard Petracek
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435327#comment-13435327 ]
Gerhard Petracek commented on DELTASPIKE-219:
---------------------------------------------
for sure we can add further features and abstractions to keep what we support right now + allow more advanced uses-cases.
however, imo in such cases it's better to use ejbs directly. @Transactional was always just a simpler alternative and not a full replacement.
if we really need more, it should be @TransactionAttribute similar to https://github.com/openknowledge/openknowledge-cdi-extensions/tree/master/openknowledge-cdi-transaction
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423521#comment-13423521 ]
Gerhard Petracek commented on DELTASPIKE-219:
---------------------------------------------
i'm currently testing a patch which uses a transaction-adapter. with this approach we just need a small change of the existing implementation and we can support both - JTA (BMT) and RESOURCE_LOCAL - with the same base implementation (even for java-ee5). furthermore, it's still compatible with all features we have already (multiple entity-managers, @TransactionScoped,...)
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Gerhard Petracek
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved DELTASPIKE-219.
--------------------------------------
Resolution: Fixed
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435412#comment-13435412 ]
Gerhard Petracek commented on DELTASPIKE-219:
---------------------------------------------
@romain: +1
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435327#comment-13435327 ]
Gerhard Petracek edited comment on DELTASPIKE-219 at 8/16/12 4:33 AM:
----------------------------------------------------------------------
in general:
for sure we can add further features and abstractions to keep what we support right now + allow more advanced uses-cases.
however, imo in such cases it's better to use ejbs directly. @Transactional was always just a simpler alternative and not a full replacement.
if we really need more, it should be @TransactionAttribute similar to https://github.com/openknowledge/openknowledge-cdi-extensions/tree/master/openknowledge-cdi-transaction
was (Author: gpetracek):
for sure we can add further features and abstractions to keep what we support right now + allow more advanced uses-cases.
however, imo in such cases it's better to use ejbs directly. @Transactional was always just a simpler alternative and not a full replacement.
if we really need more, it should be @TransactionAttribute similar to https://github.com/openknowledge/openknowledge-cdi-extensions/tree/master/openknowledge-cdi-transaction
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435327#comment-13435327 ]
Gerhard Petracek edited comment on DELTASPIKE-219 at 8/16/12 5:26 AM:
----------------------------------------------------------------------
in general:
for sure we can add further features and abstractions to keep what we support right now + allow more advanced uses-cases.
however, imo in such cases it's better to use a server which supports it out-of-the-box. @Transactional was always just a simpler alternative and not a full replacement.
if we really need more, it should be @TransactionAttribute similar to https://github.com/openknowledge/openknowledge-cdi-extensions/tree/master/openknowledge-cdi-transaction
was (Author: gpetracek):
in general:
for sure we can add further features and abstractions to keep what we support right now + allow more advanced uses-cases.
however, imo in such cases it's better to use ejbs directly. @Transactional was always just a simpler alternative and not a full replacement.
if we really need more, it should be @TransactionAttribute similar to https://github.com/openknowledge/openknowledge-cdi-extensions/tree/master/openknowledge-cdi-transaction
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424285#comment-13424285 ]
Gerhard Petracek edited comment on DELTASPIKE-219 at 7/28/12 6:43 AM:
----------------------------------------------------------------------
i pushed a first draft to http://s.apache.org/N2T (tested with different environments).
org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionPersistenceStrategy needs to be configured as (global) alternative.
was (Author: gpetracek):
i pushed a first draft to http://s.apache.org/N2T (tested on different environments).
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Gerhard Petracek
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg reopened DELTASPIKE-219:
--------------------------------------
Assignee: Mark Struberg (was: Gerhard Petracek)
Needs a review. The current implementation is bound to EntityManagers. But JTA could be anything! This could e.g. be a sole JMX transaction as well...
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423521#comment-13423521 ]
Gerhard Petracek edited comment on DELTASPIKE-219 at 7/26/12 10:52 PM:
-----------------------------------------------------------------------
i'm currently testing a patch which uses a transaction-adapter. with this approach we just need a small change of the existing implementation and we can support both - JTA (BMT) and RESOURCE_LOCAL - with the same base implementation (even for java-ee5). furthermore, it's still compatible with all features we have already (multiple entity-managers with cdi-qualifiers, @TransactionScoped,...)
was (Author: gpetracek):
i'm currently testing a patch which uses a transaction-adapter. with this approach we just need a small change of the existing implementation and we can support both - JTA (BMT) and RESOURCE_LOCAL - with the same base implementation (even for java-ee5). furthermore, it's still compatible with all features we have already (multiple entity-managers, @TransactionScoped,...)
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Gerhard Petracek
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435380#comment-13435380 ]
Romain Manni-Bucau commented on DELTASPIKE-219:
-----------------------------------------------
for a first version just supporting REQUIRED (start if not existing) + rollback if exception is enough IMO
wdyt?
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek reassigned DELTASPIKE-219:
-------------------------------------------
Assignee: Gerhard Petracek (was: Arne Limburg)
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Gerhard Petracek
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424285#comment-13424285 ]
Gerhard Petracek commented on DELTASPIKE-219:
---------------------------------------------
i pushed a first draft to http://s.apache.org/N2T (tested on different environments).
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Gerhard Petracek
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (DELTASPIKE-219) @Transactional for JTA
UserTransaction
Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DELTASPIKE-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435380#comment-13435380 ]
Romain Manni-Bucau edited comment on DELTASPIKE-219 at 8/16/12 5:54 AM:
------------------------------------------------------------------------
for a first version just supporting REQUIRED (start if not existing) + rollback if exception is enough IMO
since it is what we currently have i think that's fine
other cases are not so common so i'd wait before doing anything more
wdyt?
was (Author: romain.manni-bucau):
for a first version just supporting REQUIRED (start if not existing) + rollback if exception is enough IMO
wdyt?
> @Transactional for JTA UserTransaction
> --------------------------------------
>
> Key: DELTASPIKE-219
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-219
> Project: DeltaSpike
> Issue Type: New Feature
> Components: JPA-Module
> Affects Versions: 0.2-incubating
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> Provide support for starting a JTA UserTransaction with @Transactional
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira