Apologies that this didn't work. Its all my fault! I'd messed up the classloader code in the CamelSpringDeployer - humble appologies.
Using trunk of Camel and ServiceMix this should all be working now. As I just commented in this thread... http://www.nabble.com/Camel-Component-tf4389182s12049.html I've just committed a simple Camel sample to ServiceMix... https://svn.apache.org/repos/asf/incubator/servicemix/trunk/samples/camel/ which shows how to create a Service Unit and Service Assembly using Camel routing. You can then run it (assuming you've locally built Camel and ServiceMix) via cd samples/camel mvn install cd camel-sa mvn jbi:servicemix Or deploy the SA in ServiceMix Note that this currently depends on trunk of both Camel and ServiceMix as I've fixed a few glitches in servicemix-camel; so you'll need to grab the latest source and build that locally first (or tomorrow the latest snapshot will download for you) This sample shows you can deploy any Camel routes into ServiceMix as an SU/SA; these could use regular Camel endpoints or NMR endpoints within JBI (the JBI endpoints are just named "jbi:...") http://activemq.apache.org/camel/jbi.html On 8/23/07, dellekappa <[EMAIL PROTECTED]> wrote: > Hi everybody, > I had correctly configured servicemix-camel component inside servicemix, and > I had created a new servicemix-camel-serviceunit as well, based on the > corrensonding archetype. > The problem is that if I configure my routes inside camel-context.xml it > works fine, but if I try java based routing...nothing happens. It seems that > my RouteBuilder class won't be read. > I put my RouteBuilder class inside a package named codin.sismed: > > ------------------------------- > package codin.sismed; > > import org.apache.camel.Exchange; > import org.apache.camel.Processor; > import org.apache.camel.builder.RouteBuilder; > import org.apache.camel.spring.Main; > > public class SismedRouter extends RouteBuilder { > > public static void main(String[] args) { > new Main().run(args); > } > > public void configure() { > System.out.println("Configuring routes"); > > from("jbi:service:http://sismed/services/Anagrafica/AnagraficaJBI").to("jbi:service:http://sismed/services/Anagrafica/Anagrafica_bb1"); > System.out.println("Routes configured"); > } > } > ----------------------------- > > and this is how appear my camel-context.xml > > ----------------------------- > <?xml version="1.0" encoding="UTF-8"?> > > <!-- START SNIPPET: camel --> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://activemq.apache.org/camel/schema/spring > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> > > <camelContext id="camel" > xmlns="http://activemq.apache.org/camel/schema/spring"> > <package>codin.sismed</package> > </camelContext> > > </beans> > <!-- END SNIPPET: camel --> > > --------------------------- > > the service-unit and the service-assembly compiles and deployes well...but > no routes are created. > Any suggestion? > > Thanks a lot > -- > View this message in context: > http://www.nabble.com/servicemix-camel---Java-based-routing-tf4318255s12049.html#a12295959 > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- James ------- http://macstrac.blogspot.com/
