Re: Camel ActiveMQ In/OUT endpoint creates additional consumers on response queue which are more than maxConcurrentConsumers

2015-03-17 Thread Claus Ibsen
Hi When doing request/reply over JMS using camel-jms then Camel uses the concurrentConsumers settings you may have configured on the component / endpoint. So if you only want 1 consumer, then set that on the endpoint Though I have logged a ticket to allow having separate options for regular conc

Re: Camel Hazelcast Component creating multiple instances of Hazelcast

2015-03-17 Thread ayache.k
Hi Willem Thanks for your prompt response. The support for hazelcastInstance is on camel 2.14 I didn't realise that. I will explore that further. You mentioned I may need to expose the instance as a service, can you show me an example? the documentation doesn't sow that. Thanks -- View this me

Re: DynamicRouter Question...

2015-03-17 Thread Claus Ibsen
Hi Using the shade plugin can be problematic. But if you do see this FAQ http://camel.apache.org/how-do-i-use-a-big-uber-jar.html On Tue, Mar 17, 2015 at 10:27 PM, Affenhauer wrote: > Hey, all - > Disclaimer: I'm brand-spanking-new to Camel, so any questions I have can be > assumed to be based i

Re: Java DSL kick-starting routes, is this possible yet?

2015-03-17 Thread yogu13
Hello Mike, >From what i understand you need a dynamic jms message consumer. You can achieve this by using Java DSL using the code fragments shown @ http://camel.apache.org/walk-through-an-example.html I am hoping there is a event which will help u in creation of this endpoint dynamically. Hope

Re: Why camel put the post request's form body into request header?

2015-03-17 Thread Yuffie
Hi, Thank you for your help! The post data is huge because it's the bussiness data, we have tried to reduce it's size but still so huge.—_—|| The bridgeEndpoint option is works well. Again, thanks for your help! --

Re: Why camel put the post request's form body into request header?

2015-03-17 Thread Willem Jiang
When the content-type is application/x-www-form-urlencoded, it means the POST message body is form, so camel try to parser the message body into a value set and put them into a message header. Can you check why the post body is huge? If you are using camel-jetty and camel-netty4-http to build a

Why camel put the post request's form body into request header?

2015-03-17 Thread Yuffie
Hey, I'm a newbie in camel. When I use camel-jetty and camel-netty4-http, I find the component will put the body into header when the content-type is application/x-www-form-urlencoded. It cause the OutOfBoundException when the post body is huge. Is this an issue? Or there is any reason that camel m

Re: DynamicRouter Question...

2015-03-17 Thread Willem Jiang
I just want to ask how did you create the Eclipse project? Please take a look at the maven dependency tree if you use maven the manage the dependencies. Can you check if you put the camel-jaxb dependency into the pom? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://wille

Re: Camel exec component tokenizer in Spring XML DSL removing plus sign in arguments

2015-03-17 Thread Willem Jiang
Camel just replace the “+” with “ “ by default. You can use the RAW() to wrap the args parameter just like this. exec:test?args=RAW(arg1+arg2 arg3) -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: wi

Re: Camel Hazelcast Component creating multiple instances of Hazelcast

2015-03-17 Thread Willem Jiang
Hi, Camel Hazelcast endpoint supports to set the Hazelcast instance with the option of hazelcastInstance=#INSTANCE_NAME. You may need to write a hazelcastInstance service for it if you want to share some hazelcastInstance across the JVM. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.

Re: Camel-ftp timeout

2015-03-17 Thread François LIOT
Hi, I invite you to check very carefully FileZilla debug trace, Maybe you switch in FTP Active Mode without having configured it yourself, then it works better than expected Abut Camel FTP, Default is active mode (false). !!! https://camel.apache.org/ftp.html#FTP-URIOptions François Liot

DynamicRouter Question...

2015-03-17 Thread Affenhauer
Hey, all - Disclaimer: I'm brand-spanking-new to Camel, so any questions I have can be assumed to be based in utter cluelessness. I'm learning, though... So, I have a scenario here where I'm using the Camel CXF component (with jetty) to provide a SOAP endpoint; we get the CxfPayload and do some p

