camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Db4o
Date Wed, 06 Oct 2010 17:17:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/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/Db4o">Db4o</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~hekonsek">Henryk
Konsek</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h2><a name="Db4o-Db4oComponent"></a>Db4o Component</h2>

<p>The <b>db4o:</b> component allows you to work with <a href="http://www.db4o.com"
class="external-link" rel="nofollow">db4o</a> NoSQL database. The camel-db4o library
is provided by the <a href="http://code.google.com/p/camel-extra/" class="external-link"
rel="nofollow">Camel Extra</a> project which hosts all *GPL related components for
Camel.</p>

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

<p>Sending POJO object to the db4o endpoint adds and saves object into the database.
The body of the message is assumed to be a POJO that has to be saved into the db40 database
store.</p>

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

<p>Consuming messages removes (or updates) POJO objects in the database. This allows
you to use a Db4o datastore as a logical queue; consumers take messages from the queue and
then delete them to logically remove them from the queue.</p>

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

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

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

<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="Db4o-Options"></a>Options</h3>

<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>consumeDelete</tt> </td>
<td class='confluenceTd'> <tt>true</tt> </td>
<td class='confluenceTd'>	Option for <tt>Db4oConsumer</tt> only. Specifies
whether or not the entity is deleted after it is consumed.</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.delay</tt> </td>
<td class='confluenceTd'> <tt>500</tt> </td>
<td class='confluenceTd'> Option for HibernateConsumer only. Delay in millis between
each poll. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.initialDelay</tt> </td>
<td class='confluenceTd'> <tt>1000</tt> </td>
<td class='confluenceTd'> Option for HibernateConsumer only. Millis before polling starts.
</td>
</tr>
<tr>
<td class='confluenceTd'> <tt>consumer.userFixedDelay</tt> </td>
<td class='confluenceTd'> <tt>false</tt> </td>
<td class='confluenceTd'> Option for HibernateConsumer only. 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>
</tbody></table>
</div>


<h3><a name="Db4o-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>

    </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/Db4o">View Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CAMEL/Db4o?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message