This content has been marked as final.
Show 5 replies
-
1. Re: Also multiple datasource problem
kingdom119 Nov 12, 2008 3:32 PM (in response to kingdom119)Any body help?
-
2. Re: Also multiple datasource problem
kingdom119 Nov 12, 2008 3:34 PM (in response to kingdom119)I found my problem is the entityManagerAdls dose not have transaction, i try to do the same thing as entityManager like below
<transaction:entity-transaction entity-manager="#{entityManagerAdls}" />
but there will be exception. So how can not enable the transaction ability to entityManagerAdls?
-
3. Re: Also multiple datasource problem
sjmenden Nov 12, 2008 6:10 PM (in response to kingdom119)You should really consider using xa datasources, then you wouldn't have all the mess you are dealing with now.
-
4. Re: Also multiple datasource problem
dustismo Nov 12, 2008 6:50 PM (in response to kingdom119)If you don't want to use XA-Datasources, you need to change jta-data-source to non-jta-data-source.
-Dustin
-
5. Re: Also multiple datasource problem
kingdom119 Nov 13, 2008 9:20 AM (in response to kingdom119)
dustin norlander wrote on Nov 12, 2008 18:50:
If you don't want to use XA-Datasources, you need to change jta-data-source to non-jta-data-source.
-DustinThanks for your response.
if i use like this, i still can not add transaction to entityManagerFactoryAdls, how can i enable transaction to it?