Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Claus Ibsen
Hi Check the release notes for 2.15 which has improvements in this area http://camel.apache.org/camel-2150-release.html On Thu, Mar 26, 2015 at 9:20 AM, Atanas Shindov atanas.shin...@gmail.com wrote: 2.12.1 -- View this message in context:

Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Atanas Shindov
I guess you are referring to this entry: Removing a route now also remove its static Endpoint's from the EndpointRegistry (if those endpoints are not shared and used by other routes). Mind that any dynamic endpoint created during routing from dynamic EIPs such as recipient list, routing slip,

Re: Setting up CamelContext with Guice

2015-03-26 Thread dermoritz
My problem with camels built in guice was, i could not control the start of the context. This happens as soon as guice begins - within the module you are extending (calling run is not necessary). So my alternate solution to use guice is: I extended org.apache.camel.main.Main and injected my bound

Re: Setting up CamelContext with Guice

2015-03-26 Thread dermoritz
i just created an ticket with a suggestion: https://issues.apache.org/jira/browse/CAMEL-8555 -- View this message in context: http://camel.465427.n5.nabble.com/Setting-up-CamelContext-with-Guice-tp5764709p5764818.html Sent from the Camel - Users mailing list archive at Nabble.com.

Math operations with simple expression

2015-03-26 Thread angelo.rlcosta
hi guys, anyone know if in camel is possible to perform math operations like sum and division with simple expression? Thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/Math-operations-with-simple-expression-tp5764819.html Sent from the Camel - Users mailing

Re: Math operations with simple expression

2015-03-26 Thread Claus Ibsen
Hi No this is not possible and not the goal of that language. You can use groovy / javascript etc instead On Thu, Mar 26, 2015 at 11:09 AM, angelo.rlcosta angelo.rlco...@gmail.com wrote: hi guys, anyone know if in camel is possible to perform math operations like sum and division with simple

Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Atanas Shindov
2.12.1 -- View this message in context: http://camel.465427.n5.nabble.com/Route-removal-triggers-endpoint-shutdown-tp5764796p5764800.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Claus Ibsen
What version of Camel do you use? On Thu, Mar 26, 2015 at 8:40 AM, Atanas Shindov atanas.shin...@gmail.com wrote: Hello, I have a custom singleton endpoint which manages a resource used by all consumers created by this endpoint. I open and close the resource in the start() and stop() methods

how to create @ManagedOperations at runtime

2015-03-26 Thread dermoritz
The use case is: I want expose a number of methods via jmx but the number of methods is known at runtime - given by user settings (constant after start). An alternate solution would be to expose a method that returns a list of strings (the relevant user settings) and another method that has a

Re: Math operations with simple expression

2015-03-26 Thread angelo.rlcosta
Thanks Claus. Another question, i am looking at http://camel.apache.org/splitter.html and thinking if its possible to split for example 100 items in to smaller chunks of 10 items? Any idea? Regards, -- View this message in context:

Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Atanas Shindov
Hi Claus, I just checked the 2.15 code and it's the same: /// endpoints should only be stopped when Camel is shutting down // see more details in the warmUp method ServiceHelper.stopAndShutdownServices(route.getEndpoint());/ Looks like you are still closing an endpoint on route removal? --

Re: Math operations with simple expression

2015-03-26 Thread Morgan Hautman
Hi Angelo, Could you split you're questions in different threads? This is easier to follow and each thread is so problem specific. Regards, Morgan On 26/03/2015 12:45, angelo.rlcosta wrote: Thanks Claus. Another question, i am looking at http://camel.apache.org/splitter.html and thinking if

Re: Math operations with simple expression

2015-03-26 Thread angelo.rlcosta
Ok Sure Morgan! Ângelo Costa On Thu, Mar 26, 2015 at 11:59 AM, Morgan.Hautman [via Camel] ml-node+s465427n5764823...@n5.nabble.com wrote: Hi Angelo, Could you split you're questions in different threads? This is easier to follow and each thread is so problem specific. Regards, Morgan

