to test the bean I have done the followiing but the queue is not in ActiveMQ. 
generated  "http://localhost:8161/admin/queues.jsp"; . Can you tell me why
the queue is not generated.
Note: Route has been started successfully. I ahve added active mq
components.

Spring XML:

  <bean id="helloBean" class="HelloBean.HelloBean"/>

  <camel:camelContext xmlns="http://camel.apache.org/schema/spring";>
    <camel:package>HelloBean</camel:package>
 
    <camel:route>
         
          <from uri="direct:start"/>
          <setHeader headerName="myName"><simple>World</simple></setHeader>
          <bean ref="helloBean" method="hello"/>
          <to uri="jms:helloQueue" />
          
    </camel:route>

Here is the bean:

package HelloBean;

import org.apache.camel.Header;

public class HelloBean {
public String hello(@Header(value = "myName") String name) {
return "Hello " + name;
}
}




--
View this message in context: 
http://camel.465427.n5.nabble.com/invoking-bean-from-CAMEL-route-tp5008230p5008490.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to