3 Replies Latest reply on Apr 16, 2009 7:37 AM by Lars Rödiger

    org.apache.camel.NoSuchEndpointException

    Lars Rödiger Newbie

      I've tried to set up a Camel-Route in the following way:

       

      extract from class com.larsroediger.activemqtest.RouteToQueueA

       

      public void configure() throws Exception {  

        from(file:/in/)

          .convertBodyTo(String.class)

            .to("activemq:queue:QueueA");

      }

       

      and the corresponding XML under META-INF/spring is:

       

       

       

      When I deploy the Bundle in Fuse ESB then I get the following Error:

       

      org.apache.camel.NoSuchEndpointException: No endpoint could be found for: activemq:queue:QueueA, please check your classpath contains the needed camel component jar.

              at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55)

              at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:99)

      ...

       

       

      The camel component is supposed to be on the classpath, the corresponding Bundles (camel-jms, camel-spring, camel-osgi, camel-core) are active. Camel's Java DSL automatically creates Destinations (Queues and Topics), when I use the from method, does it?

       

      Any suggestions, what might be the problem here?