Re: Camel Swagger and Cors in StandaloneMode

2016-04-26 Thread Gerald Mixa
Hi, i have set this up via the Java DSL. the rest configuration looks like this: restConfiguration() .component("netty4-http") .host("localhost") .port(settings.getInteger(Setting.REST_PORT)) .bindingMode(RestBindingMode.json)

Re: MQTT connectAttemptsMax property does not appear to work

2016-04-26 Thread whulse
Thank you so much for the reply.. Looking at the link, this just points to essentially a feature request for routes in general which is great however for MQTT these types of features already exist but just don't seem to work. For example from http://camel.apache.org/mqtt.html we have features suc

Re: MQTT connectAttemptsMax property does not appear to work

2016-04-26 Thread Claus Ibsen
> RabbitMQProducer The stacktrace is in rabbit MQ not MQTT So its camel-rabbitmq component you need to take a look at On Tue, Apr 26, 2016 at 10:20 AM, whulse wrote: > Thank you so much for the reply.. > > Looking at the link, this just points to essentially a feature request for > routes in g

Re: MQTT connectAttemptsMax property does not appear to work

2016-04-26 Thread whulse
Our requirement here is to connect from an activeMQ to a non activeMQ message broker in this instance RabbitMQ using MQTT hence we used the MQTT component. The RabbitMQ component works however that is an AMQP implementation. -- View this message in context: http://camel.465427.n5.nabble.com/M

Re: MQTT connectAttemptsMax property does not appear to work

2016-04-26 Thread whulse
The following is the log file for MQTT with a single connection attempt and subsequent shut down. [DEBUG] 2016-04-26 09:56:22,838 org.apache.camel.impl.DefaultComponentResolver resolveComponent - Found component: mqtt via type: org.apache.camel.component.mqtt.MQTTComponent via: META-INF/services/o

Re: Not seeing query params on REST DSL

2016-04-26 Thread John D. Ament
IMHO what Steve's describing is a pretty useful feature. I created a JIRA - https://issues.apache.org/jira/browse/CAMEL-9914 I'll try to get to it pretty soon. John On Mon, Apr 25, 2016 at 2:28 PM Claus Ibsen wrote: > That is for the api documentation. > > Its the camel-restlet component that

RE: Not seeing query params on REST DSL

2016-04-26 Thread Steve Huston
Ok, so what I'm trying to do won't work at this time? I've been going through camel-restlet docs trying to get at what Claus was surely referring to as a solution ;-) > -Original Message- > From: John D. Ament [mailto:johndam...@apache.org] > Sent: Tuesday, April 26, 2016 7:02 AM > To: u

CDI.current() with 2.17.0

2016-04-26 Thread kalber
Hi, i must create 'FileIdempotentRepository' as managed named beans programmaticly. For this i tried to use CDI.current().getBeanManager().createBean, but CDI.current is null. This are dependencies i set: org.apache.deltaspike.cdictrl deltaspike-cdictrl-weld

Re: CDI.current() with 2.17.0

2016-04-26 Thread John D. Ament
That should work without a hitch (CDI.current()). Do you have a beans.xml file in the right location in your camel context? John On Tue, Apr 26, 2016 at 8:18 AM kalber wrote: > Hi, > > i must create 'FileIdempotentRepository' as managed named beans > programmaticly. > > > For this i tried to u

Re: Not seeing query params on REST DSL

2016-04-26 Thread John D. Ament
Technically speaking, you can do this by retrieving the original request from the exchange's in field and calling the appropriate methods to get the original query params. The field can be found here: https://github.com/apache/camel/blob/master/components/camel-restlet/src/main/java/org/apache/cam

Re: CDI.current() with 2.17.0

2016-04-26 Thread kalber
yes, http://xmlns.jcp.org/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_2.xsd"; version="1.2" bean-discovery-mode="annotated

Re: multiple routes in single camelcontext with same reslut name

2016-04-26 Thread Brad Johnson
You have all the code there have you tried running that out of a Camel unit test? You can also add .log() statements in the fluent routes to be able to see what you are getting while the message travels through it. On Mon, Apr 25, 2016 at 5:47 PM, kumar5 wrote: > i want to understand how camel

Re: Memory management

2016-04-26 Thread Jeff Segal
For a particular test run, I see a peak of about 1.4 GB of char[] instances (most of which appear to be JSON Strings), but then it settles back down to about half that size indefinitely (with a forced GC from the profiler or regular interval GCs). Of the 700 MB remaining char[] instances, 96% are r

How to run camel-cdi projects ?

2016-04-26 Thread nicolasduminil
Hello, Using at several camel-cdi examples, they are all supposed to be ran with camel:run plugin. Which is okay but how things are supposed to happen in production, where using maven is often not an option ? Should one create fat runnable run-with-dependencies or is there any other option ? I ha

Re: How to run camel-cdi projects ?

2016-04-26 Thread Antonin Stefanutti
Hi Nicolas, This is a very good point. There exist a couple of options. CDI implementations offer APIs to bootstrap the containers, like [1]. You may be interested by DeltaSpike container control module [2] (which is actually being used by the camel:run plugin). CDI 2.0 will bring a standard wa

Re: Memory management

2016-04-26 Thread Jeff Segal
I dove a bit deeper and found the culprit: I added a few browse endpoints as unit test hooks a few days ago. When I look at the cumulative incoming references in JProfiler for the Strings that were lying around and drilled down a bit, I saw that the vast majority were being held by BrowseEndpoints,

[OSGi] Is it possible to use Camel with only DS and not Felix annotations?

2016-04-26 Thread Matt Sicker
The documentation for camel-scr has instructions on using the old Felix SCR annotations and no instructions on using it with standard declarative services. Is it possible to adapt camel-scr to use standard DS annotations, or would a separate camel module need to be developed for this? -- Matt Sic

Re: CDI.current() with 2.17.0

2016-04-26 Thread John D. Ament
Could you provide a bit more context about how you're calling CDI.current? Like maybe the full class or an example class? I'll try to put together an example to show it working, may be something to work through. I suspect that the bean-discovery-mode=annotated is the problem, if you're calling wi

Any plans to support Google Cloud Platform Component?

2016-04-26 Thread sc
I have posted similar message before, but got no response. So sorry for reposting again. But do you have plans to support Google Cloud Platform Component? If so, when is it expected? Thanks Much. -- View this message in context: http://camel.465427.n5.nabble.com/Any-plans-to-support-Google-Cl

Re: CDI.current() with 2.17.0

2016-04-26 Thread John D. Ament
So here's a simple project. Its working fine when I run it, so if you can point out whats different about your setup. https://github.com/johnament/camel-cdi-annotated John On Tue, Apr 26, 2016 at 6:34 PM John D. Ament wrote: > Could you provide a bit more context about how you're calling > CD

Re: Best Strategy to process a large number of rows in File

2016-04-26 Thread Michele
Hi Brad, as you suggested and I split big files into chunks of 1000 lines changing my route like this:

camel route not posting the message to mq(which has replyTo) from mq

2016-04-26 Thread swapna07
I have following camel route, reading from a queue (btrRTTransReqQueue) converting the message to another jaxb object, and post it into another queue(TranReq.queueName) which has reply to queue (TranRes.queueName)set, when the response message available on reply queue read from that queue and proc

Re: CDI.current() with 2.17.0

2016-04-26 Thread kalber
Thanks John, i will test it soon, for a surgical intervention on the eyes i'm offline until monday. Karlheinz On Wed, Apr 27, 2016 at 2:58 AM, John D. Ament-2 [via Camel] wrote: > So here's a simple project. Its working fine when I run it, so if you can > point out whats different about your