• Home
  • RSS Feed
  • Log in


Article “Using Oracle TopLink with the Spring Framework” published on OTN
Posted by Lonneke Dikmans at around evening time: September 26th, 2006

Today the Oracle Technology Network published my article Using Oracle TopLink with the Spring Framework. In this article I explain step by step how to build a sample application using Spring 1.2.8 and Oracle TopLink with Oracle JDeveloper 10g.

JDeveloper has built in support for TopLink, but you can build the sample application with Eclipse as well. Download the sources and follow the steps in the article. Instead of editing the TopLink sessions in JDeveloper, edit the xml files in the Eclipse editor or the TopLink workbench.

Share

Tags: Oracle, Spring
Filed under Java | 2 Comments »



2 Responses to “Article “Using Oracle TopLink with the Spring Framework” published on OTN”



    Maarten Winkels Says:
    Posted at: September 27, 2006 at 10:39 am

    Lonneke,

    Interesting!
    One remark: I couldn’t find the calls to setComplete and endTransaction that you refer to in the article in the source code attached. I was triggered to look for these methods, because in our project we do not use this technique. With Spring managed transactions you can make the JdbcTemplate and the Dao’s share the same transaction, this works for Hibernate, does it for TopLink? See Spring’s TransactionAwareDataSourceProxy and setUseTransactionAwareDataSource methods.

    Regards,

    -Maarten Winkels

    Reply


    Lonneke Dikmans Says:
    Posted at: September 27, 2006 at 8:06 pm

    Thanks for the observation: it seems that the wrong version of the sample application was put on the website. It has been corrected, please try and download the sources again.

    To answer your question: sharing the transaction between a jdbcTemplate and TopLinkDAO should work fine. In my example I don’t have any transactions in my unittest configuration. The AbstractTransactionalDataSourceSpringContextTests takes care of the transactions in the testcases. That gives you a hook to test the behaviour of the DAO’s when certain situations occur. For example the unexpected ending of a transaction…

    Reply


Leave a Reply

Click here to cancel reply.


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    Oracle product owner Architecture Lean lean architecture Grails agile architectuur Java Hibernate SOA JPA implementation patterns lean architectuur Groovy Xebia JPA Javascript Concurrency Control Agile ACT Scrum TDD Scala Eclipse XML Ajax Moving to India Frameworks Spring Flex Maven

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures