Announcement Announcement Module
No announcement yet.
JPA vs Hibernate, multiple data source Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JPA vs Hibernate, multiple data source


    I have started a new project and I chose Struts2 +Spring + JPA Hibernate.
    within a week's time I came up with the requirement for creating a data pump from one data source to another. I have had a tough time in getting the code to work. As long as I was Working with One Data Source it was easy. but with two Iwas lost.

    I had created 2 persistence units and defined the connection properties in two persistence .xml files . I created two emf's and two transaction managers. I used One with The Tx annotation driven transaction manager tag and preferred to apply aop to the other set of classes which was specific in point.
    But I ended up with a head wringing runtime exception that entitymanagerfactory not found..

    My question is , Since I have not gone into deeper waters as yet. Should I go Bact to Spring Dao SUpport or hibernate transactions or should I continue with JPA implementation

    Please help