John,

Are you using 1.9.0 or 1.9.4?  1.9.0 uses Spring 1.x whereas 1.9.4 uses 2.x.
With 2.x, we're using AspectJ's pointcut expression language.  To exclude a
certain manager from being intercepted by txAdvice, you could change it
from:

<aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(*
*..service.*Manager.*(..))" order="2"/>

to:

<aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(*
*..service.*Manager.*(..)) and !execution(* com.company.yourclass.*(..))"
order="2"/>

HTH,

Matt

On 3/26/07, dayspringjohn <[EMAIL PROTECTED]> wrote:


Thanks for the reply. My experience with this setting has been limited to
adding or removing the readOnly flag; if you've done this before can you
be
more specific?

Would I use something like PROPAGATION_NESTED or PROPAGATION_REQUIRES_NEW?
Will I still have access to a Spring session, just with no transaction
started? If you can point me to a code sample that would be fabulous.

Thanks,
-john



mraible wrote:
>
> You could change your transaction definition in your bean for this
> manager by overriding the "transactionAttributes" property.
>
> Matt
>
>
> On 3/26/07, dayspringjohn <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Using appfuse 1.9 and struts/hibernate, Spring sets up my transaction,
my
>> action calls the manager which calls the DAO, everything's great.
>>
>> In one case, however, I have a long update process where I need to
manage
>> the transaction so I can commit periodically and avoid db deadlocks.
>>
>> How can I "get outside" of Spring's transaction and set up my own
>> transaction manually?
>>
>> (More info: I already use hibernate batch, flush and clear. This got my
>> process down from an hour to 2 minutes, but I still have users hitting
>> the
>> db during the update and get process deadlocks while updating.
Hibernate
>> flushing hands it off, but Spring is still holding the transaction and
>> not
>> committing the flushed batches until the entire process is complete.)
>>
>> Thanks,
>> -john
>> --
>> View this message in context:
>>
http://www.nabble.com/How-to-create-separate-transaction-from-Spring%27s-tf3469490s2369.html#a9681385
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/How-to-create-separate-transaction-from-Spring%27s-tf3469490s2369.html#a9682056
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

Reply via email to