camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > EJB
Date Tue, 01 Jun 2010 07:08:00 GMT
<html>
<head>
    <base href="http://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="http://cwiki.apache.org/confluence/display/CAMEL/EJB">EJB</a></h2>
    <h4>Page  <b>added</b> by             <a href="http://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h2><a name="EJB-EJBComponent"></a>EJB Component</h2>
<p><b>Available as of Camel 2.4</b></p>

<p>The <b>ejb:</b> component binds EJBs to Camel message exchanges.</p>

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

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
ejb:ejbName[?options]
</pre>
</div></div>
<p>Where <b>ejbName</b> can be any string which is used to look up the EJB
in the Application Server JNDI <a href="/confluence/display/CAMEL/Registry" title="Registry">Registry</a></p>

<h3><a name="EJB-Options"></a>Options</h3>
<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Default </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> <tt>method</tt> </td>
<td class='confluenceTd'> <tt>String</tt> </td>
<td class='confluenceTd'> <tt>null</tt> </td>
<td class='confluenceTd'> The method name that bean will be invoked. If not provided,
Camel will try to pick the method itself. In case of ambiguity an exception is thrown. See
<a href="/confluence/display/CAMEL/Bean+Binding" title="Bean Binding">Bean Binding</a>
for more details. </td>
</tr>
<tr>
<td class='confluenceTd'> <tt>multiParameterArray</tt> </td>
<td class='confluenceTd'> <tt>boolean</tt> </td>
<td class='confluenceTd'> <tt>false</tt> </td>
<td class='confluenceTd'> How to treat the parameters which are passed from the message
body; if it is <tt>true</tt>, the In message body should be an array of parameters.
</td>
</tr>
</tbody></table>
</div>


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

<p>The <a href="/confluence/display/CAMEL/EJB" title="EJB">EJB</a> component
extends the <a href="/confluence/display/CAMEL/Bean" title="Bean">Bean</a> component
in which most of the details from the <a href="/confluence/display/CAMEL/Bean" title="Bean">Bean</a>
component applies to this component as well.</p>

<h3><a name="EJB-BeanBinding"></a>Bean Binding</h3>

<p>How bean methods to be invoked are chosen (if they are not specified explicitly through
the <b>method</b> parameter) and how parameter values are constructed from the
<a href="/confluence/display/CAMEL/Message" title="Message">Message</a> are all
defined by the <a href="/confluence/display/CAMEL/Bean+Binding" title="Bean Binding">Bean
Binding</a> mechanism which is used throughout all of the various <a href="/confluence/display/CAMEL/Bean+Integration"
title="Bean Integration">Bean Integration</a> mechanisms in Camel.</p>

<h3><a name="EJB-Examples"></a>Examples</h3>

<p>TODO: A couple of examples</p>

<h3><a name="EJB-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>
	<li><a href="/confluence/display/CAMEL/Bean" title="Bean">Bean</a></li>
	<li><a href="/confluence/display/CAMEL/Bean+Binding" title="Bean Binding">Bean
Binding</a></li>
	<li><a href="/confluence/display/CAMEL/Bean+Integration" title="Bean Integration">Bean
Integration</a></li>
</ul>

    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="http://cwiki.apache.org/confluence/display/CAMEL/EJB">View Online</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/CAMEL/EJB?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message