If you search the camel code , you will find you can't find any class which name is CamelProxy. CamelProxyFactoryBean creates the proxy object which you can use, and it is called CamelProxy in the user document.

After digging the code for a while, I found the you can certain use the CamelProxy with a fire and forget style. All you need to do is add this pattern annotation in the method of your Service Interface.

public interface MyProxySender {

    String hello(String name);

    @Pattern(value = ExchangePattern.InOnly)
    void greeting(String message);

}

Willem

capacman wrote:
Hi all,

What is the difference between Spring Remoting CamelProxyFactoryBean and
CamelProxy? From documentation the only diffrence i understand is CamelProxy
is Request and Reply but with spring remoting we can specify a method to be
inonly. Is it possible to use camel proxy with fire and forget style?

Reply via email to