-
1. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jesper.pedersen May 25, 2011 10:17 AM (in response to matt.drees)No
-
2. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jason.greene May 25, 2011 11:19 AM (in response to matt.drees)You can however achieve this using @DataSourceDefinition, which bypasses JCA.
-
3. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jason.greene May 25, 2011 11:19 AM (in response to jason.greene)Note @DataSourceDefinition is a new EE6 spec annotation
-
4. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jaikiran May 25, 2011 11:42 AM (in response to jason.greene)But we do enroll a Java EE @DataSourceDefinition instance within an ongoning transaction, isn't it? i.e. it is transactional resource.
-
5. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jason.greene May 25, 2011 11:47 AM (in response to jaikiran)jaikiran pai wrote:
But we do enroll a Java EE @DataSourceDefinition instance within an ongoning transaction, isn't it? i.e. it is transactional resource.
We don't do anything special, it's up to the jdcb resource imp to decide what to do, but you can say transactional=no in the annotation, and that value will be passed to the resource (if it chooses to use it).
-
6. Re: What is the AS7 equivalent of <no-tx-datasource> ?
matt.drees May 25, 2011 12:35 PM (in response to jesper.pedersen)Jesper Pedersen wrote:
No
That makes me sad.
The @DataSourceDefinition workaround sounds like it'll work, but it's a shame to have to use two different methods of datasource config. It'll also complicate how I set up my dev/staging/prod environments.
For the record, I'm needing a non-tx datasource in order to be able to use Quartz's JobStoreCMT. If anyone has suggestions on a way to configure these more elegantly, let me know.
-
7. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jason.greene May 25, 2011 12:35 PM (in response to jason.greene)Jason Greene wrote:
We don't do anything special, it's up to the jdcb resource imp to decide what to do, but you can say transactional=no in the annotation, and that value will be passed to the resource (if it chooses to use it).
Actually we should do the enlistment no matter what, I'll create an issue for that.
-
8. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jason.greene May 25, 2011 12:36 PM (in response to matt.drees)Matt Drees wrote:
Jesper Pedersen wrote:
No
That makes me sad.
The @DataSourceDefinition workaround sounds like it'll work, but it's a shame to have to use two different methods of datasource config. It'll also complicate how I set up my dev/staging/prod environments.
For the record, I'm needing a non-tx datasource in order to be able to use Quartz's JobStoreCMT. If anyone has suggestions on a way to configure these more elegantly, let me know.
Jesper is going to add it in the next update, it's just not available now.
-
9. Re: What is the AS7 equivalent of <no-tx-datasource> ?
matt.drees May 25, 2011 12:48 PM (in response to jason.greene)Jason Greene wrote:
Jesper is going to add it in the next update, it's just not available now.
Very good news. Thanks.
-Matt
-
11. Re: What is the AS7 equivalent of <no-tx-datasource> ?
rareddy May 27, 2011 4:36 PM (in response to jesper.pedersen)Teiid also uses this with JDBC sources with "no-tx" to turn off the transactions. We have no JEE hook.
With resource adapters, Teiid extensively uses "no-tx-connection-factory" in the "connection-factories" as many of underlying sources are non-transactional, hopefully that is supported too.
Thanks.
Ramesh..
-
12. Re: What is the AS7 equivalent of <no-tx-datasource> ?
jesper.pedersen May 31, 2011 8:17 AM (in response to rareddy)Teiid also uses this with JDBC sources with "no-tx" to turn off the transactions. We have no JEE hook.
It'll be in the 7.0.0.CR1 release.
With resource adapters, Teiid extensively uses "no-tx-connection-factory" in the "connection-factories" as many of underlying sources are non-transactional, hopefully that is supported too.
<transaction-support>NoTransaction</transaction-support>