...
The ejb: component binds EJBs to Camel message exchanges.
Maven users will need to add the following dependency to their pom.xml
for this component:
Code Block |
---|
|
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-ejb</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
|
URI format
Code Block |
---|
ejb:ejbName[?options]
|
Where ejbName can be any string which is used to look up the EJB in the Application Server JNDI Registry
Options
Div |
---|
class | confluenceTableSmall |
---|
|
Name | Type | Default | Description |
---|
method | String | null | 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 Bean Binding for more details. | multiParameterArray | boolean | false | How to treat the parameters which are passed from the message body; if it is true , the In message body should be an array of parameters. |
|
You can append query options to the URI in the following format, ?option=value&option=value&...
...
Wiki Markup |
---|
{snippet:id=e2|lang=xml|url=camel/trunk/components/camel-ejb/src/test/resources/org/apache/camel/component/ejb/SpringGreaterCamelEjbTest.xml} |
Include Page |
---|
| CAMEL:Endpoint See AlsoCAMEL: |
---|
| Endpoint See Also |
---|
|