[infinispan-dev] How to configure Infinispan with transactions, backed by relational DB on JBoss AS 7 vs. Tomcat 7 ?

Tristan Tarrant ttarrant at redhat.com
Thu May 24 03:09:57 EDT 2012


On 05/24/2012 09:08 AM, Martin Gencur wrote:
> Tristan Tarrant píše v Thu 24. 05. 2012 v 09:02 +0200:
>> On 05/23/2012 09:31 PM, Dan Berindei wrote:
>>> On Wed, May 23, 2012 at 9:06 PM, Sanne Grinovero<sanne at infinispan.org>   wrote:
>>>> Nice work Martin!
>>>>
>>>> Just one doubt, especially since it's a rather long post.. why would
>>>> someone want to use c3p0 on AS7 ? Isn't the included datasource pool
>>>> far superior?
>>>>
>>> The AS7 datasource tries to join the cache transaction, but that won't
>>> work because it's too late (we only write to the cache store during
>>> commit). Martin alluded to that problem, but he wasn't very specific -
>>> he just pointed at https://issues.jboss.org/browse/ISPN-604
>>>
>>> Martin, I think it would have been best if you listed the error
>>> message as well so any users having the same problem can find your
>>> post.
>>>
>> Actually since the inclusion of ISPN-2040 in master, 5.1.x and JDG, that
>> is not strictly true anymore...
> Not strictly but still true, right? What happens when there is a
> transaction and it rolls back? Will the entry be removed back from the
> cache store? If yea, why is this marked as workaround?
It doesn't actually implement proper transactional behaviour. It's just 
that the error may not be there anymore.

Tristan


More information about the infinispan-dev mailing list