-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Transactional should support local transaction like Spring #190
Comments
Thank you for your suggestion! |
@tomjenkinson I would like to port the For example, in a servlet container, there is a DataSource CDI bean declared, create a local DataSource based transaction strategy, and developers can use |
+1, really a important feature when just using CDI + JPA |
Thank you for providing feedback, please can I suggest to create a discussion on the Jakarta Transactions developer mailing list: https://accounts.eclipse.org/mailing-list/jta-dev ? |
Now we are deprecating EJB, |
(Neutral observer.) My guess is what is being (clumsily and somewhat rashly) proposed is: |
Like Spring, in a none-EJB and none-JTA,
@Transactional
should support JPARESOURCE_LOCAL
type persistence context seamlessly in a CDI SE and Servlet/CDI environment.Besides, add possible to configure transaction support(
@Trasnactional
) fromDataSource
for JDBC scenes. Like the SpringDataSource
andDataSourceTransactionManager
.I think the Apache DeltaSpike project has done some work like this in the past years. https://deltaspike.apache.org/documentation/data.html#Transactions
Related to jakartaee/persistence#309.
The text was updated successfully, but these errors were encountered: