Camel-csv 2.2.0: reading a single line csv file

2010-05-03 Thread Attilio Donà
Hi all, I've to read a csv file and I want use camel to do this. Camel bindy seems to me that doesn't know the csv convention that a field separator can be a character field using double quotes: "contains, comma", "another field" So the adopted solution is camel-csv. Using camel-csv to parse

file locking issues debug

2010-05-03 Thread lpiccoli
hi all, i am using the file2 as a consumer on a linux os. occasionally i get crazy error while trying to read a file. it reads a 0 length file. The file is written to the directory from another process. i am using readLock=fileLock are there some simple debug techniques to determine the probl

Re: Camel topic subscription with consumer.retroactive = true

2010-05-03 Thread Willem Jiang
There is an activemq-camel component which provides some ActiveMQ specific feature in the ActiveMQ. I just checked the code of activemq-camel, there is no option for the consumer.retroactive. Maybe you can fill a JIRA[1] in ActiveMQ to ask for this feature. [1]https://issues.apache.org/activem

Apidocs broken

2010-05-03 Thread Norman Maurer
Hi all, just in case you are not aware of it The link to the apidocs is broken at the moment. Thx Norman

Camel topic subscription with consumer.retroactive = true

2010-05-03 Thread jtodd
Hi All, Active MQ has this http://activemq.apache.org/retroactive-consumer.html consumer.retroactive feature which I've used with a simple Spring JMS listener to tell it to ask for old messages given the http://activemq.apache.org/subscription-recovery-policy.html subscription recovery policy

Re: Camel SMTP Server

2010-05-03 Thread Norman Maurer
Hi Jim, sorry for the delay.. Job was just crazy over the last week. Anyway are you still interested in a smtp camel component ? I'm currently writing the code and will have it avaible soon. Maybe there is a place in camel itself for it ? Bye, Norman 2010/4/20 Norman Maurer : > Hi Jim, > > just

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hello again, I guess I figured out a problem with my code. I wasn't starting the consumer. Now my code looks like: PollingConsumer consumer = null; try{ final Endpoint endpoint = getContext().getEndpoint( "ftp://t...@127.0.0.1:21/?password=test";); consum

Re: Spring 3.0 and Camel 2.2 - Route configure() called before Spring beans injected

2010-05-03 Thread jonathanq
Claus, That worked! I changed my spring configuration to to the one below and everything worked as expected. Thanks for the help! Jonathan Claus Ibsen-2 wrote: > > Hi > > Can you try with a depends-on="camel" attribute on the for the > RouteBuilder to see if

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hi Claus, I've checked the Timer based example but it's implemented with ConsumerTemplate which is not included in Camel 1.x. I've tried to use Polling Consumer but I couldn't manage: @Override public void configure() { from(getJmsQueueName()).to("ftp://t...@127.0.0.1:21/?password=test); try{

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread Claus Ibsen
On Mon, May 3, 2010 at 11:30 AM, olamalam wrote: > > Hi Claus, > > I forgot to mention that I'm using 1.6.1 version of camel-core and camel-ftp > which doesn't have routePolicy.  Is there any alternative that I can use > with camel 1.6.1? Because we are not planning to migrate to camel 2.2 right >

Synchronization in camel route

2010-05-03 Thread srinidandi
Hi, Does Camel provide any synchronization feature in a route? I have a simple route defined inside a router class where I read a input csv file, process it and store/insert the information if the mandatory field does not exist in the database while do an update if the mandatory field exists in t

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hi Claus, I forgot to mention that I'm using 1.6.1 version of camel-core and camel-ftp which doesn't have routePolicy. Is there any alternative that I can use with camel 1.6.1? Because we are not planning to migrate to camel 2.2 right now. I'll also check 13th chapter of camel in action book to

Re: camel-ftp questions: When the FTP server is down

2010-05-03 Thread Claus Ibsen
Hi On Mon, May 3, 2010 at 10:45 AM, olamalam wrote: > > Hi to all, > > I've written a route which listens to an activemq queue and sends the files > coming from the queue to an FTP server: > from("jms:test.MyQueue").process(processor).to("ftp://t...@127.0.0.1:21/?password=test";); > When I shut

camel-ftp questions: When the FTP server is down

2010-05-03 Thread olamalam
Hi to all, I've written a route which listens to an activemq queue and sends the files coming from the queue to an FTP server: from("jms:test.MyQueue").process(processor).to("ftp://t...@127.0.0.1:21/?password=test";); When I shut the server down and put some files to queue and immediately start t

Re: Java DSL routing according to hierarchical pojo configuration object?

2010-05-03 Thread Claus Ibsen
Hi And if you use beans then you can bean binding to adapt your message to bean parameters. http://camel.apache.org/bean-binding.html On Mon, May 3, 2010 at 10:11 AM, Claus Ibsen wrote: > Hi > > You can use predicates to do type safe CBR > http://davsclaus.blogspot.com/2009/02/apache-camel-and

Parameter for MQSeries Channelname

2010-05-03 Thread sopranoa
Hello, i have a problem connecting to IBM MQSeries. Our admistrator shut down defaultchannel and ask me to provide the correct channel name. Actually i provide this param - transportType - queueManager - port - hostName Is it possible to provide the Channel and which param do I have to use for t

Re: Java DSL routing according to hierarchical pojo configuration object?

2010-05-03 Thread Claus Ibsen
Hi You can use predicates to do type safe CBR http://davsclaus.blogspot.com/2009/02/apache-camel-and-using-compound.html >From the Predicate you get access to Exchange which means you can get the body/headers etc. You can also use some of the scripting languages to do it in the DSL directly http