Use a "remote" EJB in Camel routes
Introduction You have an existing application, let say developed using J2EE, including EJB (Session). The application is running into a J2EE application server like JBoss, WebSphere or Weblogic. This application “exposes” EJBs to perform some business services. Now, you can to use these “remote” EJBs into Camel routes. Context We want to “expose” the EJB using WebService. As for all EJBs, we have two interfaces for our EJB: the local and remote interfaces. Let assume that we have: * ejb.MyEjbSession * ejb.MyEjbSessionHome We assume that the MyEjbSession EJB provides a businessMethod() method, with a String in argument, and returning a String. The first thing to do is to define an interface containing the WebService annotation. This interface will define the operations and will be used to generate the WSDL on the fly: package net.nanthrax.blog.camel; @WebService(targetNamespace = "http://www.nanthrax.net/blog", name = "MyEjbService") public interface M...