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...
Type: Posts; User: scarlettxu; Keyword(s):
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...
Thanks to Rishishehrawat!
yes, can specified by unitName.
in applicationContext.xml
<bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource"...
for configuration, you can reference this
http://www.springsourcery.org/springSourcery/content/viewContent,1,23.html?random=7262
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...
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...
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...
Have you got any solution? I meet the same thing as you.
HI, Have you solved this problem? I think I have the same scenario as you.
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...
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...
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.
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...