Bad choice of words on my part! I was refering to your own transaction
advice as illustrated in the Spring configuration snippet you posted. I'm
not entirely sure which version of AppFuse you are using, but by default
AppFuse provides a transaction advice that is configured like so:

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

and

    <tx:advice id="txAdvice">
        <tx:attributes>
                ...
            <tx:method name="*"/>
        </tx:attributes>
    </tx:advice>

You will see behaviour of the type you mentioned in your post if this
transaction advice is being called instead of your own, so you need to make
sure that your transaction advice gets called before this one - the easiest
way to ensure this happens is to configure the advisor to have order 0 as
per the configuration of the userManagerTxAdvice:

        <aop:advisor id="userManagerTx" advice-ref="userManagerTxAdvice"
pointcut="execution(* *..service.UserManager.*(..))" order="0"/>

Mike

On 9/7/07, Marco Papini <[EMAIL PROTECTED]> wrote:
>
> Uhm... I don't think I've added any custom interceptor, but may be
> I've introduced the issue while upgrading the appfuse version... can
> you suggest me where to start looking?
>
> Il giorno 07/set/07, alle ore 10:33, Michael Horwitz ha scritto:
>
> > Delved into this the only way I know how - took a quick dip in the
> > Spring source code. Judging by the exception message you have, it
> > seems Spring is not recognising the exception being thrown as one
> > it should roll back the transaction for and is still trying to
> > commit the transaction. You config looks O.K. - I would look for
> > another transaction interceptor overriding yours. Perhaps the
> > AppFuse default interceptor is getting applied before your custom
> > interceptor?
> >
> > Mike
> >
> > On 9/7/07, Marco Papini <[EMAIL PROTECTED]> wrote: Hi all,
> >
> --
> "That's thirty minutes away. I'll be there in ten." -- Mr. Wolfe
>
> Marco Papini
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to