Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are using an EJB3 container you can use the following invoker, which is just a simplified version of the above:

Code Block
 public class EJB3Invoker extends AbstractInvoker {
	    private Object ejb;

	    public EJB3Invoker(String jndiName) throws NamingException 	{
		        ejb = new InitialContext().lookup(jndiName);
	    }

	    public Object getServiceObject(final Exchange context) {
        {
		return ejb;
	    }
}

Executors

In addition to providing your own Invokers, you can also supply Executors for your service. Executors are a way to control scheduling for your service. To supply your own executor for a service just do:

...