Re: Math operations with simple expression

2015-03-26 Thread Claus Ibsen
If you use tokenizer to split then it has a group option http://camel.apache.org/splitter.html On Thu, Mar 26, 2015 at 12:45 PM, angelo.rlcosta angelo.rlco...@gmail.com wrote: Thanks Claus. Another question, i am looking at http://camel.apache.org/splitter.html and thinking if its possible to

Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread ercan.canlier
Hi to everybody, First of all, many thanks for such a great framework that you implemented so far. It is extremely powerful and very fast. The documentation is quite in detail. I am implementing a web application for our integration tests. I need to track incoming / outcoming messages to database.

Re: Json Splitter

2015-03-26 Thread Minh Tran
Here you go. split streaming=true jsonpath$.[*]/jsonpath …. /split The json I feed into it is an array, e.g. [ {…}, {….} ] On 27/03/2015, at 3:08 PM, Reji Mathews contactr...@gmail.com wrote: Hi Minh Did you just say you made the json path work in camel splitter ? If so

Re: Json Splitter

2015-03-26 Thread Reji Mathews
Hey that's cool. Let me try my luck and update ! Thanks Minh Cheers Reji On 27 Mar 2015 09:48, Minh Tran darth.minhs...@gmail.com wrote: Here you go. split streaming=true jsonpath$.[*]/jsonpath /split The json I feed into it is an array, e.g. [ {...}, {} ] On

Re: Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread Willem Jiang
I think you can use CXF Interceptors[1][2] to trace the message[3], then you don’t need to build a proxy to interceptor all the message. You can do some addition work base on CXF Logging Interceptor. [1]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingInInterceptor.html

Re: Json Splitter

2015-03-26 Thread Reji Mathews
Hi Minh Did you just say you made the json path work in camel splitter ? If so can u share ur splitter component cofig from the route file . Cheers Reji On 27 Mar 2015 02:56, Minh Tran darth.minhs...@gmail.com wrote: I can confirm jsonpath works in a splitter. On 27/03/2015, at 12:46 AM,

Re: Questions about JMS component and XA Transactions

2015-03-26 Thread gabfssilva
Thanks Thiago! Answering my own question: I forgot to define the *maxPoolSize* property in *AtomikosConnectionFactoryBean*, the default is 1, and when I set to a higher value, everything works as expected. -- View this message in context:

Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Claus Ibsen
Hi You should favor to keep state on the component and then delegate from endpoints on add/remove etc, then you can keep track of what are in use and when there is no users of the resource, you can cleanup. This is what other camel components does, such as seda / jetty etc. On Thu, Mar 26, 2015

Questions about JMS component and XA Transactions

2015-03-26 Thread gabfssilva
Hi! I'm trying to use the JMS component, which connects to a JBossMQ (it runs on a JBoss 4.2.3GA :/ ) and I'm having some problems when I try to use XA transactions (actually, even with local transactions I get the same behavior). The problem is, when I try to set a Transaction Manager to a JMS

Re: Questions about JMS component and XA Transactions

2015-03-26 Thread Thiago Kronig
Gabriel! You and I work at the same company. Contact me if you need help! On Thu, Mar 26, 2015 at 3:12 PM gabfssilva gabfssi...@gmail.com wrote: Hi! I'm trying to use the JMS component, which connects to a JBossMQ (it runs on a JBoss 4.2.3GA :/ ) and I'm having some problems when I try to use

SFTP: RequiredAuthentications2

2015-03-26 Thread shreyas
Does camel support SFTP with RequiredAuthentications2 as provided in this link for auth:  http://security.stackexchange.com/questions/17931/possible-to-use-both-private-key-and-password-authentication-for-ssh-login? Thanks Shreyas

Re: Json Splitter

2015-03-26 Thread Mark Webb
Not that I've seen. I've had the need for this in the past. Would make a nice new feature. On Wed, Mar 25, 2015 at 3:09 AM, contactreji contactr...@gmail.com wrote: Hi Is there something out of the box in camel which can help me split json records? Regards Reji - Reji Mathews

