camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > JPA
Date Tue, 15 Nov 2011 14:48:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/JPA">JPA</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >| {{consumer.nativeQuery}} | | *JPA
consumer only:* To use a custom native query when consuming data. | <br>| {{consumer.resultClass}}
| | *Camel 2.7: JPA consumer only:* Defines the type of the returned payload (we will call
{{entityManager.createNativeQuery(nativeQuery, resultClass)}} instead of {{entityManager.createNativeQuery(nativeQuery)}}).
Without this option, we will return an object array. Only has an affect when using in conjunction
with native query when consuming data. | <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">|
{{consumer.transacted}} | {{false}} | *Camel 2.7.5/2.8.3/2.9: JPA consumer only:* Whether
to run the consumer in transacted mode, by which all messages will either commit or rollback,
when the entire batch has been processed. The default behavior (false) is to commit all the
previously successfully processed messages, and only rollback the last failed message. | <br></td></tr>
            <tr><td class="diff-unchanged" >| {{usePersist}} | {{false}} | *Camel
2.5: JPA producer only:* Indicates to use {{entityManager.persist(entity)}} instead of {{entityManager.merge(entity)}}.
Note: {{entityManager.persist(entity)}} doesn&#39;t work for detached entities (where
the EntityManager has to execute an UPDATE instead of an INSERT query)! | <br>{div}
<br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="JPA-JPAComponent"></a>JPA Component</h2>

<p>The <b>jpa</b> component enables you to store and retrieve Java objects
from persistent storage using EJB 3's Java Persistence Architecture (JPA), which is a standard
interface layer that wraps Object/Relational Mapping (ORM) products such as OpenJPA, Hibernate,
TopLink, and so on.</p>

<p>Maven users will need to add the following dependency to their <tt>pom.xml</tt>
for this component:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;dependency&gt;</span>
    <span class="code-tag">&lt;groupId&gt;</span>org.apache.camel<span
class="code-tag">&lt;/groupId&gt;</span>
    <span class="code-tag">&lt;artifactId&gt;</span>camel-jpa<span
class="code-tag">&lt;/artifactId&gt;</span>
    <span class="code-tag">&lt;version&gt;</span>x.x.x<span class="code-tag">&lt;/version&gt;</span>
    <span class="code-tag"><span class="code-comment">&lt;!-- use the same
version as your Camel core version --&gt;</span></span>
<span class="code-tag">&lt;/dependency&gt;</span>
</pre>
</div></div>

<h3><a name="JPA-Sendingtotheendpoint"></a>Sending to the endpoint</h3>

<p>You can store a Java entity bean in a database by sending it to a JPA producer endpoint.
The body of the <em>In</em> message is assumed to be an entity bean (that is,
a POJO with an <a href="http://java.sun.com/javaee/5/docs/api/javax/persistence/Entity.html"
class="external-link" rel="nofollow">@Entity</a> annotation on it) or a collection
or array of entity beans. </p>

<p>If the body does not contain one of the previous listed types, put a <a href="/confluence/display/CAMEL/Message+Translator"
title="Message Translator">Message Translator</a> in front of the endpoint to perform
the necessary conversion first.</p>

<h3><a name="JPA-Consumingfromtheendpoint"></a>Consuming from the endpoint</h3>

<p>Consuming messages from a JPA consumer endpoint removes (or updates) entity beans
in the database. This allows you to use a database table as a logical queue: consumers take
messages from the queue and then delete/update them to logically remove them from the queue.</p>

<p>If you do not wish to delete the entity bean when it has been processed, you can
specify <tt>consumeDelete=false</tt> on the URI. This will result in the entity
being processed each poll.</p>

<p>If you would rather perform some update on the entity to mark it as processed (such
as to exclude it from a future query) then you can annotate a method with <a href="http://camel.apache.org/maven/current/camel-jpa/apidocs/org/apache/camel/component/jpa/Consumed.html"
class="external-link" rel="nofollow">@Consumed</a> which will be invoked on your
entity bean when the entity bean is consumed.</p>

<h3><a name="JPA-URIformat"></a>URI format</h3>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
jpa:[entityClassName][?options]
</pre>
</div></div>

