camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Camel > Db4o
Date Wed, 06 Oct 2010 17:17:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
<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="">Db4o</a></h2>
    <h4>Page  <b>added</b> by             <a href="">Henryk
    <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=""
class="external-link" rel="nofollow">db4o</a> NoSQL database. The camel-db4o library
is provided by the <a href="" class="external-link"
rel="nofollow">Camel Extra</a> project which hosts all *GPL related components for

<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

<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">

<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>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Default Value </th>
<th class='confluenceTh'> Description </th>
<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>
<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>
<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 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=""
class="external-link" rel="nofollow">ScheduledExecutorService</a> in JDK for details.

<h3><a name="Db4o-SeeAlso"></a>See Also</h3>
	<li><a href="/confluence/display/CAMEL/Configuring+Camel" title="Configuring Camel">Configuring
	<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

    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
       <a href="">View Online</a>
       <a href=";showCommentArea=true#addcomment">Add

View raw message