Re: Camel Property - UTF 8 issues

2015-03-17 Thread Christian Müller
We don't have a class DefaultPropertyPlaceholder in Camel... If you have fixed the issue, it would be good if you can raise a JIRA and apply your patch. I propose to add an "encoding" option to the PropertiesComponent. Than we can populate the Properties class in DefaultPropertiesResolver with a R

Camel-ftp timeout

2015-03-17 Thread Morgan Hautman
Hi guys, I'm trying to connect to an ftp but it doesn't retreive anything from the directory. I'm able to connect via FileZilla and download the file(s) but not with camel. from("ftp://user@host:21/in?password=***";) When you use Filezilla you can query a map or a file and right click on it

Re: Java DSL kick-starting routes, is this possible yet?

2015-03-17 Thread mikes300
Thanks Yogesh.Well, sorta helps. The problem is that I have an application running on Wildfly, not using Spring, and while i can create the context & run a route like the example shows, i have to provide the inputs to the queue programatically, as the route isn't just sitting there waiting for

Re: Concurrent Consumers creating duplicates

2015-03-17 Thread kishore
The problem was with the processor. I didn't realize that processor is a singleton. I have change the code to use bean with prototype scope and it resolved the issue. Thanks for looking into this Willem Jiang. -- View this message in context: http://camel.465427.n5.nabble.com/Concurrent-Consume

[ANNOUNCEMENT] Apache Camel 2.13.4 released

2015-03-17 Thread Christian Mueller
The Camel community announces the immediate availability of the new patch release Camel 2.13.4. This release contains a total of 81 fixes applied in the past 3 months by the community on the Camel master branch. The artifacts are published and ready for you to download[1] either from the Apache mi

[ANNOUNCEMENT] Apache Camel 2.14.2 released

2015-03-17 Thread Christian Mueller
[ANNOUNCEMENT] Apache Camel 2.14.2 released The Camel community announces the immediate availability of the new patch release Camel 2.14.2. This release contains a total of 101 fixes applied in the past 3 months by the community on the Camel master branch. The artifacts are published and ready fo

[ANNOUNCEMENT] Apache Camel 2.15.0 released

2015-03-17 Thread Christian Mueller
The Camel community announces the immediate availability of the new major release Camel 2.15.0. This release contains a total of 500+ fixes applied in the past 6 months by the community on the Camel master branch. The artifacts are published and ready for you to download[1] either from the Apache

Re: Camel Property - UTF 8 issues

2015-03-17 Thread contactreji
Can we have a fix for this if its not available. Will be cool if next release can include InputStreamReader constructor modified to allow specify UTF-8 unicode characterset reading. Something like FileInputStream fis = new FileInputStream( ""); InputStreamReader

Camel ActiveMQ In/OUT endpoint creates additional consumers on response queue which are more than maxConcurrentConsumers

2015-03-17 Thread agentalpha
Hi Everyone, We are using Camel 2.13.2 and ActiveMQ 5.9.0. The configuration of activemq broker is as follows:

Issue with Camel Crypto Signing

2015-03-17 Thread Sag21
I am trying to sign the exchange body and getting below error when trying to use the camel crypto. "Cannot sign message as no Private Key has been supplied. Either supply one in the route definition sign(keystore, alias) or sign(privateKey) or via the message header 'CamelSignaturePrivateKey'". O

Re: Possibility of jdbc component when performing a select to return a map

2015-03-17 Thread angelo.rlcosta
Hello again Antoine, The previous groovy expression worked well. Thanks. How can i pass camel property inside groovy context. For example if i define a property 100 How can i use this property inside groovy something like request.body.get("100")

Camel Hazelcast Component creating multiple instances of Hazelcast

2015-03-17 Thread Ayache Khettar
Hi I have started using Camel Hazelcast for distributed caching but realised that all the bundles using the Camel hazelcast component create a new instance of Hazelcast. So 11bundles will result in 11 members joined in in one single JVM and the list is growing. Is this a healthy thing - see below

Re: Any alternative for CamelTestSupport ??

