Search code examples
apache-camelejb-3.1apache-servicemix

Call remote ejb from camel route


I'd like to create osgi bundle which listen for soap messages and route them to remote ejb. I have servicemix 4.x as a bundle environment, glassfish 4 as a ejb container and camel as routing engine. Is it possible to connect to each other?


Solution

  • Yes, there cxf and ejb components and you should be able to define your route like this:

    from("cxf:...")
        // ...
        .to(ejb:...")
    ;
    

    Please refer to: Apache Camel Components - CXF and EJB.