Re: Camel OSGi services component

2012-06-22 Thread Guillaume Nodet
On Fri, Jun 22, 2012 at 6:33 AM, Sergey Zhemzhitsky szh.s...@gmail.com wrote: Hello, guys, I agree that if the camel-core could be enhanced to achieve easy cross-context communication in the single JVM it would be fine. Claus committed the direct-vm component recently which is part of 2.10:

Re: Problem with Camel Jpa Component and Container Managed Transaction

2012-06-22 Thread Sriraman Gopalan
Hi Claus, Thanks for the quick reply. Please find below the complete log from the point the consumer poll is started till it is completed: 2012-06-22 12:11:20,178 | TRACE | .CustomerAccount | ScheduledPollConsumer | 84 - org.apache.camel.camel-core - 2.9.2 | Scheduled task started

Re: JBoss 7.1.1 with Camel and JMXAgent

2012-06-22 Thread Claus Ibsen
Hi I assume you want JMX at runtime, as else you can disable it on Camel. For what is worth it, you can plugin a custom JMX management agent in Camel http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/ManagementAgent.html In case you need to do some extra leg-work to

consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
Hi I had some funny problems when getting exchanges from a consumer template, the attached code snippet illustrates a minimal example that demonstrates the problem. My findings are: When getting a batch of files (in my case via an sftp endpoint) doing a consumerTemplate.doneUoW(e) afterwards

Re: camel xslt 2.0 support

2012-06-22 Thread Claus Ibsen
Hi There is a camel-saxon feature you can install, if using Camel and xslt. And I think you can see a JVM system property to tell it which xslt factory to use. So maybe that can enforce the saxon on a JVM wide level. On Thu, Jun 21, 2012 at 7:45 PM, weather99 fflei...@harris.com wrote:

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
I forgot: The test code of course requires an sftp server and bunch of files for it to work (fail) -- View this message in context: http://camel.465427.n5.nabble.com/consumerTemplate-threading-worries-when-having-a-Batch-Consumer-tp5714904p5714906.html Sent from the Camel - Users mailing list

Re: camel xslt 2.0 support

