Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink + JTA: out of the container

You should not see any issues with RESOURCE_LOCAL transaction management. 
Check that you are maintaining both sides of your relationships, or include
more information on specific cases that are not working correctly.

I can't see JTA helping you at all, but to use JTA you must configure a
"eclipselink.target-server" to an EclipseLink ServerPlatform that integrates
with the JTA provider you are using.  You will need to create your own for
Atomikos and JOTM, as EclipseLink does not currently provide for these.

You could also use a SessionCustomizer to set a
ExternalTransactionController on your EclipseLink ServerSession (see
org.eclipse.persistence.transaction).


Mohsen Saboorian wrote:
> 
> Hi,
> We're trying to setup a JPA project with Tomcat. As we experienced a
> lot of difficulties with RESOURCE_LOCAL transaction management (there
> was many unexpected results: some entities not saved, some
> many-to-many links not persisted/deleted as they were supposed to,
> some updates not worked at all), we tried to switch to JTA transaction
> support model. As I know JTA should be supported out of a Java EE
> container with JPA, so I tried to set in up along with a 5.5.25 Tomcat
> server.
> 
> I setup JTA with both Atomikos and JOTM (based on their corresponding
> setup process). The problem is that although I can JNDI lookup() my
> jdbc/xa-connection manually when server is up, TopLink cannot look it
> up.
> 
> Since I was not sure that I'm setting up Atomikos properly, I switched
> to JTOM, again to no avail. Is there any example application, or
> tutorial on how to setup EclipseLink-JPA+JTA outside of a Java EE
> container. Unfortunately I wasn't able to find anything useful
> regarding this issue on the Internet.
> 
> Thanks in advance.
> Mohsen.
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/EclipseLink-%2B-JTA%3A-out-of-the-container-tp17289860p17340554.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top