Search:

Type: Posts; User: scarlettxu; Keyword(s):

Search: Search took 0.03 seconds.

  1. Understanding of the JTA transaction config in the Spring reference

    Hi experts,

    There is one words in the Spring reference:

    Actually, I cannot quites understand the last words and the configuration.
    does it mean the JTA configuration is the same in any...
  2. Thanks to Rishishehrawat!

    Thanks to Rishishehrawat!
  3. yes, can specified by unitName. in...

    yes, can specified by unitName.

    in applicationContext.xml

    <bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="dataSource"...
  4. Replies
    4
    Views
    6,140

    for configuration, you can reference this ...

    for configuration, you can reference this
    http://www.springsourcery.org/springSourcery/content/viewContent,1,23.html?random=7262
  5. Hi Ksrini, Thanks for your suggestion! The...

    Hi Ksrini,

    Thanks for your suggestion!

    The reason I use multi Thread is that in my application, we need to use another service ---- Drools' human task implementation. The DB access part is in...
  6. Thanks for your checking and reply! I think I...

    Thanks for your checking and reply!
    I think I will read the Spring reference manual about the ORM part clearly, and move the EMF configuration to applicationContext.xml. after I test ok, I will post...
  7. does Spring have solution of sharing transaction between multi threads

    We meet an scenario that work with multi thread.

    In the main Thread, do some logic and update the database, in a point, it will call another service to update database, which is run in another...
  8. Replies
    2
    Views
    1,076

    Have you got any solution? I meet the same thing...

    Have you got any solution? I meet the same thing as you.
  9. Replies
    1
    Views
    884

    HI, Have you solved this problem? I think I have...

    HI, Have you solved this problem? I think I have the same scenario as you.
  10. HI Dlmiles, When I tried to get the EM before...

    HI Dlmiles,

    When I tried to get the EM before begin transaction, seems the EM is not bound to the transaction.


    I config the transaction in applicationContext.xml as original post, I config...
  11. Thanks Dlmiles. Your suggestion is good for...

    Thanks Dlmiles.

    Your suggestion is good for me.
    I should get more understanding of JPA and Transaction.

    I am aware of that I have not made good use of JPA and Spring transaction strategy. That...
  12. Thanks for your reply! I am new to Spring, I...

    Thanks for your reply!
    I am new to Spring, I will learn how to use declarative transaction instead of programatic transaction, and use TransactionTemplate for local transaction.
  13. JtaTransactionManager cannot rollback all resources

    I use Spring JtaTransactionManager to manager the global transaction, BTM(Bitronix) as the JTA implementation, MySQL as the XA datasource, Hibernate as the JPA implementation.

    I use programmable...
Results 1 to 13 of 13