Re: Camel file component preMove creates directory before read lock acquired?

2013-04-01 Thread icemanltd
This behavior is causing an issue. I have specified
preMove=temp/${exchangeID} with noop=true idempotent=false and
readLock=rename. I was expecting that the lock would first be acquired, then
the file moved to the preMove directory and then processing would begin and
eventually end leaving the file in the preMove directory.

If I ensure the file cannot be renamed (by opening the file in an editor
that holds an exclusive lock on the file), I will get a number of empty
directories being created under the temp directory. Finally when I release
the lock the file will moved to the appropriate directory under temp.

Am I doing something wrong, what is the behavior I should expect?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-file-component-preMove-creates-directory-before-read-lock-acquired-tp5728193p5730176.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Is Quartz component a scheduled polling component?

2013-06-11 Thread icemanltd
Maybe I am misreading the polling consumer documentation  here
  ? It looks like the Quartz
component should be a ScheduledPollConsumer and thus support the
pollStrategy attribute but when I try it in my Spring DSL it reports the
pollStrategy as an unsupported property.

My route looks like






Is the documentation wrong, am I misunderstanding it or am I not using it
properly?

Regardless, I am trying to control messages being picked up off the queue.
My polling strategy would check some system/resource availability and
decline the poll if not ready. Maybe there is a better way to do it?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Is Quartz component a scheduled polling component?

2013-06-12 Thread icemanltd
Thank you for your response. I had exactly what I wanted with a file endpoint
and wanted to extend that to a jms endpoint. I guess am misunderstanding the
documentation. Anyway, I think I have accomplished what I wanted to do using
consumer/producer templates and a bean.

The route looks like



 



And, in the consumeIfAble method I check on resource requirements and if
they are met I consume from the activemq endpoint and if there was any
message, send it directly to another endpoint.

consumer.receive("activemq://queue:NewFileQueue", 1000)
producer.sendBody("direct:test", message)

I think this is a reasonable alternative?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111p5734134.html
Sent from the Camel - Users mailing list archive at Nabble.com.


RE: Is Quartz component a scheduled polling component?

2013-06-12 Thread icemanltd
please post

Date: Wed, 12 Jun 2013 06:11:23 -0700
From: ml-node+s465427n5734134...@n5.nabble.com
To: iceman...@hotmail.com
Subject: Re: Is Quartz component a scheduled polling component?



Thank you for your response. I had exactly what I wanted with a file 
endpoint and wanted to extend that to a jms endpoint. I guess am 
misunderstanding the documentation. Anyway, I think I have accomplished what I 
wanted to do using consumer/producer templates and a bean.


The route looks like




 




And, in the consumeIfAble method I check on resource requirements and if they 
are met I consume from the activemq endpoint and if there was any message, send 
it directly to another endpoint.


consumer.receive("activemq://queue:NewFileQueue", 1000)

producer.sendBody("direct:test", message)


I think this is a reasonable alternative?










If you reply to this email, your message will be added to the 
discussion below:

http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111p5734134.html



To unsubscribe from Is Quartz component a scheduled polling 
component?, click here.

NAML
  



--
View this message in context: 
http://camel.465427.n5.nabble.com/Is-Quartz-component-a-scheduled-polling-component-tp5734111p5734135.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel file component preMove creates directory before read lock acquired?

2013-02-26 Thread icemanltd
After looking at this a little closer it looks as though the
FileNotFoundException occurs when attempting to perform the preMove. This
means that the rename based readLock has succeeded and yet the preMove which
is essentially a rename with a different name failes?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-file-component-preMove-creates-directory-before-read-lock-acquired-tp5728193p5728197.html
Sent from the Camel - Users mailing list archive at Nabble.com.


antInclude parameter

2012-01-30 Thread icemanltd
Is "antInclude" parameter of file uri supported? I thought I had followed the
documentation but when I deploy I get FailedToCreateRouteException which
ultimately points to Unknown parameters=[{antInclude=landing/*.txt}].

The XML for this looks like 

--
View this message in context: 
http://camel.465427.n5.nabble.com/antInclude-parameter-tp5443591p5443591.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: antInclude parameter

2012-01-30 Thread icemanltd
"Camel 2.10: Ant style filter exclusion." right there in front of me ... how
did I miss that?

Thanks 

--
View this message in context: 
http://camel.465427.n5.nabble.com/antInclude-parameter-tp5443591p5443627.html
Sent from the Camel - Users mailing list archive at Nabble.com.


FileComponent not producing FileMessage

2012-04-10 Thread icemanltd
I am expecting rather large files so I would prefer to receive a FileMessage
from my file components. After reading the documentation I thought this was
the default behavior but the following route is sending a JmsMessage with
the file content as the body. (using Camel 2.8.3 in ServiceMix 4.4.0)
What am I doing wrong?

http://www.osgi.org/xmlns/blueprint/v1.0.0";
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
   
http://camel.apache.org/schema/blueprint/camel-blueprint-2.8.3.xsd
http://www.springframework.org/schema/osgi
   
http://www.springframework.org/schema/osgi/spring-osgi.xsd";>

http://camel.apache.org/schema/blueprint";>

Monitors client directory for files















--
View this message in context: 
http://camel.465427.n5.nabble.com/FileComponent-not-producing-FileMessage-tp5631434p5631434.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: FileComponent not producing FileMessage

2012-04-10 Thread icemanltd
Thank you for the quick response. I will try using the transform and the file
name.

>From the documentation (http://camel.apache.org/file2.html) "By default the
file endpoint sends a FileMessage which contains a File object as the body.
If you send this directly to the JMS component the JMS message will only
contain the File object but not the content. "

Did I misunderstand this somehow?

Thanks again, I appreciate the help.

--
View this message in context: 
http://camel.465427.n5.nabble.com/FileComponent-not-producing-FileMessage-tp5631434p5631769.html
Sent from the Camel - Users mailing list archive at Nabble.com.