Thanks Claus for your prompt help as always!

Im using Camel version 2.7.2. 

I just found that if using the exact same URI as I have in my Route builder
(see first post) I dont see it in JMX, if I just use the name in the inject
(as per the second post) it appears in JMX...

My RouteBuilder has the following routes:

                from("direct:financeData")
                .to("bean:parseYahooFinancePrice")
                .to("seda:parsedStockPriceStream?concurrentConsumers=90")

                from("seda:symbolsToProcess?concurrentConsumers=5")
                .to("bean:yahooHistoricalStream")
                .end();
                
                from("seda:closeData?concurrentConsumers=50")
                .to("jpa:com.sentimeasure.issa.stocks.dto.StockCloseDTO")
                .end();

                from("seda:parsedStockPriceStream?concurrentConsumers=90")
                .routeId("save-Stock-Data-to-DB")
                .to("jpa:com.sentimeasure.issa.stocks.dto.StockPriceDTO")
                //.to("log:JPA-OUT")
                .end();

I am using beans to send messages to some Seda endpoints. 

e.g. 
        @Produce(uri="seda:closeData?concurrentConsumers=50")
        private ProducerTemplate producer;
              //.............
                   producer.sendBody(data);

The route will not show up in JMX as an endpoint.

If I do :
        @Produce(uri="seda:closeData")
        private ProducerTemplate producer;

              producer.sendBody(data);

The route will appear in JMX. I initially assumed that the URI's needed to
be 100% identical... Guess I can just use the name. 

I will test out the register always = true in my context.xml.


--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-issue-with-JMX-Endpoints-disappearing-and-endpoint-injection-for-SEDA-tp4616624p4618310.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to