Strange behavior with simple language in camel route

2010-10-05 Thread Charles Moulliard
Hi, The following syntax works from(directTest) .inOut(toQueue) .to(logTest); from(toQueue) .transform().simple("Report incident id : ${in.body}") .to(fileOutput) .beanRef("feedback",

Re: [ANN] Apache Camel Survey (we need your help!)

2010-10-05 Thread Hadrian Zbarcea
Ok, doing it now. On Oct 6, 2010, at 12:58 AM, Claus Ibsen wrote: > Hadrian > > I think you should post a news about this survey on the Apache Camel front > page. > > > On Tue, Oct 5, 2010 at 5:34 PM, Hadrian Zbarcea wrote: >> >> With Apache Camel moving fast towards its 3.0 version we nee

Re: [ANN] Apache Camel Survey (we need your help!)

2010-10-05 Thread Claus Ibsen
Hadrian I think you should post a news about this survey on the Apache Camel front page. On Tue, Oct 5, 2010 at 5:34 PM, Hadrian Zbarcea wrote: > > With Apache Camel moving fast towards its 3.0 version we need to understand > the areas where we need to focus our attention and efforts. We want

Re: How to change directory while using sftp component

2010-10-05 Thread Claus Ibsen
Hi Lorin Thanks for digging into it. I will take a look at it in the morning. Hopefully I have a fix in SVN which you can try. On Tue, Oct 5, 2010 at 8:09 PM, Lorrin Nelson wrote: > Hi, I've confirmed this is a Camel bug and not an SFTP library limitation. > See below for trace log of a succes

Re: Split XPath JBoss

2010-10-05 Thread Claus Ibsen
On Tue, Oct 5, 2010 at 8:46 PM, lexsoto wrote: > > Problem solved.  Adding > class="org.apache.camel.jboss.JBossPackageScanClassResolver"/>Fixes the > problem for running inside JBoss container, but it breaks the unit test. > Separated this bean definition to its own separate file so it does not

Re: Camel Aggregation : All Messages Lost from the Queue.

2010-10-05 Thread Claus Ibsen
On Tue, Oct 5, 2010 at 7:11 PM, bxkrish wrote: > > Thanks Claus. I am able to see the message aggregated. I have one another > question. I need to do this aggregation at certain time of the day. Is it > possible to configure that with Camel 2.0. Does it support "quartz" timer. > If not, is there a

Re: Split XPath JBoss

2010-10-05 Thread lexsoto
Problem solved. Adding Fixes the problem for running inside JBoss container, but it breaks the unit test. Separated this bean definition to its own separate file so it does not get used during unit test. -- View this message in context: http://camel.465427.n5.nabble.com/Split-XPath-JBoss-tp3198

Re: How to change directory while using sftp component

2010-10-05 Thread Lorrin Nelson
Hi, I've confirmed this is a Camel bug and not an SFTP library limitation. See below for trace log of a successful retrieval from an absolute path. I did this in a way that's not suitable for general use: I just unconditionally hacked a "/" on the front of the path in SftpOperations.retrieveFil

Re: Split XPath JBoss

2010-10-05 Thread lexsoto
Hi Claus, I think I am getting close. With the jbossResolver resolver I get: 13:09:47,659 DEBUG [DefaultTypeConverter:379] Loading type converters ... 13:09:48,107 DEBUG [DefaultTypeConverter:390] Loading type converters done 13:09:48,109 INFO [DefaultTypeConverter:394] Loaded 0 type converters

Re: How to change directory while using sftp component

2010-10-05 Thread Lorrin Nelson
Hmm. How come when polling the absolute path it says this before listing the files in the directory (which works)? >> SftpOperations 2010-10-04 15:45:07,494 -- TRACE -- Changing directory: / >> SftpOperations 2010-10-04 15:45:07,608 -- TRACE -- Changing directory: tmp >> SftpOperations 2010-10-04

Re: Camel Aggregation : All Messages Lost from the Queue.

2010-10-05 Thread bxkrish
Thanks Claus. I am able to see the message aggregated. I have one another question. I need to do this aggregation at certain time of the day. Is it possible to configure that with Camel 2.0. Does it support "quartz" timer. If not, is there an alternative available? -- View this message in context

Re: Comma in email names

2010-10-05 Thread karthz
JIRA Ticket for this bug: https://issues.apache.org/activemq/browse/CAMEL-3199 -- View this message in context: http://camel.465427.n5.nabble.com/Comma-in-email-names-tp3198928p3199946.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Split XPath JBoss

2010-10-05 Thread Claus Ibsen
Don't assume you XML is gone. Its just that the DOM in Java has a way of not showing the XML content but just the NodeList or something like that. On Tue, Oct 5, 2010 at 6:20 PM, lexsoto wrote: > > I am sorry I still need help with this. > > I have enabled logging and tracing during unit test.

Re: Split XPath JBoss

2010-10-05 Thread lexsoto
I am sorry I still need help with this. I have enabled logging and tracing during unit test. I can see my XML message as is routed. The last time I see the XML body is when it is sent to the split component: [Tracer:88] 77fdf366-9dfc-414c-a7d7-6a687f24d078 >>> choice --> split[XPath: /message/b

[ANN] Apache Camel Survey (we need your help!)

2010-10-05 Thread Hadrian Zbarcea
With Apache Camel moving fast towards its 3.0 version we need to understand the areas where we need to focus our attention and efforts. We want to know you, our users, better and learn from your experiences and struggles using Camel so we can improve our project. Please fill out the short (25

Re: Comma in email names

2010-10-05 Thread Tracy Snell
I got it. I'll create the Jira and submit the patch as soon as I write a test to confirm the fix. On Oct 5, 2010, at 8:37 AM, Hadrian Zbarcea wrote: > Yes, please create a jira. The problem is the simple parsing that doesn't > account for commas (or semicolons) within quotes. > We need to fix

Re: Quartz Camel Spring Example?

2010-10-05 Thread Claus Ibsen
On Tue, Oct 5, 2010 at 3:56 PM, Russell, Brian wrote: > Thanks very much.  I guess the part that I'm not understanding in this > is how to get a List to return from a method where I can then > split it out based on a quart cron trigger. > > Let me ask it this way -- is the quartz implementation in

Re: Split XPath JBoss

2010-10-05 Thread lexsoto
I did not see this FAQ before. Funny thing is now that I added this dependency, the unit test fails exactly the same way as my integration test was. I suppose it is a good thing because at least I get consistent results. Hopefully now I will be able to troubleshoot better. Thank you very much f

Re: CAMEL 2 and 3

2010-10-05 Thread S. Ali Tokmen
Hello On 05/10/2010 08:41, Claus Ibsen wrote: No Camel 2.5 supports both Spring 2.5.x and 3.0. The maven pom.xml files is just set to use Spring 3.0.x by default. But you can still use Spring 2.5.6 with Camel 2.x. Aaaahhh OK. Well, when creating OSGi bundles (with camel routes inside), this

Re: XMPP pubsub

2010-10-05 Thread preben
Thanks - really helpful !!! and cool it has been mavenized. I'll give it a shot. /preben -- View this message in context: http://camel.465427.n5.nabble.com/XMPP-pubsub-tp3199018p3199662.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Quartz Camel Spring Example?

2010-10-05 Thread Russell, Brian
Thanks very much. I guess the part that I'm not understanding in this is how to get a List to return from a method where I can then split it out based on a quart cron trigger. Let me ask it this way -- is the quartz implementation in camel literally just the timer part of the process? So that, w

Re: Error parsing simple/properties in ?

2010-10-05 Thread Ashwin Karpe
Looks like Claus has already answered this issue. Claus, do you think we should capture this requirement for future enhancement or do you think this is overkill? Cheers, Ashwin... - - Ashwin Karpe Apache Camel Committer & Sr Principal

Re: Error parsing simple/properties in ?

2010-10-05 Thread Ashwin Karpe
Hi, Property support is available via the following 4 ways a> Using the Properties component b> Via the Registry and CamelContext c> Via expression Languages such as Simple, PropertyLanguage etc. d> In Endpoint URI's Property support is not currently available for Processors and indi

Re: Error parsing simple/properties in ?

2010-10-05 Thread Claus Ibsen
See ticket https://issues.apache.org/activemq/browse/CAMEL-3171 We are in the mercy of spring namespace handler and it doesn't allow property resolution, which means to support {{ }} everywhere in the is going to be tricky. So to support {{ }} we have to do this on a per EIP basis. You can set

Error parsing simple/properties in ?

2010-10-05 Thread Andreas A.
Hi I'm doing some conversion of charset in a branch of one of my routes, I'd like that charset to be given in a properties file, but the charset attribute doesn't seems to be translated into the proper property value. Is this a bug with this tag? ... Caused by: java.io.UnsupportedEncodingExce

Re: [camel-hawt] fixed in 2.5

2010-10-05 Thread Claus Ibsen
On Tue, Oct 5, 2010 at 2:27 PM, Olivier.Roger wrote: > > Seeing the ticket  https://issues.apache.org/activemq/browse/CAMEL-3120 > CAMEL-3120  I had > http://servicemix.396122.n5.nabble.com/Feature-Update-HawtDB-for-Camel-td3199011.html#a3199011 > a question for servicemix . > I guess the question

Re: Comma in email names

2010-10-05 Thread Hadrian Zbarcea
Yes, please create a jira. The problem is the simple parsing that doesn't account for commas (or semicolons) within quotes. We need to fix the parsing. Hadrian On Oct 5, 2010, at 4:27 AM, Claus Ibsen wrote: > Hi > > Yeah could be the alternative way of including a display name is not > support

[camel-hawt] fixed in 2.5

2010-10-05 Thread Olivier.Roger
Seeing the ticket https://issues.apache.org/activemq/browse/CAMEL-3120 CAMEL-3120 I had http://servicemix.396122.n5.nabble.com/Feature-Update-HawtDB-for-Camel-td3199011.html#a3199011 a question for servicemix . I guess the question is more related to Camel so I ask it here. I am currently usin

XMPP pubsub

2010-10-05 Thread Bernd Fondermann
> Seems that camel-xmpp doesn't implement pubsub Smack features (XEP-0060 > Publish-Subscribe). There is a jivesoftware library that supports pubsub, > and both ejabberd and openfire servers support pubsub. > > Anybody have any ideas about at Camel component for this ? > eg. create a new one or ext

Re: Comma in email names

2010-10-05 Thread Claus Ibsen
Hi Yeah could be the alternative way of including a display name is not supporting comma. Can you create a JIRA ticket? Then we should only split by semi colon to be safe. On Tue, Oct 5, 2010 at 9:27 AM, karthz wrote: > > Hi, > > In camel-mail, if there's a comma in the "name" part of the ema

Re: FTP to HDFS - large gzipped files

2010-10-05 Thread Claus Ibsen
On Tue, Oct 5, 2010 at 9:28 AM, coolgold wrote: > > Thank you Claus.  Couldn't gzip data format be used for unzipping? > http://camel.apache.org/gzip-data-format.html > -- Ah yeah forgot about that one. However I think it works in memory only. However its java code so you can always look at the s

Re: FTP to HDFS - large gzipped files

2010-10-05 Thread coolgold
Thank you Claus. Couldn't gzip data format be used for unzipping? http://camel.apache.org/gzip-data-format.html -- View this message in context: http://camel.465427.n5.nabble.com/FTP-to-HDFS-large-gzipped-files-tp3192431p3198933.html Sent from the Camel - Users mailing list archive at Nabble.c

Comma in email names

2010-10-05 Thread karthz
Hi, In camel-mail, if there's a comma in the "name" part of the email, like "Doe, John" in Camel MailBinding, it gets split into two separate recipients "Doe" and "John"        // we support that multi recipient can be given as a string separated by comma or semicolon         String[]

Re: FTP to HDFS - large gzipped files

2010-10-05 Thread Claus Ibsen
On Mon, Oct 4, 2010 at 7:14 PM, coolgold wrote: > > I'm considering using camel and activemq for moving gzipped (~1gb) files form > ftp server to hdfs. I'm aware of existence of ftp and hdfs components, but > I'm not sure about the support for splitting for gzipped files or streaming > method with

Re: How to change directory while using sftp component

2010-10-05 Thread Claus Ibsen
Hi Great that the relative works. This is also what I expected. In terms of absolute then Camel changes the directory to / (since its absolute) and the SFTP library returns OK for this. But in reality it does not go to the root path, but most likely just goes to the home directory of the user. An