2015-03-17 Thread Charlie Mordant
Perfect :). Yes, I had a blueprint file exposing the camel components: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net.osgiliath.framework/net.osgiliath.helpers.parent/net.osgiliath.helpers.camel.activemq/src/main/resources/OSGI-INF/blueprint/camel-components.xml . Gla

Camel Property - UTF 8 issues

2015-03-17 Thread contactreji
Hi Friends Am trying to read values from property files. I have some key value pairs something like Name = こんにちは But once the property is read by camel routes, it produces junk values. Its not longer japanese. How can we manage this problem? I event tried Regards Reji - Reji Mathews

Camel exec component tokenizer in Spring XML DSL removing plus sign in arguments

2015-03-17 Thread Davis, Daniel
I have been unable to find an encoding or approach to include the ImageMagick argument "+profile" in the argument list for "exec" in Spring XML DSL as show below. With each experiment Trace clearly shows that the "+" sign in the arguments being stripped out. I tried plaintext, HTML and decimal en

Relay Message from a normal TCP end-point to Websocket endpoint in camel

2015-03-17 Thread vsk
Hi, We have a existing TCP server which streams application message. we need this message to be exposed via., a websocket endpoint for the Web GUI layer to consume What would be the best way to implement this in camel -- View this message in context: http://camel.465427.n5.nabble.com/Relay-

Re: SMTP with JNDI Mail Session

2015-03-17 Thread Woonsan Ko
Hi Claus, Indeed, it's working very fine with a custom JavaMailSender setting. I was probably misled with the spring JavaMailSender configuration before. FWIW, here's my configuration example in spring context: http://camel.apache.org/schema/spring";>

Tracing messages including step information to a queue/topic

2015-03-17 Thread L F
Hello,  I have configured a camel context with tracing, and configured an endpoint (activemq topic) where it should send the trace message. It works but i face two problems:    1. the message is sent to the topic, and i can access it from a custom java code, but i can't find any information

Re: Any alternative for CamelTestSupport ??

2015-03-17 Thread yogu13
Okay! I seem to have got it working :) For ppl who land up into a similar issue... CamelContext can be retrieved using OSGI's ServiceTracker and using the context instance created a producer template which helped me call the route. Cheers! -Yogesh -- View this message in context: http://cam

Re: Any alternative for CamelTestSupport ??

