camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Lacerda <bsl.lace...@gmail.com>
Subject Is it poossible, start a route from an EJB endpoint?
Date Sat, 05 Sep 2015 15:19:07 GMT
Hello,

I'm a Camel newbie looking for some help.

I'd like to know if is possible to start a camel spring route from an EJB
endpoint.

For example:

...
<route>
  <from uri="ejb:MyServiceBean?method=foo&amp;synchronous=true"/>
  <choice>
      <when>
       ...

I'm getting the following exception when try to start the route:

"Caused by: java.lang.UnsupportedOperationException: You cannot consume from
a bean endpoint"

My idea is provide the remote EJB interface as a Camel Endpoit and lookup
the EJB from another JBoss EAP server instance, in the common EJB Remote
Lookup way.

The samples that I already saw starts the route as a <direct:true> endpoint.

Camel EJB <http://camel.apache.org/ejb.html>  
Another example
<http://stackoverflow.com/questions/9068323/camel-routing-between-ejbs>  

Any help will be very appreciated.

Thanks in advance.







--
View this message in context: http://camel.465427.n5.nabble.com/Is-it-poossible-start-a-route-from-an-EJB-endpoint-tp5771278.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message