2012-06-22 Thread Thibault
Are you sure the prolog ?xml version=1.0 encoding=UTF-8? indicates that a XSLT 1.0 transform was done ? I always thought this one was the prolog for the XML version, not for the transform applied... In my case, all my xslt 2.0 transform generates xml version 1.0. 2012/6/21 weather99 [via

Re: AMQ_SCHEDULED_DELAY problem with camel

2012-06-22 Thread Claus Ibsen
Hi What Camel version are you using? You are using a custom message converter in the to. Can you double check that you get the AMQ_DELAYED_xx header included. And if you enable DEBUG/TRACE logging for org.apache.camel.component.jms (notice there can be a lot of logging) But that may help you

Re: camel xslt 2.0 support

2012-06-22 Thread Claus Ibsen
On Fri, Jun 22, 2012 at 11:14 AM, Thibault thibault.cas...@gmail.com wrote: Are you sure the prolog ?xml version=1.0 encoding=UTF-8? indicates that a XSLT 1.0 transform was done ? I always thought this one was the prolog for the XML version, not for the transform applied... In my  case, all my

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread Claus Ibsen
The consumer template is intended for consuming a *single* message. So in the case of the ftp endpoint, you should use the fileName option to specify what file to consume. For batch consuming then its better to use a Camel route for that. On Fri, Jun 22, 2012 at 11:06 AM, ldam

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
Unfortunately we are not the masters of the filename given :/ The reason we use consumerTemplate is because we use it in an JCA adapter and wants to be in control of the synchronization. kr. ldam -- View this message in context:

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread Claus Ibsen
On Fri, Jun 22, 2012 at 11:53 AM, ldam lars...@gmail.com wrote: Unfortunately we are not the masters of the filename given :/ The reason we use consumerTemplate is because we use it in an JCA adapter and wants to be in control of the synchronization. You can use maxMessagesPerPoll=1 to only

Re: Problem with Camel Jpa Component and Container Managed Transaction

2012-06-22 Thread Claus Ibsen
Hi You run this in OSGi Blueprint. Just to be sure, have you got this running outside osgi in lets say a regular junit test case or something. This helps track down knowing its related to your runtime platform. On Fri, Jun 22, 2012 at 8:56 AM, Sriraman Gopalan sreeraa...@gmail.com wrote: Hi

Re: consumerTemplate threading worries when having a Batch Consumer

2012-06-22 Thread ldam
Hi I found that out, which led me to the reasons for the problem above. Will go for that, though it would be nice for consumerTemplate to support batch in the future (in case one forgets that option in a new configuration). Thanks. kr. ldam -- View this message in context:

Re: Fetching metadata from Camel JDBC Component

2012-06-22 Thread Claus Ibsen
On Thu, Jun 21, 2012 at 8:10 PM, valivets samira.valiv...@barclays.com wrote: Hi all.. I am using camel jdbc component to run a query and get a resultset. I need the column names in a separate list. Currently I am fetching the column names manually from the list of maps returned. Is there a

recipientList, aggregationStrategy and completionTimeout

2012-06-22 Thread Marco Crivellaro
Hi all, I am re-factoring a component which makes use of Camel (just moved to camel 2.9.2), a part of the route is currently built as: .recipientList(header(recipientListHeader).tokenize(,)) .parallelProcessing().timeout(aggregationTimeout) .executorService(customThreadPoolExecutor)

Re: The problem only with CronScheduledRoutePolicy - running routes with Quartz works great.

2012-06-22 Thread drapanjanas
Facing same issue. :( For now, I just registered separate QuartzComponent for persistent quartz timers. Fortunately my CronScheduledRoutePolicy does not teed to be stateful, so in my case it just use default QuartzComponent (with id=quartz) and so does not cause failures during app startup.

Re: recipientList, aggregationStrategy and completionTimeout

2012-06-22 Thread Claus Ibsen
On Fri, Jun 22, 2012 at 12:31 PM, Marco Crivellaro marco.cr...@gmail.com wrote: Hi all, I am re-factoring a component which makes use of Camel (just moved to camel 2.9.2), a part of the route is currently built as: .recipientList(header(recipientListHeader).tokenize(,))

Re: recipientList, aggregationStrategy and completionTimeout

2012-06-22 Thread Marco Crivellaro
Is there a chance dinamic timeout can be added in a future version? I suppose it can be done provided the fact it is avaliable in aggregation. Is there a way to make use of completionTimeout of the aggregation strategy? -- View this message in context:

RE: camel xslt 2.0 support

2012-06-22 Thread weather99
Hi Claus. Thanks so much for the reply. I was afraid that might cause some confusion. I'm saying that an xslt 1.0 transfrom was done because all I got in the translated file was the prolog and nothing else, not because the xml version was 1.0. The second example, where I just use a

Re: Fetching metadata from Camel JDBC Component

2012-06-22 Thread Henryk Konsek
feel free to log a JIRA and work on a patch Jira ticket [1] for the issue created. @Valivets, do you want to work on this or should I implement the patch? [1] https://issues.apache.org/jira/browse/CAMEL-5383 -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: Problem with Camel Jpa Component and Container Managed Transaction

2012-06-22 Thread Sriraman Gopalan
Hi Claus, Thanks for the suggestion. I don't have a test case offhand which I can share with you right away. I will work on this and will share the same once it is ready. best regards Sriraman. -- View this message in context:

Re: Does Camel Bindy supports text files

2012-06-22 Thread Henryk Konsek
I need to process a text file (.txt). So @CsvRecord works for both .txt and .csv files ? Whenever you talk about processing CSV file and don't mention Stream [1] component, a unicorn dies. :) CsvDataFormat csv = new CsvDataFormat(); csv.setDelimiter(|); // Record represented as ListString goes

data_coding in camel-smpp

2012-06-22 Thread expressmobile
Hi all, I am using camel-smpp (http://camel.apache.org/smpp.html) component for connecting with smsc and have issue with data_coding parameter of smpp specification. Using parameter alphabet=8 sets data_coding=25. With parameter encoding=UTF-16 it makes correct encoding for cyrillic

Re: Split: how to include parents in XML and prevent original message?

2012-06-22 Thread PJ Walstroem
I ended up doing .split().method(splitterBean, splitWithParents).aggregationStrategy(new UseLatestAggregationStrategy()) where my splitterBean solves 1) as mentioned in the original post and the use of UseLatestAggregationStrategy solves 2) as mentioned in the original post. I have no idea why

Re: Split: how to include parents in XML and prevent original message?

2012-06-22 Thread Claus Ibsen
On Fri, Jun 22, 2012 at 4:10 PM, PJ Walstroem walst...@hotmail.com wrote: I ended up doing .split().method(splitterBean, splitWithParents).aggregationStrategy(new UseLatestAggregationStrategy()) where my splitterBean solves 1) as mentioned in the original post and the use of

