Re: Time taken to read messages from queue

2016-07-20 Thread Antoine DESSAIGNE
Hello. That's something that you may extract from your JMS queue itself. That beeing said, if you have burst of data you can use the log component to tell what's happening. For instance you can use It will tell you in the log, the number of exchange processed during the last 10 seconds. When it

Re: Unmarshal fixed lenght Binary data format using Bindy

2016-07-20 Thread Antoine DESSAIGNE
Hello. I'm not sure to understand which format your data is encoded. Any dataformat will read data from a binary format, you need to pick the one that match your format. If you have a fixed-length format with like "4 digit for the ID, then 12 character for the name, then..." you can use : * http:

Re: Overriding default properties in camel http4 component via blueprint

2016-07-20 Thread Antoine DESSAIGNE
Hello. It looks like you can configure it with the URI options. I've tried with 2.16.2 which is quite close. Antoine. 2016-07-19 12:02 GMT+02:00 Claus Ibsen : > Some components allow to configure component level options, which you > do the style. > > > > > > Which is standard blueprint

Re: Time taken to read messages from queue

2016-07-20 Thread fxthomas
hello, I just want to mesaure how much camel JMS component take to read from queue, I dont want the complete exchange time take. I think using a Bean I can measure it which is the only clean option i see. Using grouplog of camel is an option, but I am not sure how many messages are there in que

Re: Convert message into two converters and dilliver them to one destination

2016-07-20 Thread redpower1989
Thanks for answer. Does anyone know if you can change the messageId when you are using multicast? At the moment multicast copy the message and the new two messages have the same message ID. If i have a idempotentConsumer before a producer endpoint it will block my second message even if it has been

Re: spring boot shutdown strategy

2016-07-20 Thread Claus Ibsen
What version of Camel do you use? You may need to upgrade. On Tue, Jul 19, 2016 at 11:58 PM, Minh Tran wrote: > Hi > > In a spring DSL, I used to be able to set a shutdown timeout by creating a > ShutdownStrategy bean and setting the appropriate properties and it would > work. > > Now when I at

Re: spring boot shutdown strategy

2016-07-20 Thread Minh Tran
Hi I’ve tried both 2.17.1 and 2.17.2 and it seems to have no effect. My unit tests always says 10seconds. Starting to graceful shutdown 1 routes (timeout 10 seconds) > On 20 Jul 2016, at 8:51 PM, Claus Ibsen wrote: > > What version of Camel do you use? You may need to upgrade. > > On Tue, J

Re: spring boot shutdown strategy

2016-07-20 Thread Claus Ibsen
The camel-test-kit uses a 10 sec override by default. https://github.com/apache/camel/blob/master/components/camel-test/src/main/java/org/apache/camel/test/junit4/CamelTestSupport.java#L433 On Wed, Jul 20, 2016 at 7:43 AM, Minh Tran wrote: > Hi > > I’ve tried both 2.17.1 and 2.17.2 and it seems t

Re: spring boot shutdown strategy

2016-07-20 Thread Minh Tran
I’m using the @CamelSpringBootJUnit4ClassRunner but I guess it is probably using the same 10s default too. I just tried starting up the application and shutting it down and it’s still on the default 300s there Starting to graceful shutdown 1 routes (timeout 300 seconds) Pretty certain my bean

how to poll a Spring Bean in a "from" in a route to get a List to process

2016-07-20 Thread Mark Nuttall
As part of a "From" in a route, I need to able to "poll" (either by time or schedule) a spring bean (i.e. a Spring Service) and get a List<> by calling a bean's method,so that i can process each item in the list. I've looked at "bean" and "jpa" but i am not seeing this in "bean" and I am not usin

Re: how to poll a Spring Bean in a "from" in a route to get a List to process

2016-07-20 Thread Antoine DESSAIGNE
Hello Mark, You can use a timer [1] to trigger the processing of the route, then call the bean to retrieve the list of elements to process and finally process your elements. [1] http://camel.apache.org/timer.html 2016-07-20 14:29 GMT+02:00 Mark Nuttall : > As part of a "From" in a route, I nee

RE: camel sql joined query with parameters won't run on sql server

