[infinispan-dev] Obtaining TransactionManager in an Easy Way

Manik Surtani manik at jboss.org
Wed Jan 27 05:15:03 EST 2010


Someone care to add an FAQ about this on the Infinispan wiki?  I bet this will be a common question.  :)  Amin?

On 26 Jan 2010, at 07:46, Galder Zamarreno wrote:

> And an even further possibility is to take the transaction manager 
> (which I suppose you mean JBossTS (Arjuna based JBoss Transactions), 
> since JBossTM is the old name for the AS4 JBoss Transaction Manager) and 
> bind to JNDI (i.e. similar to what's done in 
> http://anonsvn.jboss.org/repos/infinispan/trunk/core/src/test/java/org/infinispan/jndi/BindingTest.java 
> where we test that CacheManager can be bound to a local JNDI) and then 
> retrieve it from there.
> 
> As long as you bound it to one of the known locations as per 
> https://svn.jboss.org/repos/infinispan/trunk/core/src/main/java/org/infinispan/transaction/lookup/GenericTransactionManagerLookup.java, 
> Infinispan would be able to use it as well.
> 
> Retrieving the TM this way would ease migration of such code if it ever 
> needs to run with an application server.
> 
> On 01/25/2010 07:49 PM, Amin Abbaspour wrote:
>> Hi,
>> 
>> Oops, sorry, it was there. I don't know why it didn't catch my eyes.
>> I use JBossTM btw.
>> 
>> Thanks
>> Amin
>> 
>> On Mon, Jan 25, 2010 at 7:33 PM, Mircea Markus<mircea.markus at jboss.com>  wrote:
>>> Alternatively, you should be able to use the logic in the TransactionManagerLookup implementation. This is how ISPN has access to the TM, and it's up to you as a user to specify how ISPN accesses the TM. I guess you're using dummy TM, right?
>>> 
>>> 
>>> On 25 Jan 2010, at 14:11, Galder Zamarreno wrote:
>>> 
>>>> 
>>>> 
>>>> On 01/23/2010 07:13 AM, Amin Abbaspour wrote:
>>>>> Hi All,
>>>>> 
>>>>> Why there is no easy way to get TransactionManager from
>>>>> (Advanced)Cache?
>>>> 
>>>> Where are you looking? AdvancedCache has getTransactionManager() since
>>>> last month and this is included in CR3.
>>>> 
>>>> I can see that you do reflection in
>>>>> TestingUtil.getTransactionManager in order to get TM. BTW TestingUtil
>>>>> is in test and not available unless one builds custom jars.
>>>>> 
>>>>> Regards,
>>>>> Amin Abbaspour
>>>>> _______________________________________________
>>>>> infinispan-dev mailing list
>>>>> infinispan-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>> 
>>>> --
>>>> Galder Zamarreño
>>>> Sr. Software Engineer
>>>> Infinispan, JBoss Cache
>>>> _______________________________________________
>>>> infinispan-dev mailing list
>>>> infinispan-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>> 
>>> 
>>> _______________________________________________
>>> infinispan-dev mailing list
>>> infinispan-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>> 
>> 
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> -- 
> Galder Zamarreño
> Sr. Software Engineer
> Infinispan, JBoss Cache
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org








More information about the infinispan-dev mailing list