Re: Problem with Camel Jpa Component and Container Managed Transaction

2012-06-22 Thread Babak Vahdat
Hi The problem you're facing is pretty obvious: Looking at your persistence.xml you do ask for a Container managed global transaction, as you have defined the transaction type to be JTA, as well you've defined a JTA-enabled-Datasource for it. BUT you make use of spring JpaTransactionManager which

Camel jdbc component metadata

2012-06-22 Thread vsam
Hi I am using camel jdbc component to run a query and get a resultset. I need the column names in a separate list. Currently I am fetching the column names manually from the list of maps returned. Is there a better way to do this? Is there a way to get the metadata separately? -- View this

Re: Camel jdbc component metadata

2012-06-22 Thread Babak Vahdat
Hi Please don't ask the same question more than once using different login-Ids: http://camel.465427.n5.nabble.com/Fetching-metadata-from-Camel-JDBC-Component-td5714880.html As you see by the thread above Henryk has already opened a JIRA ticket for you and is kindly asking you if you would like

Re: Stopping long redelivery on Camel shutdown

2012-06-22 Thread CraigLaSalle
Thanks again, it worked like a charm. -- View this message in context: http://camel.465427.n5.nabble.com/Stopping-long-redelivery-on-Camel-shutdown-tp5714773p5714936.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: data_coding in camel-smpp

2012-06-22 Thread Sergey Zhemzhitsky
Hello, FEFF - are the BOM(http://en.wikipedia.org/wiki/Byte_order_mark) bytes that are used to identify bytes order for UTF-16 encoding. 1. How to set 'data_coding' manually without usign 'alphabet' parameter? As far as I know component does not support such an option at the time. 2. How to

Re: How to achieve both xpath and aggregator

2012-06-22 Thread Deepthi
Hi, I am trying to aggregate in the following manner: camel:route camel:from uri=direct:start/ camel:aggregate strategyRef=aggregatorStrategy camel:correlationExpression camel:xpath/order/id/camel:xpath /camel:correlationExpression /camel:aggregate

Re: Camel OSGi services component

2012-06-22 Thread Sergey Zhemzhitsky
Hello Guillaume, I suppose static method to retrieve consumers that can be filtered by a custom expression will be quite enough. Regards, Sergey On Fri, Jun 22, 2012 at 6:33 AM, Sergey Zhemzhitsky szh.s...@gmail.com wrote: Hello, guys, I agree that if the camel-core could be enhanced to

Re: How to achieve both xpath and aggregator

2012-06-22 Thread Christian Müller
Have a look at [1]. You have to define when Camel should complete the aggregation (e.g. after 10 messages arrived, after 10 minutes, after ...). [1] http://camel.apache.org/aggregator2.html Best, Christian On Fri, Jun 22, 2012 at 10:41 PM, Deepthi deepthi...@gmail.com wrote: Hi, I am trying

Lazy Camel...

2012-06-22 Thread Christian Müller
;-) Wish you a nice weekend, Christian