Hi All,
I need to append text like XML Header tag in the beginning of a file.
I know one way to achieve it -
1. Create a String/StringBuilder/List having header tag.
2. Unmarshal the file contents and convert inputstream to List/String or any
suitable object
3. Append the existing contents to the
Thanks Claus for your prompt response :)
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-append-text-to-the-beginning-of-the-file-using-Camel-tp5796906p5796909.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I have similar requirement. I am setting property in the starting route, and
I need to get that property value at the end of the route and compare it
with its value in order to forward to different routes.
Basically, I have different routes to poll to different folder location, the
middle processi
Thank you souciance. Enrich best suits my requirement and it worked! :)
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-append-text-to-the-beginning-of-the-file-using-Camel-tp5796906p5797015.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I am getting error in unmarshalling to custom data format. It is working
successfully in Java DSL approach, now I need to convert it in Spring DSL
where I am getting error.
camel-context.xml
http://camel.apache.org/schema/spring";>
Actually, bindy is used for marshalling data in the latter step/route. But i
have commented that route for now and jumped to the last route. So the code
which deals with Bindy is all commented.
Not sure why this below error comes up because the processItemDimensionFile
route is commented and not
Thanks for your reply, Allan.
Now I have removed all the routes from camel-context which were using bindy.
So the bindy error message is gone. However, the main error in data
conversion (unmarshalling) is still there.
[ main] BeanUtils DEBUG No
prope
I will define the data format as per the link that you've given, and update
the forum. Thanks for the prompt response.
--
View this message in context:
http://camel.465427.n5.nabble.com/Error-in-Unmarshalling-to-custom-data-format-tp5794344p5794373.html
Sent from the Camel - Users mailing list
Thanks a lot Tomohisa, I was able to fix the issue after putting a debug in
the DataFormatDefinition.
The dataformat bean was not correctly referenced in the route.
And yes, as you said.. The error for java.lang.IllegalStateException does
not mean anything :)
--
View this message in context:
Hi,
I am working on a project which polls to one input folder, processes it and
keeps the processed files to output folder. The input files are then moved
to Backup folder.
Now I want to keep this on scheduler twice a day at fixed time. I did that
using CronScheduledRoutePolicy. Below is the code.
Hi souciance,
My route code :
${body} != null
&& ${file:ext} ==
'dcn'
I was able to stop the route finally.
What I did was -
1. set sendEmptyMessageWhenIdle=true in the file component. So when all
files from input folder are read and moved to backup folder, it sends empty
message.
2. On empty body, I am calling a processor.
3. And in processor, I am again checking
Hi, I am using camel-bindy to put default value for some fields. But it is
not populating the default values in the final csv document.
camel-context:
In this class:
@DataField(pos = 2, defaultValue = "ITEM_
and here are pom.xml dependencies -
org.apache.camel
camel-core
2.17.3
org.apache.camel
camel-spring
2
>From the BindyCSVFactory code, it looks like default value is set only during
unmarshalling from CSV to object. For marshalling from object to CSV, unbind
method is used in which defaultvalue is not set.
Let me know if my understanding is correct.
--
View this message in context:
http://camel
Thank you very much!
--
View this message in context:
http://camel.465427.n5.nabble.com/Bindy-DefaultValue-is-not-working-Need-help-tp5795402p5795437.html
Sent from the Camel - Users mailing list archive at Nabble.com.
16 matches
Mail list logo