Hi Florian, Looking at what you are trying to do, it seems that you are trying to register your camel context as a bean in a JBI container. The simplest way to do this is via the servicemix-camel component. Please refer to the camel example in the servicemix installation under <install-dir>/examples/camel.
The problem I see with this is that the namespace "b" is set to xmlns:b="http://servicemix.apache.org/samples/bridge". The camel context itself is listed under the "camel" namespace. You could try changing this to "camel:camel" where the camel context is listed. The effect of pursuing your approach is to list the camel context as a JBI endpoint. I have not tried this but there seems to be an example of this kind of wiring on the Servicemix-camel page at Apache. There is a simpler way to do this via the servicemix-camel component. Please refer to the camel example in the servicemix installation under <install-dir>/examples/camel. Hope this helps. Cheers, Ashwin... florian M wrote: > > Hi, > > I only used servicemix for two weeks, so I'm not familiar with all the > concepts yet. Please be tolerant... > > I'm trying to route a message from an http su to a jms queue inside > servicemix through a jms su, using camel. I started from the http bridge > sample wich worked well, and then replaced the eip-su with a camel su. > > It seems that the servicename of the camel-su is not registered : > > On deployment i've got this warning : > WARN | Timer-4 | ResolverUtil | > apache.camel.util.ResolverUtil 603 | Could not find class > 'org/apache/activemq/camel/converter/ActiveMQMessageConverter$1.class' in > any classloaders: [...] > > And when i post the message : > 15:42:34,656 | WARN | btpool1-1 | DefaultBroker | > rvicemix.jbi.nmr.DefaultBroker 344 | ServiceName > ({http://servicemix.apache.org/samples/bridge}camel) specified for > routing, but can't find it registered > > My camel-context file : > > <?xml version="1.0" encoding="UTF-8"?> > > <beans > xmlns="http://xbean.org/schemas/spring/1.0" > xmlns:bean="http://servicemix.apache.org/bean/1.0" > xmlns:b="http://servicemix.apache.org/samples/bridge" > xmlns:sm="http://servicemix.apache.org/config/1.0" > xmlns:camel="http://activemq.apache.org/camel/schema/spring" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://servicemix.apache.org/bean/1.0 > http://servicemix.apache.org/bean/1.0 > http://activemq.apache.org/camel/schema/spring > http://activemq.apache.org/camel/schema/spring > "> > > <container id="jbiContainer" embedded="true"> > <sm:components> > <ref id="jbi" /> > </sm:components> > <sm:endpoints> > <bean:endpoint service="b:camel" endpoint="endpoint" /> > </sm:endpoints> > </container> > > <bean id="jbi" class="org.apache.servicemix.camel.CamelJbiComponent" /> > > <camelContext id="camel" > xmlns="http://activemq.apache.org/camel/schema/spring"> > <package>org.bridge.camel.su.MyRouteBuilder</package> > </camelContext> > > </beans> > > What am I doing wrong ? Thanks, > > Florian > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/Trying-to-route-http-msg-with-camel-tp20722508p20741019.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
