• 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
  • XebiCon 2012

Categories

  • Java (312)
  • Agile (192)
  • General (141)
  • Scrum (70)
  • Testing (65)
  • Architecture (65)
  • Performance (47)
  • Middleware (59)
    • Deployment (40)
  • Xebia Labs (41)
  • SOA (31)
  • Project Management (31)
  • Podcast (31)
  • Tools (28)
  • Uncategorized (24)
  • lean architecture (20)
  • Quality Assurance (19)
  • Articles (15)
  • Requirements Management (14)
  • Virtualization (21)

Tag Cloud

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

Archives

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