<p>For sending to the endpoint, the <em>entityClassName</em> is optional.
If specified, it helps the <a href="/confluence/display/CAMEL/Type+Converter" title="Type
Converter">Type Converter</a> to ensure the body is of the correct type.</p>

<p>For consuming, the <em>entityClassName</em> is mandatory.</p>

<p>You can append query options to the URI in the following format, <tt>?option=value&amp;option=value&amp;...</tt></p>

<h3><a name="JPA-Options"></a>Options</h3>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Default Value </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>entityType</tt> </td>
<td class='confluenceTd'> <em>entityClassName</em> </td>
<td class='confluenceTd'> Overrides the <em>entityClassName</em> from the
URI. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>persistenceUnit</tt> </td>
<td class='confluenceTd'> <tt>camel</tt> </td>
<td class='confluenceTd'> The JPA persistence unit used by default. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumeDelete</tt> </td>
<td class='confluenceTd'> <tt>true</tt> </td>
<td class='confluenceTd'> <b>JPA consumer only:</b> If <tt>true</tt>,
the entity is deleted after it is consumed; if <tt>false</tt>, the entity is not
deleted. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumeLockEntity</tt> </td>
<td class='confluenceTd'> <tt>true</tt> </td>
<td class='confluenceTd'> <b>JPA consumer only:</b> Specifies whether or
not to set an exclusive lock on each entity bean while processing the results from polling.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>flushOnSend</tt> </td>
<td class='confluenceTd'> <tt>true</tt> </td>
<td class='confluenceTd'> <b>JPA producer only:</b> Flushes the <a href="http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html"
class="external-link" rel="nofollow">EntityManager</a> after the entity bean has
been persisted. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>maximumResults</tt> </td>
<td class='confluenceTd'> <tt>-1</tt> </td>
<td class='confluenceTd'>  <b>JPA consumer only:</b> Set the maximum number
of results to retrieve on the <a href="http://java.sun.com/javaee/5/docs/api/javax/persistence/Query.html"
class="external-link" rel="nofollow">Query</a>. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>transactionManager</tt> </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> <b>Camel 1.6.1/2.0:</b> Specifies the transaction
manager to use. If none provided, Camel will use a <tt>JpaTransactionManager</tt>
by default. Can be used to set a JTA transaction manager (for integration with an EJB container).
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.delay</tt> </td>
<td class='confluenceTd'> <tt>500</tt> </td>
<td class='confluenceTd'> <b>JPA consumer only:</b> Delay in milliseconds
between each poll. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.initialDelay</tt> </td>
<td class='confluenceTd'> <tt>1000</tt> </td>
<td class='confluenceTd'> <b>JPA consumer only:</b> Milliseconds before
polling starts. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.useFixedDelay</tt> </td>
<td class='confluenceTd'> <tt>false</tt> </td>
<td class='confluenceTd'> <b>JPA consumer only:</b> Set to <tt>true</tt>
to use fixed delay between polls, otherwise fixed rate is used. See <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ScheduledExecutorService.html"
class="external-link" rel="nofollow">ScheduledExecutorService</a> in JDK for details.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>maxMessagesPerPoll</tt> </td>
<td class='confluenceTd'> <tt>0</tt> </td>
<td class='confluenceTd'> <b>Camel 2.0:</b> <b>JPA consumer only:</b>
An integer value to define the maximum number of messages to gather per poll. By default,
no maximum is set. Can be used to avoid polling many thousands of messages when starting up
the server. Set a value of 0 or negative to disable. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.query</tt> </td>
<td class='confluenceTd'>&nbsp;</td>
<td class='confluenceTd'> <b>JPA consumer only:</b> To use a custom query
when consuming data. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.namedQuery</tt> </td>
<td class='confluenceTd'>&nbsp;</td>
<td class='confluenceTd'> <b>JPA consumer only:</b> To use a named query
when consuming data. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.nativeQuery</tt> </td>
<td class='confluenceTd'>&nbsp;</td>
<td class='confluenceTd'> <b>JPA consumer only:</b> To use a custom native
query when consuming data. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.resultClass</tt> </td>
<td class='confluenceTd'>&nbsp;</td>
<td class='confluenceTd'> <b>Camel 2.7: JPA consumer only:</b> Defines the
type of the returned payload (we will call <tt>entityManager.createNativeQuery(nativeQuery,
resultClass)</tt> instead of <tt>entityManager.createNativeQuery(nativeQuery)</tt>).
Without this option, we will return an object array. Only has an affect when using in conjunction
with native query when consuming data. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.transacted</tt> </td>
<td class='confluenceTd'> <tt>false</tt> </td>
<td class='confluenceTd'> <b>Camel 2.7.5/2.8.3/2.9: JPA consumer only:</b>
Whether to run the consumer in transacted mode, by which all messages will either commit or
rollback, when the entire batch has been processed. The default behavior (false) is to commit
all the previously successfully processed messages, and only rollback the last failed message.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>usePersist</tt> </td>
<td class='confluenceTd'> <tt>false</tt> </td>
<td class='confluenceTd'> <b>Camel 2.5: JPA producer only:</b> Indicates
to use <tt>entityManager.persist(entity)</tt> instead of <tt>entityManager.merge(entity)</tt>.
Note: <tt>entityManager.persist(entity)</tt> doesn't work for detached entities
(where the EntityManager has to execute an UPDATE instead of an INSERT query)! </td>
</tr>
</tbody></table>
</div>
</div>

