Skip to content
This repository
branch: master

INTSAMPLES-127 Polishing

- PR Comments
- Switch to Jackson2
- Fix oxm config


INTSAMPLES-127 Update to SI 4.0.0.RC1

INTSAMPLES-127 Remove Servlet Dependency

travel sample; see INT-3350.

INTSAMPLES-127 Update Samples to SI 4.0.0


Created `maint` branch for ongoing SI 3.0.x samples.
latest commit cc579226d6
Gary Russell garyrussell authored April 01, 2014 artembilan committed April 16, 2014
Octocat-spinner-32 src INTSAMPLES-93 - Pollish the JPA Samples October 05, 2012
Octocat-spinner-32 INTSAMPLES-62 - Create JPA Samples June 05, 2012
Octocat-spinner-32 pom.xml INTSAMPLES-127 Polishing April 16, 2014

Spring Integration - JPA Sample


This sample illustrates how the JPA Components can be used. The example presented covers the following use cases

  • List all people from the database
  • Create a new Person record in the database

The first example demonstrates the use of an JPA Outbound gateway to retrieve a list of people. The second example uses an JPA Outbound Gateway in order to create a new Person record and then return the newly created Person record.

You have the option to choose between the following 3 persistence providers:

Getting Started

Hibernate works out of the box and there are 2 options on how to execute the sample:

  • running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
  • or from the command line:
    • mvn clean package
    • mvn exec:exec

For OpenJPA and EclipseLink to work, you must provide a Java Agent. When using the Maven Exec Plugin, this is taken care of for you behind the scenes automatically. However, when running the sample from within STS start the Main class with the following JVM flags:


With these flags you will be able to use all 3 persistence providers at once.


For help please take a look at the Spring Integration documentation:

Something went wrong with that request. Please try again.