simple string split / aggregate

2015-03-26 Thread Mark Lybarger
i'm looking to implement a simple string split and aggregate to learn camel pattern implementations. i have splitting on a space working but i can't see how to easily reassemble the bits. is there a way to do this without implementing a custom aggregator strategy? here's my main: public static

Re: Json Splitter

2015-03-26 Thread Claus Ibsen
Hi I am not sure how far we got with jsonpath http://camel.apache.org/jsonpath But json path may support some kind of iterating json, and if it does we can use it in Camel. Maybe give it a try and check its docs what it can do https://code.google.com/p/json-path/ On Thu, Mar 26, 2015 at 2:43

Re: Apache Camel decodes HTTP query params and httpclient fails with Invalid query exception

2015-03-26 Thread Claus Ibsen
Hi What version of Camel do you use? On Thu, Mar 26, 2015 at 7:27 AM, Liliana.Neagul liliana.iovanov...@gmail.com wrote: Hi, I'm trying to send from a camel route an HTTP request using an encoded query parameter (for symbol euro €), and it seems that camel decode the parameter and sent it

Re: Apache Camel decodes HTTP query params and httpclient fails with Invalid query exception

2015-03-26 Thread Willem Jiang
Hi, Did you try to setup the query parameter with the header name of Exchange.HTTP_QUERY? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On March 26, 2015 at

Re: simple string split / aggregate

2015-03-26 Thread Claus Ibsen
Hi If you want to aggregate you would need to use one. The splitter has that supported out of the box as the composed message processor eip See the splitter only section http://camel.apache.org/composed-message-processor.html For aggregation strategy you can use pojos also with camel, so you

Re: Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread Willem Jiang
Hi, I guess you just want to create the proxy dynamically, maybe it is based on the request url or content, Am I right? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo:

Re: Json Splitter

2015-03-26 Thread Minh Tran
I can confirm jsonpath works in a splitter. On 27/03/2015, at 12:46 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi I am not sure how far we got with jsonpath http://camel.apache.org/jsonpath But json path may support some kind of iterating json, and if it does we can use it in Camel.

Re: Route removal triggers endpoint shutdown

2015-03-26 Thread Claus Ibsen
Hi But that said, we could likely take a look if we could detect if the route endpoint is used by other routes, and avoid shutting it down, as we have that logic for endpoints used within the route. You are welcome to log a JIRA ticket then we can take a stab at improving this. On Thu, Mar 26,

SortTerm[] in Spring XML

2015-03-26 Thread camelvev
Hello! This is probably stupidly simple, but: I'd like to use the new SortTerm[] functionality with IMAP in Camel 2.15. I'm using spring xml to configure my bean bindings and want to refer to the sort term (say, SortTerm.SUBJECT) by referring to a binding id in the endpoint URI like this:

Re: Camel File - Streaming

2015-03-26 Thread Claus Ibsen
Hi Just use Camel's type converter to get the file as java.io.File or FileInputStream etc. http://camel.apache.org/type-converter.html On Wed, Mar 25, 2015 at 7:11 PM, contactreji contactr...@gmail.com wrote: Can I stream a file's content into camel route using File Component? I have a huge

Re: Write Collection of FixedLengthRecord to Flat File

