• 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/Bookmark

Filed under Java, Oracle, Spring | 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



    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…



Leave a Reply

Click here to cancel reply.

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Archives

  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (282)
  • Agile (109)
  • General (50)
  • Testing (42)
  • Performance (42)
  • Hibernate (36)
  • Scrum (33)
  • Podcast (31)
  • Architecture (31)
  • Spring (28)
  • SOA (24)
  • Maven (22)
  • Project Management (22)
  • Middleware (23)
    • Deployment (14)
  • Flex (17)
  • JPA (17)
  • Eclipse (15)
  • Xebia Labs (15)
  • Quality Assurance (14)

Tag Cloud

    Semantic Web XML Groovy Functional Programming qcon Spring fitnesse Agile Awareness Workshop product owner Ajax Xebia JavaOne esb SOA Hibernate Agile Scala Grails Testing IntelliJ Closures Performance Lean Seam Scrum Maven Java Architecture Poppendieck Introduction to Agile