2016-07-20 Thread Karts
I have the same issue with sql server, but it seems to be related to alias + named param rather than a joined query. The following works fine: .setHeader("ExternalRef", simple("1234")) .to("sql:select event from events where id= :#ExternalRef") But if I alias the table : .setHeader("ExternalRef

Re: how to poll a Spring Bean in a "from" in a route to get a List to process

2016-07-20 Thread Mark Nuttall
Antoine. Thx. I might just not have been doing "bean" right. Will give it ago again. On Wed, Jul 20, 2016 at 9:18 AM, Antoine DESSAIGNE < antoine.dessai...@gmail.com> wrote: > Hello Mark, > > You can use a timer [1] to trigger the processing of the route, then call > the bean to retrieve the lis

How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread Kammer, John - US
Friends and colleagues, I have been tasked to implement a message route from an external RabbitMQ provider into our Camel-ActiveMQ message service. I am having some difficulties getting the rabbit part set up and working within Camel. I get the feeling I am close, which may just be an illusion

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
I didn't see anywhere that you connected with a username/password to rabbitmq. The default user and password is guest/guest but could be that they restrict it to another user. Also I guessing you want access to the default vhost and not another defined one? On Wed, Jul 20, 2016 at 7:41 PM, Kammer,

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread Brad Johnson
I've not used RabbitMQ so can't give much insight there but wonder if you have an independent way to verify the connection: rabbitmq://localhost:5672/rabbit Is there a rabbitmq equivalent of curl to connect? On Wed, Jul 20, 2016 at 12:40 PM, Kammer, John - US wrote: > Friends and colleagues, >

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
There is a rest API to connect and off course the RabbitMQ webgui is good too. On Wed, Jul 20, 2016 at 7:50 PM, Ranx [via Camel] < ml-node+s465427n5785285...@n5.nabble.com> wrote: > I've not used RabbitMQ so can't give much insight there but wonder if you > have an independent way to verify the c

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread Brad Johnson
John, Can you use curl and verify the URI and credentials? http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v2_2_0/priv/www-api/help.html On Wed, Jul 20, 2016 at 12:52 PM, souciance < souciance.eqdam.ras...@gmail.com> wrote: > There is a rest API to connect and off course the Rabb

Re: Convert message into two converters and dilliver them to one destination

2016-07-20 Thread Quinn Stevenson
I’m not following your logic in this route - both of the sub-routes are using the same idempotent repository, so I think you’ll wind up marking items as duplicates when they really are not. Did you mean to put the idempotent consumer on the from=source route?. > On Jul 20, 2016, at 3:42 AM, red

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > I didn't see anywhere that you connected with a username/password to > rabbitmq. The default user and password is guest/guest but could be that > they restrict it to another user. Also I guessing you want access to the > default vhost and not another defined one? I have not yet e

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
Even if you don't send anything, the connection alone requires a username/password and possibly a defined vhost unless you are allowed to connect to the default one. If I were you I would connect to the webgui first. It is usually http://rabbtmq:15672 and see if you get a login page and can access

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread owain
The suggestion is to satisfy yourself that you are able to access the RabbitMQ from a command line or web gui from outside Camel to check that you do have it running, have the correct port, username and password. Then once you are satisfied it is available then use the same parameters on the endpoi

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > There is a rest API to connect and off course the RabbitMQ webgui is good > too. > > On Wed, Jul 20, 2016 at 7:50 PM, Ranx [via Camel] < > ml-node+s465427n5785285h98@.nabble >> wrote: > >> I've not used RabbitMQ so can't give much insight there but wonder if you >> have an ind

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
Aha, but once you start the rabbitmq endpoint on Camel it will try to connect to whichever hostname you defined. If that hostname is not yet available you will get connect refused. Camel will try to connect on startup, if you don't want this, then disable the rabbit stuff until you have the rabbit

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > Even if you don't send anything, the connection alone requires a > username/password and possibly a defined vhost unless you are allowed to > connect to the default one. > > If I were you I would connect to the webgui first. It is usually > http://rabbtmq:15672 and see if you get

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
Ok my bad, I meant http://:15672 and substitute the hostname for the real one. On Wed, Jul 20, 2016 at 9:38 PM, jkam...@caci.com [via Camel] < ml-node+s465427n5785296...@n5.nabble.com> wrote: > souciance wrote > Even if you don't send anything, the connection alone requires a > username/password

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > Aha, but once you start the rabbitmq endpoint on Camel it will try to > connect to whichever hostname you defined. If that hostname is not yet > available you will get connect refused. Camel will try to connect on > startup, if you don't want this, then disable the rabbit stuff un

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > Ok my bad, I meant http:// > > :15672 and substitute the > hostname for the real one. Noted. I'd tried that along with any variation I could think of with the same results. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-configure-Camel-ActiveMQ

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > Ok my bad, I meant http:// > > :15672 and substitute the > hostname for the real one. I am assuming here that the is referring to the server running camel along with the camel-rabbit component AND NOT the server running rabbitmq. -- View this message in context: http://cam

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
Well no.. your code says: Camel does not have an embedded rabbitmq server. It will always try to connect to rabbitmq server and then act as a consumer or publisher. The hostname is the hostname of the rabbitmq server. If you cannot reach it, then is the URL correct? Have you enabled the webu

Re: How to concurrently shutdown routes

2016-07-20 Thread Martin Lichtin
One problem with writing a custom shutdown strategy is that in DefaultCamelContext, the "stopRoute" and "shutdownRoute" methods are synchronized. Or how else could I circumvent this 'serialization'? Claus Ibsen-2 wrote > Hi > > No the default shutdown is as-is. You would need to build your cust

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread jkam...@caci.com
souciance wrote > Well no.. > > your code says: > > Camel does not have an embedded rabbitmq server. It will always try to > connect to rabbitmq server and then act as a consumer or publisher. > > The hostname is the hostname of the rabbitmq server. > > If you cannot reach it, then is the URL

Re: How can I configure Camel/ActiveMQ to receive from an external RabbitMQ producer?

2016-07-20 Thread souciance
Hmm, not quit sure why they thought Camel does not require a separate rabbitmq server. The camel-rabbitmq component is a way for Camel to speak to RabbitMQ. It implements the rabbitmq client API. On Wed, Jul 20, 2016 at 10:05 PM, jkam...@caci.com [via Camel] < ml-node+s465427n5785303...@n5.nabble.

Sample Projects in Camel

2016-07-20 Thread Bharath Kumar Champalal
Hello all, I was thinking to have sample projects in camel. Something in the same as find in spring boot. Not sure how to start, can anyone guide. Currently I'm free so I thought I could learn Camel and would help community too. Regards, Bharath. http://www.m

Re: Sample Projects in Camel

2016-07-20 Thread Minh Tran
Hi, I found the Camel In Action book to be very helpful. You can get the first chapter free https://www.manning.com/books/camel-in-action > On 21 Jul 2016, at 2:31 PM, Bharath Kumar Champalal > wrote: > > Hello all, > > I was thinking to have