Thanks willem. Now i see. I thought the proxy example in doc http://camel.apache.org/spring-remoting.html
<bean id="sayProxy" class="org.apache.camel.spring.remoting.CamelProxyFactoryBean"> <property name="serviceUrl" value="direct:say"/> <property name="serviceInterface" value="org.apache.camel.spring.remoting.ISay"/> </bean> and http://camel.apache.org/using-camelproxy.html <proxy id="myProxySender" serviceInterface="org.apache.camel.spring.config.MyProxySender" serviceUrl="direct:start"/> is different. Now i understand that actually they are same just above example is using custom namespace. Thanks alot. willem.jiang wrote: > > 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? > > > -- View this message in context: http://old.nabble.com/Spring-Remoting-CamelProxyFactoryBean-and-Camel-Proxy-tp28074981p28078217.html Sent from the Camel - Users mailing list archive at Nabble.com.