2015-03-17 Thread yogu13
Now based on above .. i keep getting org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting for service org.apache.camel.Component :( Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Any-alternative-for-CamelTestSupport-tp5764259p5764271.htm

Re: Sql component lazy loading?

2015-03-17 Thread angelo.rlcosta
Hi Antoine, Yes i understood that. But my problem is that using an index to access the array in the body takes a bit of time. Trying to figure out why. Thanks, Ângelo Costa On Tue, Mar 17, 2015 at 10:36 AM, Antoine DESSAIGNE [via Camel] < ml-node+s465427n5764267...@n5.nabble.com> wrote: > Hi

Re: Camel stop routes and start

2015-03-17 Thread Antoine DESSAIGNE
Hi everyone, Indeed there's a trick for forcing the shutdown of a context (or a particular route). You need to retrieve the currentShutdownTaskFuture of the DefaultShutdownStategy and call cancel(true) on it. Also, you can have more than 100 camel contexts in a single JVM, we're doing it. But of

Re: Sql component lazy loading?

2015-03-17 Thread Antoine DESSAIGNE
Hi Angelo, The SQL component returns a List when you set the outputType as SelectList (which is the default value), thus all the values are fetched at once. See the documentation here: http://camel.apache.org/sql-component.html Antoine. 2015-03-16 12:31 GMT+01:00 angelo.rlcosta : > Hi Claus, >

Re: Slow FTP

2015-03-17 Thread Claus Ibsen
Hi Ah I dont think we set the endpoint buffersize on the ftp client by default. And that is also by default for writing. Currently the FTPClient is configured with the timeout options, but not the buffer size. That may be a good idea as it really seem that its internal buffer size is too low out

Re: Any alternative for CamelTestSupport ??

2015-03-17 Thread yogu13
Hello, Thank you for the quick reply! I am using PAX-EXAM 4 for my integration tests on karaf. I had a quick look on the file you mentioned, were you suggesting following changes would help me 1. adding @Inject and @Filter to get the component in my case its direct-vm so, @Inject @Filter(valu

Re: Any alternative for CamelTestSupport ??

2015-03-17 Thread Charlie Mordant
Hi, You can use Pax Exam for your integration tests, wait for bootfinished event, then using your camel route's incoming technology (jms client, http call, etc..) to call them. Here's a simple example of a rest service call (would be the same with a camel cxfrs power from() route): https://github.

Re: Slow FTP

2015-03-17 Thread ulsa
Are you saying that the file bufferSize option is the same as ftpClient.bufferSize? -- View this message in context: http://camel.465427.n5.nabble.com/Slow-FTP-tp5764223p5764263.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Slow FTP

2015-03-17 Thread ulsa
I was indeed looking at ftp.html, but the links on ftp2.html are identical, and I can't reach them: http://commons.apache.org/proper/commons-net/api-2.2/org/apache/commons/net/ftp/FTPClientConfig.html http://commons.apache.org/proper/commons-net/api-2.2/org/apache/commons/net/ftp/FTPClient.html

Re: Possibility of jdbc component when performing a select to return a map

2015-03-17 Thread angelo.rlcosta
Hello Antoine, Your solution worked perfectly. Thanks alot! Cheers Ângelo Costa On Mon, Mar 16, 2015 at 5:50 PM, Antoine DESSAIGNE [via Camel] < ml-node+s465427n5764229...@n5.nabble.com> wrote: > Hi, > > No, it's not possible. In order to be unique in your Map it has to know > which fields ar

Re: Slow FTP

2015-03-17 Thread Claus Ibsen
Hi The write buffer is 128kb http://camel.apache.org/file2 The links works fine for me ftp2 -> file2 Maybe you look at the old Camel 1.x docs which unfortunately may still be there (cwiki is not ideal for project docs in 2015) On Tue, Mar 17, 2015 at 9:31 AM, ulsa wrote: > Yes, setting a bigge

Any alternative for CamelTestSupport ??

2015-03-17 Thread yogu13
Hi, I am writing a integration testcase (in karaf) which needs to make a call to camel route in different bundle. I understand interfacing with camel routes become easy by having the test class extend CamelTestSupport. However my Test classes are not at the liberty to extend CamelTestSupport as th

Re: Slow FTP

2015-03-17 Thread yogu13
okay .. as williem pointed out setting buffer size definitely helps.. in case you do not want to put a max limit then try setting the ftpClient.bufferSize=0 (unlimited) Hope that helps! Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Slow-FTP-tp5764223p5764

Re: Slow FTP

2015-03-17 Thread ulsa
Yes, setting a bigger buffer definitely did the trick. Like 5 secs to download instead of 25 mins. The default buffer size must be very small. It wasn't obvious (to me) from the Camel FTP page that it's possible to set other config params on the ftpClient than the ones listed under URI Options. Th

Re: Slow FTP

2015-03-17 Thread ulsa
Apache Camel 2.15.0 and Java 1.8.0_11. -- View this message in context: http://camel.465427.n5.nabble.com/Slow-FTP-tp5764223p5764254.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Slow FTP

2015-03-17 Thread ulsa
Thanks for pointing me to the client config. I'll try a bigger buffer and check out what other options I can tweak. -- View this message in context: http://camel.465427.n5.nabble.com/Slow-FTP-tp5764223p5764253.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Names of custom MBeans contain hex-number at the end

2015-03-17 Thread dermoritz
Thanks, that was easy. In my case i use Guice and bound my Serviceimplementations as Singletons - so i am quite sure there is only one. -- View this message in context: http://camel.465427.n5.nabble.com/Names-of-custom-MBeans-contain-hex-number-at-the-end-tp5764226p5764252.html Sent from the C

Re: AW: Dynamic Splitter timeouts

2015-03-17 Thread Gnanaguru S
Thanks Claus, And Jan, thats a very interesting Idea. Let me play around. Meanwhile I completed my first round of implementation by having a recipient list. Basically each split request will go to a recipient list, where I will create dynamic JMS endpoint with variable timeout values. So this