@TRansactional

2 messages Options
Embed this post
Permalink
Frans Thamura-3

@TRansactional

Reply Threaded More More options
Print post
Permalink
hi all

anyone have an working example that using @Trnsactional in
S2/Spring/Hibernate combination of Appfuse

i want to know, how the JTA work in S2/Spring/Hibernate

i hear about using annonation @TRansactional

thx


--
Frans Thamura
Meruvian.
Experiential Tempation of Java and Enterprise OpenSource

Meruvian bukan hanya membuat anak SMK menjadi bisa tapi SAKTI, malah
saktinya SAKTI Mandraguna.


Mobile: +62 855 7888 699
Blog & Profile: http://frans.thamura.info

We provide services to migrate your apps to Java (web), in amazing
fast and reliable.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mraible

Re: @TRansactional

Reply Threaded More More options
Print post
Permalink
Please send AppFuse questions to the user list. Since your question is fairly easy, I'll answer it here. AppFuse uses transactions right now on all it's service class methods. From applicationContext-service.xml:

    <aop:config>
        <aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(* *..service.*Manager.*(..))" order="2"/>
    </aop:config>
   
    <!-- Enable @Transactional support -->
    <tx:annotation-driven/>
   
    <tx:advice id="txAdvice">
        <tx:attributes>
            <!-- Read-only commented out to make things easier for end-users -->
            <!-- http://issues.appfuse.org/browse/APF-556 -->
            <!--tx:method name="get*" read-only="true"/-->
            <tx:method name="*"/>
        </tx:attributes>
    </tx:advice>

Hope this helps,

Matt

On Tue, Aug 18, 2009 at 2:34 PM, Frans Thamura <[hidden email]> wrote:
hi all

anyone have an working example that using @Trnsactional in
S2/Spring/Hibernate combination of Appfuse

i want to know, how the JTA work in S2/Spring/Hibernate

i hear about using annonation @TRansactional

thx


--
Frans Thamura
Meruvian.
Experiential Tempation of Java and Enterprise OpenSource

Meruvian bukan hanya membuat anak SMK menjadi bisa tapi SAKTI, malah
saktinya SAKTI Mandraguna.


Mobile: +62 855 7888 699
Blog & Profile: http://frans.thamura.info

We provide services to migrate your apps to Java (web), in amazing
fast and reliable.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]