<h3><a name="JPA-MessageHeaders"></a>Message Headers</h3>
<p>Camel adds the following message headers to the exchange:</p>
<div class="confluenceTableSmall"><div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Header </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>CamelJpaTemplate</tt> </td>
<td class='confluenceTd'> <tt>JpaTemplate</tt> </td>
<td class='confluenceTd'> <b>Camel 2.0:</b> The <tt>JpaTemplate</tt>
object that is used to access the entity bean. You need this object in some situations, for
instance in a type converter or when you are doing some custom processing. </td>
</tr>
</tbody></table>
</div>
</div>

<h3><a name="JPA-ConfiguringEntityManagerFactory"></a>Configuring EntityManagerFactory</h3>
<p>Its strongly advised to configure the JPA component to use a specific <tt>EntityManagerFactory</tt>
instance. If failed to do so each <tt>JpaEndpoint</tt> will auto create their
own instance of <tt>EntityManagerFactory</tt> which most often is not what you
want.</p>

<p>For example, you can instantiate a JPA component that references the <tt>myEMFactory</tt>
entity manager factory, as follows:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;bean id=<span class="code-quote">"jpa"</span>
class=<span class="code-quote">"org.apache.camel.component.jpa.JpaComponent"</span>&gt;</span>
   <span class="code-tag">&lt;property name=<span class="code-quote">"entityManagerFactory"</span>
ref=<span class="code-quote">"myEMFactory"</span>/&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span>
</pre>
</div></div>

<p>In <b>Camel 2.3</b> the <tt>JpaComponent</tt> will auto lookup
the <tt>EntityManagerFactory</tt> from the <a href="/confluence/display/CAMEL/Registry"
title="Registry">Registry</a> which means you do not need to configure this on the
<tt>JpaComponent</tt> as shown above. You only need to do so if there is ambiguity,
in which case Camel will log a WARN.</p>

<h3><a name="JPA-ConfiguringTransactionManager"></a>Configuring TransactionManager</h3>
<p>Its strongly advised to configure the <tt>TransactionManager</tt> instance
used by the JPA component. If failed to do so each <tt>JpaEndpoint</tt> will auto
create their own instance of <tt>TransactionManager</tt> which most often is not
what you want.</p>

<p>For example, you can instantiate a JPA component that references the <tt>myTransactionManager</tt>
transaction manager, as follows:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;bean id=<span class="code-quote">"jpa"</span>
class=<span class="code-quote">"org.apache.camel.component.jpa.JpaComponent"</span>&gt;</span>
   <span class="code-tag">&lt;property name=<span class="code-quote">"entityManagerFactory"</span>
ref=<span class="code-quote">"myEMFactory"</span>/&gt;</span>
   <span class="code-tag">&lt;property name=<span class="code-quote">"transactionManager"</span>
ref=<span class="code-quote">"myTransactionManager"</span>/&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span>
</pre>
</div></div>

