Results 1 to 2 of 2

Thread: UserTransaction class in standalone app

  1. #1
    Join Date
    May 2009
    Posts
    16

    Default UserTransaction class in standalone app

    Hello,

    I am building a spring batch stand alone application. This app communicates with multiple data bases so had to use JTA Transaction manager.
    Code:
    <bean id="transactionManager"  			class="org.springframework.transaction.jta.JtaTransactionManager">
    <property name="userTransaction">
            <bean class="??????"/>
        </property>
    however I am wondering what userTrancation class could be used in such circumstances.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    If you want to set it is generally a UserTransaction retrieved from the app server. If you use some standalone provider I suggest you check the documentation of that provider.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •