Transaction is set up as a managed service factory.  I haven't figured out 
exactly how this results in a tm instance without any visible configuration.

If you can figure out what is triggering the creation of a tm and the pid, the 
property to set is called aries.transaction.timeout and the default value is 
600 (seconds) or 10 minutes.

If you thing some of the resource managers might be timing out earlier, let me 
know.  I'm not sure we are propagating the tm timeout to the resource managers 
in each transaction.

thanks
david jencks

On Dec 13, 2011, at 2:10 PM, Bengt Rodehav wrote:

> I use Aries JPA and Aries Transaction with OpenJpa. I have problems with some 
> long transactions that time out (I think anyway). I cannot see where I can 
> configure the transaction timeout for Aries Transaction. The only interaction 
> I have with Aries Transaction is my blueprint definition where I create beans 
> with transaction properties set and publish them as services. Below is an 
> example of one of my blueprint definitions.
> 
> Can anyone advice me as to how one can configure the transacation timeout? 
> (and what is the default?)
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0"; 
> xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0";
>   xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0";>
> 
>   <bean id="statementService" 
> class="se.digia.skistory.domain.impl.StatementService">
>     <tx:transaction method="*" value="Required" />
>     <jpa:context property="entityManager" unitname="skistPU" />
>   </bean>
> 
>   <service ref="statementService" 
> interface="se.digia.skistory.domain.api.IStatementService">
>   </service>
> 
>   <bean id="customerService" 
> class="se.digia.skistory.domain.impl.CustomerService">
>     <tx:transaction method="*" value="Required" />
>     <jpa:context property="entityManager" unitname="skistPU" />
>   </bean>
> 
>   <service ref="customerService" 
> interface="se.digia.skistory.domain.api.ICustomerService">
>   </service>
> 
> </blueprint>
> 
> /Bengt

Reply via email to