<p>In <b>Camel 2.3</b> the <tt>JpaComponent</tt> will auto lookup
the <tt>TransactionManager</tt> from the <a href="/confluence/display/CAMEL/Registry"
title="Registry">Registry</a> which means you do not need to configure this on the
<tt>JpaComponent</tt> as shown above. You only need to do so if there is ambiguity,
in which case Camel will log a WARN.</p>

<h3><a name="JPA-Usingaconsumerwithanamedquery"></a>Using a consumer with
a named query</h3>
<p>For consuming only selected entities, you can use the <tt>consumer.namedQuery</tt>
URI query option. First, you have to define the named query in the JPA Entity class:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
@Entity
@NamedQuery(name = <span class="code-quote">"step1"</span>, query = <span class="code-quote">"select
x from MultiSteps x where x.step = 1"</span>)
<span class="code-keyword">public</span> class MultiSteps {
   ...
}
</pre>
</div></div>

<p>After that you can define a consumer uri like this one:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
from(<span class="code-quote">"jpa:<span class="code-comment">//org.apache.camel.examples.MultiSteps?consumer.namedQuery=step1"</span>)
</span>.to(<span class="code-quote">"bean:myBusinessLogic"</span>);
</pre>
</div></div>

<h3><a name="JPA-Usingaconsumerwithaquery"></a>Using a consumer with a query</h3>
<p>For consuming only selected entities, you can use the <tt>consumer.query</tt>
URI query option. You only have to define the query option:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
from(<span class="code-quote">"jpa:<span class="code-comment">//org.apache.camel.examples.MultiSteps?consumer.query=select
o from org.apache.camel.examples.MultiSteps o where o.step = 1"</span>)
</span>.to(<span class="code-quote">"bean:myBusinessLogic"</span>);
</pre>
</div></div>

<h3><a name="JPA-Usingaconsumerwithanativequery"></a>Using a consumer with
a native query</h3>
<p>For consuming only selected entities, you can use the <tt>consumer.nativeQuery</tt>
URI query option. You only have to define the native query option:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
from(<span class="code-quote">"jpa:<span class="code-comment">//org.apache.camel.examples.MultiSteps?consumer.nativeQuery=select
* from MultiSteps where step = 1"</span>)
</span>.to(<span class="code-quote">"bean:myBusinessLogic"</span>);
</pre>
</div></div>

<p>If you use the native query option, you will receive an object array in the message
body.</p>

<h3><a name="JPA-Example"></a>Example</h3>
<p>See <a href="/confluence/display/CAMEL/Tracer+Example" title="Tracer Example">Tracer
Example</a> for an example using <a href="/confluence/display/CAMEL/JPA" title="JPA">JPA</a>
to store traced messages into a database.</p>

<h3><a name="JPA-UsingtheJPAbasedidempotentrepository"></a>Using the JPA
based idempotent repository</h3>
<p>In this section we will use the JPA based idempotent repository.</p>

<p>First we need to setup a <tt>persistence-unit</tt> in the persistence.xml
file:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml"><span class="code-tag">&lt;persistence-unit name=<span
class="code-quote">"idempotentDb"</span> transaction-type=<span class="code-quote">"RESOURCE_LOCAL"</span>&gt;</span>
  <span class="code-tag">&lt;class&gt;</span>org.apache.camel.processor.idempotent.jpa.MessageProcessed<span
class="code-tag">&lt;/class&gt;</span>

  <span class="code-tag">&lt;properties&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"openjpa.ConnectionURL"</span>
value=<span class="code-quote">"jdbc:derby:target/idempotentTest;create=true"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"openjpa.ConnectionDriverName"</span>
value=<span class="code-quote">"org.apache.derby.jdbc.EmbeddedDriver"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"openjpa.jdbc.SynchronizeMappings"</span>
value=<span class="code-quote">"buildSchema"</span>/&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"openjpa.Log"</span>
value=<span class="code-quote">"DefaultLevel=WARN, Tool=INFO"</span>/&gt;</span>
  <span class="code-tag">&lt;/properties&gt;</span>
<span class="code-tag">&lt;/persistence-unit&gt;</span>
</pre>
</div></div>

<p>Second we have to setup a <tt>org.springframework.orm.jpa.JpaTemplate</tt>
which is used by the <tt>org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository</tt>:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml"><span class="code-tag"><span class="code-comment">&lt;!--
this is standard spring JPA configuration --&gt;</span></span>
<span class="code-tag">&lt;bean id=<span class="code-quote">"jpaTemplate"</span>
class=<span class="code-quote">"org.springframework.orm.jpa.JpaTemplate"</span>&gt;</span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"entityManagerFactory"</span>
ref=<span class="code-quote">"entityManagerFactory"</span>/&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span>

<span class="code-tag">&lt;bean id=<span class="code-quote">"entityManagerFactory"</span>
class=<span class="code-quote">"org.springframework.orm.jpa.LocalEntityManagerFactoryBean"</span>&gt;</span>
    <span class="code-tag"><span class="code-comment">&lt;!-- we use idempotentDB
as the persitence unit name defined in the persistence.xml file --&gt;</span></span>
    <span class="code-tag">&lt;property name=<span class="code-quote">"persistenceUnitName"</span>
value=<span class="code-quote">"idempotentDb"</span>/&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span>
</pre>
</div></div>

<p>Afterwards we can configure our <tt>org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository</tt>:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml"><span class="code-tag"><span class="code-comment">&lt;!--
we define our jpa based idempotent repository we want to use in the file consumer --&gt;</span></span>
<span class="code-tag">&lt;bean id=<span class="code-quote">"jpaStore"</span>
class=<span class="code-quote">"org.apache.camel.processor.idempotent.jpa.JpaMessageIdRepository"</span>&gt;</span>
    <span class="code-tag"><span class="code-comment">&lt;!-- Here we refer
to the spring jpaTemplate --&gt;</span></span>
    <span class="code-tag">&lt;constructor-arg index=<span class="code-quote">"0"</span>
ref=<span class="code-quote">"jpaTemplate"</span>/&gt;</span>
    &lt;!-- This 2nd parameter is the name  (= a cateogry name).
         You can have different repositories with different names --&gt;
    <span class="code-tag">&lt;constructor-arg index=<span class="code-quote">"1"</span>
value=<span class="code-quote">"FileConsumer"</span>/&gt;</span>
<span class="code-tag">&lt;/bean&gt;</span>
</pre>
</div></div>

<p>And finally we can create our JPA idempotent repository in the spring XML file as
well:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;camel:camelContext&gt;</span>	
    <span class="code-tag">&lt;camel:route id=<span class="code-quote">"JpaMessageIdRepositoryTest"</span>&gt;</span>
        <span class="code-tag">&lt;camel:from uri=<span class="code-quote">"direct:start"</span>
/&gt;</span>
        <span class="code-tag">&lt;camel:idempotentConsumer messageIdRepositoryRef=<span
class="code-quote">"jpaStore"</span>&gt;</span>
            <span class="code-tag">&lt;camel:header&gt;</span>messageId<span
class="code-tag">&lt;/camel:header&gt;</span>
            <span class="code-tag">&lt;camel:to uri=<span class="code-quote">"mock:result"</span>
/&gt;</span>
        <span class="code-tag">&lt;/camel:idempotentConsumer&gt;</span>
    <span class="code-tag">&lt;/camel:route&gt;</span>
<span class="code-tag">&lt;/camel:camelContext&gt;</span>
</pre>
</div></div>

<h3><a name="JPA-SeeAlso"></a>See Also</h3>
<ul>
	<li><a href="/confluence/display/CAMEL/Configuring+Camel" title="Configuring Camel">Configuring
Camel</a></li>
	<li><a href="/confluence/display/CAMEL/Component" title="Component">Component</a></li>
	<li><a href="/confluence/display/CAMEL/Endpoint" title="Endpoint">Endpoint</a></li>
	<li><a href="/confluence/display/CAMEL/Getting+Started" title="Getting Started">Getting
Started</a></li>
</ul>

<ul class="alternate" type="square">
	<li><a href="/confluence/display/CAMEL/Tracer+Example" title="Tracer Example">Tracer
Example</a></li>
</ul>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/JPA">View Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=52099&revisedVersion=34&originalVersion=33">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/JPA?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message