2015-03-26 Thread jayram7
I think I got a solution for this. I explicitly created a List of Map and then marshalling it ListMaplt;String, Object pojoListMap = new ArrayListMaplt;String, Object(); MapString, Object pojoMap = null; for(POJO pojo : pojoList) { pojoMap = new HashMapString,

Re: Hlep Please - TransactionErroHandler/retry/DLC issues. Stuck

2015-03-26 Thread mattmadhavan
Hello, Anyone out there please? Matt - Thanks Matt G. Madhavan -- View this message in context: http://camel.465427.n5.nabble.com/Hlep-Please-TransactionErroHandler-retry-DLC-issues-Stuck-tp5764363p5764782.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Help with sequential, synchronous routes

2015-03-26 Thread Claus Ibsen
Hi You can use control bus to control routes http://camel.apache.org/controlbus And related to that would be route policy http://camel.apache.org/routepolicy.html On Wed, Mar 25, 2015 at 5:48 PM, lancemethot lance.met...@libertymutual.com wrote: Greetings, I am new to Camel, so forgive me

Apache Camel decodes HTTP query params and httpclient fails with Invalid query exception

2015-03-26 Thread Liliana.Neagul
Hi, I'm trying to send from a camel route an HTTP request using an encoded query parameter (for symbol euro €), and it seems that camel decode the parameter and sent it to httpclient decoded. Httpclient fails then with 'Invalid query' exception. My route is:

Re: Setting up CamelContext with Guice

2015-03-26 Thread Willem Jiang
When you call the new InitialContext(); the camel context is started and it already loads the camel route, so it’s useless when setup the camel context after the camel context is started. You can extend the GuiceCamelContext to apply some setting on the CamelContext inside the start method.

Route removal triggers endpoint shutdown

2015-03-26 Thread Atanas Shindov
Hello, I have a custom singleton endpoint which manages a resource used by all consumers created by this endpoint. I open and close the resource in the start() and stop() methods of the endpoint assuming that this way I would prevent illegal states, i.e. the resource is closed, but a consumer is

Re: Apache Camel decodes HTTP query params and httpclient fails with Invalid query exception

2015-03-26 Thread Liliana.Neagul
@Willem: Yes I tried to the parameter in Exchange.HTTP_QUERY header name. It has the same behavior. -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-decodes-HTTP-query-params-and-httpclient-fails-with-Invalid-query-exception-tp5764794p5764843.html Sent from the

Re: Web Service Proxy to track incoming and outcoming messages

2015-03-26 Thread ercan.canlier
Hi Jiang, Actually, there is a web application where you will have possibility to publish web services. Client will load wsdl file and then i will be generating it via maven with help of camel. This step is clear and i have already finished it but i also want to track incoming and outgoing

Re: Json Splitter

2015-03-26 Thread Preben.Asmussen
Or just convert json to a Map and iterate over that. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Json-Splitter-tp5764739p5764844.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: REST DSL typo in webpage

2015-03-26 Thread Taariq Levack
Fixed, thanks for reporting and please feel free to edit the site as you go along. On Thu, Mar 26, 2015 at 4:16 PM, Mark Webb elihusma...@gmail.com wrote: First off, thanks for this feature. It rocks. I've used it a few times already. Near the bottom of the page

Re: setup FTP producer scenario

2015-03-26 Thread jmhamm
I was trying to accomplish this same sort of functionality. Is there a specific min version that would allow us to write to one file and then rename on completion? The specifics behind mine were to have a route that pulled messages off of a queue and append a file until a timer went off then the

REST DSL typo in webpage

2015-03-26 Thread Mark Webb
First off, thanks for this feature. It rocks. I've used it a few times already. Near the bottom of the page http://camel.apache.org/rest-dsl, there's a typo in the section Enabling or disabling Jackson JSON features. The XML code snippet has a few errors: 1. bindingModel should be

Re: Apache Camel decodes HTTP query params and httpclient fails with Invalid query exception

2015-03-26 Thread Liliana.Neagul
I'm using apache-camel version 2.14.1 -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-decodes-HTTP-query-params-and-httpclient-fails-with-Invalid-query-exception-tp5764794p5764842.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: REST DSL typo in webpage

2015-03-26 Thread Mark Webb
Will do. I just checked any my account (from my MINA days) still works. Thanks, Mark On Thu, Mar 26, 2015 at 11:03 AM, Taariq Levack taar...@gmail.com wrote: Fixed, thanks for reporting and please feel free to edit the site as you go along. On Thu, Mar 26, 2015 at 4:16 PM, Mark Webb