• Home
  • RSS Feed
  • Register
  • Log in

Archive for the ‘JTA’ Category

Configuring Hibernate and Spring for JTA
Posted by Maarten Winkels mid-afternoon: July 18th, 2008

Spring is a great framework for dependency injection and it comes with a lot of support classes and utilities for all kind of things. Hibernate is a persistence service with a lot of useful features, that is relatively easy to use. Configuring both frameworks is not always easy. Configuring them together is sometimes hard and it is easy to make mistakes.

This blog addresses a problem in a configuration that is fairly common: use Spring for transaction management on top of a JTA provider and use Hibernate for persistence. Transaction demarcation is easy and declarative with Spring. The problem is that Hibernate sometimes needs to detect the current transaction and this needs to be configured. This leads to hard to detect bugs in applications that rely on auto flushing.
(more...)

  • Bookmark

Tags: auto flush, Hibernate, JTA, Spring
Filed under Hibernate, JTA, Spring | 2 Comments »

Files in a distributed transaction
Posted by Meindert Deen around lunchtime: September 25th, 2007

At a client we are now using files and datasources together. We want the write actions to the database and the files to be in one transaction. We want this because the files represent the database data for legacy applications. As there is no distributed transaction API for files which is JTA (Java Transaction API) compatible we had to find a solution to implement this. This post describes the (big) steps we did and the solution we found. Of course, you can skip the steps and go straight to the solution. ;-)
(more...)

  • Bookmark

Filed under Hibernate, JTA, Java, Testing | 2 Comments »



Archives

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

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Categories

  • Java (235)
  • Agile (101)
  • General (50)
  • Performance (37)
  • Hibernate (35)
  • Podcast (31)
  • Testing (30)
  • Scrum (28)
  • Spring (24)
  • Project Management (22)
  • Architecture (22)
  • SOA (19)
  • Flex (17)
  • Maven (15)
  • Eclipse (14)
  • JPA (13)
  • Quality Assurance (12)
  • Groovy (12)
  • Articles (11)
  • Grails (11)

Tag Cloud

    Scrum Agile Testing Performance Java JavaOne Introduction to Agile Semantic Web qcon Lean Xebia Maven SOA IntelliJ Groovy distributed fitnesse Agile Awareness Workshop Poppendieck Ajax product owner Scala offshoring Seam Hibernate plugin sutherland offshore Closures Grails