[Seasar-user:11422] Re: transaction

YASUO HIGA [E-MAIL ADDRESS DELETED]
2007年 11月 3日 (土) 13:59:16 JST


Hi, guys.

> <component name="pageCustomizer"
>     class="org.seasar.framework.container.customizer.CustomizerChain">
>     <initMethod name="addAspectCustomizer">
>       <arg>*"j2ee.requiredTx"*</arg>
>       <arg>*"do.*, initialize, prerender"*</arg>
>     </initMethod>
>   </component>
> 
The first argument is interceptor name.
"j2ee.requiredTx" is interceptor name for transaction.

The second argument is pointcut.
You can use regular expression.
> 
> If i place do method in actions ,and i want to customaizer methods in
> actions ,can i write like this?
> 
> <component name="actionCustomizer"
>     class="org.seasar.framework.container.customizer.CustomizerChain">
>     <initMethod name="addAspectCustomizer">
>       <arg>*"j2ee.requiresNewTx"*</arg>
>       <arg>*"do.*, transaction,sendmail**"*</arg>
>     </initMethod>
>   </component>
> 
I don't know what you want to do.
Anyway, I recommend that you name page method "do.*".



Seasar-user メーリングリストの案内