camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <>
Subject AW: what did i forgot? Bean integration through direct:start
Date Wed, 15 Jun 2011 09:11:12 GMT
Hi Andre,

i know what the problem may be. I had the same.

The solution is: Start activemq :-)

If it is not started then the route hangs and the others will not be started. This happens
when you use the default constructor of the ActiveMqConectionFactory.
It defaults to the failover transport which never times out. 

This problem had me scratching my head me for more than a day...


-----Urspr√ľngliche Nachricht-----
Von: Andrè [] 
Gesendet: Mittwoch, 15. Juni 2011 10:28
Betreff: what did i forgot? Bean integration through direct:start

i got this class
public class XacmlRequester {
	@Produce(uri = "activemq:topic:xacml.authzRequests")
	ProducerTemplate producer;
	@Consume(uri = "file:src/data/requests?noop=true")
	public void generateRequest(File request){
		RequestCtx req;
		try {
			req = RequestCtx.getInstance(new FileInputStream(request));
		} catch (FileNotFoundException e) {
			System.out.println("datei nicht gefunden");
		} catch (ParsingException e) {
which i added in the camel-context and in a route this :
 <bean class="de.tarent.abiege.camel.producer.XacmlRequester"
        <from uri="direct:start"/>
        <bean method="generateRequest" ref="xacmlRequest">
            <to uri="activemq:topic:xacml.authzRequests"/>
        <from uri="activemq:topic:xacml.authzRequests"/>
        <log message="request consumed hopefully"/>
        <to uri="file:target/messages/requests"/>

So my intention is, consuming an xml Xacml-Request, parsing it and sending it but when i let
the "camel:run" *g* there is no log message but there is something like that
"route6 started and consuming from:
so where is my request, any idea?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message