Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Spring 3.0.6+Eclipselink2.4.0 persist/insert is not working
Spring 3.0.6+Eclipselink2.4.0 persist/insert is not working [message #897418] Tue, 24 July 2012 00:53 Go to next message
Eclipse UserFriend
Hello,


I am using Spring306 + EclipseLink240 to manage entity on a MySql database. Select object from db works fine but when I try to persist one, nothing happens. Program executes correctly and no exception are thrown. I probably did something wrong, as I'm not familiar with Spring, thanks for your comments and suggestions

see my attachment for my code
  • Attachment: Context.xml
    (Size: 4.91KB, Downloaded 400 times)
  • Attachment: Persistence.xml
    (Size: 1.57KB, Downloaded 512 times)
  • Attachment: UserDao.java
    (Size: 2.42KB, Downloaded 497 times)
  • Attachment: User.java
    (Size: 10.14KB, Downloaded 512 times)
  • Attachment: UserPK.java
    (Size: 1.69KB, Downloaded 382 times)

[Updated on: Tue, 24 July 2012 01:35] by Moderator

Re: Spring 3.0.6+Eclipselink2.4.0 persist/insert is not working [message #899661 is a reply to message #897418] Wed, 01 August 2012 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Check that your Spring transaction is being committed and is integrated with your persistence unit correctly.

Set logging on finest in EclipseLink to determine what is occurring. My guess is that the EntityManager's transaction is never committed.
Re: Spring 3.0.6+Eclipselink2.4.0 persist/insert is not working [message #899707 is a reply to message #899661] Wed, 01 August 2012 23:32 Go to previous message
Eclipse UserFriend
Thank James,
i found solution for my case it because my spring transaction configuration is the mode="aspectj",
i change to :

<tx:annotation-driven transaction-manager="tmMySql"/>


it work smoothly...
Previous Topic:EntityManager and Multi-threading design question
Next Topic:EclipseLink + Foxpro
Goto Forum:
  


Current Time: Tue Jul 01 15:10:16 EDT 2025

Powered by FUDForum. Page generated in 0.03180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top