You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org> on 2014/04/08 09:45:16 UTC

[jira] [Commented] (TOMEE-1172) support jta wrapping (ManagedDataSource) of a custom datasource

    [ https://issues.apache.org/jira/browse/TOMEE-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962674#comment-13962674 ] 

Jean-Louis MONTEIRO commented on TOMEE-1172:
--------------------------------------------

Thanks Romain.
Yes that'd be great and IMHO it's required to being able to efficiently use any provided Datasource implementations in JDBC drivers.

> support jta wrapping (ManagedDataSource) of a custom datasource
> ---------------------------------------------------------------
>
>                 Key: TOMEE-1172
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1172
>             Project: TomEE
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>
> Currently our DataSourceFactory creates the datasource + pools it + if jtamanaged = true integrates it with JTA
> would be great to get a JTADataSourceFactory to just wrap a datasource. The idea is to configure it this way:
> {code}
> <Resource id="myid" type="DataSource" class-name="org.apache.openejb.resource.jdbc.JTADataSource">
>    Delegate = realDsId
>    DataSourceCreator = ...
> </Resource>
> {code}
> This allow to reuse custom datasource in a JTA context easily



--
This message was sent by Atlassian JIRA
(v6.2#6252)