anchor.diff:  
   *When running this Camel component tests inside your IDE*
   
  -In case you run the
  +If you run the
   https://svn.apache.org/repos/asf/camel/trunk/components/camel-jpa/src/test[tests
  -of this component] directly inside your IDE (and not necessarily through
  -Maven itself) then you could spot exceptions like:
  +of this component] directly inside your IDE, and not through
  +Maven, then you could see exceptions like these:
   
   [source,java]
   --------------------------------------------------------------------------------------------------------------------------------------------------------
  
positive.code: 
  ### Example
  
  See link:tracer-example.html[Tracer Example] for an example using
  link:jpa.html[JPA] to store traced messages into a database.
  
  ### Using the JPA based idempotent repository
  
  In this section we will use the JPA based idempotent repository.
  
  First we need to setup a `persistence-unit` in the persistence.xml file:
  
  Second we have to setup a `org.springframework.orm.jpa.JpaTemplate`
  which is used by the
  `org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository`:
  
  Error formatting macro: snippet: java.lang.IndexOutOfBoundsException:
  Index: 20, Size: 20
  
  Afterwards we can configure our
  `org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository`:
  
  And finally we can create our JPA idempotent repository in the spring
  XML file as well:
  
  [source,xml]
  ---------------------------------------------------------------
  
negative.code: -javaagent:<path_to_your_local_m2_cache>/org/apache/openjpa/openjpa/2.2.1/openjpa-2.2.1.jar
  -------------------------------------------------------------------------------------------
  
  
  
  ### See Also
  
  * link:http://camel.apache.org/configuring-camel.html[Configuring Camel]
  * link:http://camel.apache.org/component.html[Component]
  * link:http://camel.apache.org/endpoint.html[Endpoint]
  * link:http://camel.apache.org/getting-started.html[Getting Started]
  
  * link:http://camel.apache.org/tracer-example.html[Tracer Example]
  