camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Camel > EJB
Date Tue, 01 Jun 2010 07:08: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="">EJB</a></h2>
    <h4>Page  <b>added</b> by             <a href="">Claus
    <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">
<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>
<th class='confluenceTh'> Name </th>
<th class='confluenceTh'> Type </th>
<th class='confluenceTh'> Default </th>
<th class='confluenceTh'> Description </th>
<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>
<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.

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

	<li><a href="/confluence/display/CAMEL/Bean" title="Bean">Bean</a></li>
	<li><a href="/confluence/display/CAMEL/Bean+Binding" title="Bean Binding">Bean
	<li><a href="/confluence/display/CAMEL/Bean+Integration" title="Bean Integration">Bean

    <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