No personal reasons for use spring remoting.. jejeje , just a legacy system. I think that is exposed as a normal http service, and i think that i should consider use another interface as you said. I will try for a few hours more in this way, after that i going to change the strategy to obtain diferent results (as Einstein said).
Thanks for your time. 2013/9/10 Christian Müller <christian.muel...@gmail.com> > I didn't use spring remoting until now (and I think this component isn't > use very often)... > Any specific reason why do use spring remoting? > > Are you able to use camel-cxf (if this interface is exposed as JAX-WS or > JAX-RS service) or camel-http4 (if this interface is exposed as a "normal" > HTTP service) or camel-jms/camel-activemq (if this interface is based on > JMS)? > > Best, > Christian > ----------------- > > Software Integration Specialist > > Apache Camel committer: https://camel.apache.org/team > V.P. Apache Camel: https://www.apache.org/foundation/ > Apache Member: https://www.apache.org/foundation/members.html > > https://www.linkedin.com/pub/christian-mueller/11/551/642 > > > On Tue, Sep 10, 2013 at 4:38 PM, Erwin Etchart <erwin.etch...@gmail.com > >wrote: > > > I made a little changes and i think that im a little bit closer. > > > > 1) I didnt have the camel-http dependency (big mistake) > > > > <util:properties id="spring-properties"> > > <prop key="INCOMING.MAIN.QUEUE">jms:INCOMING.MAIN.QUEUE</prop> > > <prop key="spring.remote">bean:spring.remote</prop> > > </util:properties> > > > > <camelContext id="CamelContext" xmlns=" > > http://camel.apache.org/schema/spring" autoStartup="true" trace="true"> > > <propertyPlaceholder id="properties" > > location="ref:spring-properties" /> > > <route> > > <from uri="jms:INCOMING.MAIN.QUEUE" /> > > <to > uri="bean:spring.remote?method=springRemotingTest(${body})" > > /> > > </route> > > </camelContext> > > > > <bean id="spring.remote" > > class="org.apache.camel.spring.remoting.CamelProxyFactoryBean"> > > <property name="serviceInterface" > > value="xxx.xxx.myserviceinterface" /> > > <property name="serviceUrl" value=" > > http://localhost:9911/tomcat-app/myservice" /> > > <property name="camelContextId" value="CamelContext" /> > > </bean> > > > > Now im reading something related to serializer -deserializer since the > > service is exposed by a external app. > > > > ¿How can i set the deserializer strategy? > > > > > > Thanks. > > > > > > Erwin > > > > > > > > > > 2013/9/9 Erwin Etchart <erwin.etch...@gmail.com> > > > > > Thanks for your reply Chrisitan. > > > > > > When i try to invoke the exception that appens is > > > > > > : org.apache.camel.NoSuchBeanException: No bean could be found in the > > > registry for: http://localhost:9911/tomcat-xxx/moduleService > > > > > > Dont know why... > > > > > > > > > Code. > > > > > > <bean id="spring.remote" > > > class="org.apache.camel.spring.remoting.CamelProxyFactoryBean"> > > > <property name="serviceInterface" value="xxxx.ModuleService" /> > > > <property name="serviceUrl" value="direct: > > > http://localhost:9911/tomcat-xxx/moduleService" /> > > > > > > <property name="camelContextId" value="CamelContext" /> > > > </bean> > > > > > > > > > > > > --- > > > > > > the route > > > > > > <route> > > > <from uri="jms:INCOMING.MAIN.QUEUE" /> > > > <to > > > uri="bean:spring.remote?method=springRemotingTest(${body})" /> > > > </route> > > > > > > declaration > > > > > > <util:properties id="spring-properties"> > > > <prop key="INCOMING.MAIN.QUEUE">jms:INCOMING.MAIN.QUEUE</prop> > > > <prop key="spring.remote">bean:spring.remote</prop> > > > </util:properties> > > > > > > > > > 2013/9/9 Christian Müller <christian.muel...@gmail.com> > > > > > >> This component is documented at [1]. > > >> Do you have any issues? > > >> > > >> [1] http://camel.apache.org/spring-remoting.html > > >> > > >> Best, > > >> Christian > > >> ----------------- > > >> > > >> Software Integration Specialist > > >> > > >> Apache Camel committer: https://camel.apache.org/team > > >> V.P. Apache Camel: https://www.apache.org/foundation/ > > >> Apache Member: https://www.apache.org/foundation/members.html > > >> > > >> https://www.linkedin.com/pub/christian-mueller/11/551/642 > > >> > > >> > > >> On Mon, Sep 9, 2013 at 6:20 PM, Erwin Etchart < > erwin.etch...@gmail.com > > >> >wrote: > > >> > > >> > Hi everybody. > > >> > > > >> > I´m developing my first examples with Camel and Spring remoting , > but > > >> > unfortunately with no success. > > >> > I have a external app exposing services , wich is a tomcat. > > >> > > > >> > But i don´t have clearly how i must connect to the service, i supose > > >> that > > >> > will be something like this. > > >> > > > >> > <bean id="remoteService" > > >> > class="org.apache.camel.spring.remoting.CamelProxyFactoryBean"> > > >> > <property name="serviceInterface" value="MyInterface" /> > > >> > <property name="serviceUrl" value=" > > >> > http://localhost:9911/tomcat-module/moduleService" /> > > >> > <property name="camelContextId" value="CamelContext" /> > > >> > </bean> > > >> > > > >> > ¿I´m i doing something wrong in this bean? > > >> > > > >> > Thanks > > >> > > > >> > Erwin > > >> > > > >> > > > > > > > > >