camel trunk.
>
> If you want to try out the Camel 2.4 SNAPSHOT, you'd better build the
> code from trunk from scratch.
>
> Willem
>
> ankelee wrote:
>> Hi
>>
>> I have been running Camel 2.3 but with a camel-core 2.4 snapshot jar from
>> abo
Hi
I have been running Camel 2.3 but with a camel-core 2.4 snapshot jar from
about a week ago. I'm now trying to test the newest 2.4 but now I get XML
parse exceptions. Did some fundamental dependency change? I can't find any
dependency tree for 2.4 and I don't use Maven.
Exception in thread "m
.sendSiteCommand("myCommand");
I need to send a command to an FTP-server before uploading messages to it.
Any idea how I could implement this? The ftpClient option in the URI seems
to only support properties.
--
View this message in context:
http://old.nabble.com/ftpClient-doesn%27t-support-se
er.
>> I will create a JIRA for that.
>>
>>
>> On Tue, Jun 8, 2010 at 10:53 AM, ankelee wrote:
>>>
>>> Hi
>>>
>>> I have a setup where I start a route with with a quartz timer. This
>>> route
>>> then starts another route
camel Main-classed and have the
contexts completely seperated. But I think it shouldn't be necessary.
ankelee wrote:
>
> Hi
>
> I think the problem lies in the way I import a routeContext in both my
> .xml files. The import is not done in the camelContext tag and therefore
>
ts in both pure Java and with Spring XML and
> cannot reproduce any such behavior
> http://svn.apache.org/viewvc?rev=951088&view=rev
>
> Direct endpoints with same endpoint uri is not shared between multiple
> CamelContext.
>
> So double check on your end what you may do wr
Hi
I'm setting up a test for a route that starts at an FTP-endpoint. I would
like to be able to test without setting up an FTP-server.
In Camel in Action there is shown a trick where you can replace the
jms-component with a seda-component and then consume from that endpoint. Is
there any tricks
Hi
I have a setup where I start a route with with a quartz timer. This route
then starts another route that does the actual work of fetching files from
an ftp and then shuts down.
The problem with this workaround is that the ftp-fetching route will never
shut down if there are no messages on the
Hi Claus
I created a sample and a ticket for the problem.
https://issues.apache.org/activemq/browse/CAMEL-2798
Claus Ibsen-2 wrote:
>
> On Fri, Jun 4, 2010 at 3:20 PM, ankelee wrote:
>>
>> Ok I will do it when I get the time later today hopefully.
>>
>>
Ok I will do it when I get the time later today hopefully.
I also have to find out how to submit samples to JIRA?
Claus Ibsen-2 wrote:
>
> On Fri, Jun 4, 2010 at 1:56 PM, ankelee wrote:
>>
>> You think it might be a bug?
>>
>
> Yeah as there is a NPE err
gt;
> On Fri, Jun 4, 2010 at 1:22 PM, ankelee wrote:
>>
>> I'm trying to use the aggregator like so:
>>
>>
>> > uri="file:{{directory.outgoing}}?include=\A{{edifact.messagePrefix}}.*"
>> /&
I'm trying to use the aggregator like so:
/edi/transaction[1]/@VirNo
virNo
;
> Hi
>
> Whats your runtime environment?
> And how do you start your app?
> Do you use OSGi or WAR etc?
>
>
>
>
> On Thu, Jun 3, 2010 at 2:28 PM, ankelee wrote:
>>
>> Perhaps I'm doing it wrong.
>>
>> I load a Spring context xml fil
It was hard for me :-)
Thanks.
Claus Ibsen-2 wrote:
>
> On Thu, Jun 3, 2010 at 3:27 PM, ankelee wrote:
>>
>> Hi Willem
>>
>> That is not working. Can't even access that url in a browser.
>>
>
> Well you can view all the XSD here
> http://
is issue by doing the
> below change .
>
> ankelee wrote:
>> http://www.springframework.org/schema/beans";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xmlns:camel="http://camel.apache.org/schema/spring";
>> xmlns:
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:camel="http://camel.apache.org/schema/spring";
xmlns:jee="http://www.springframework.org/schema/jee";
xsi:schemaLocation=" http://www.springframework.org/schema/beans
Claus answers this question partly in this thread:
http://old.nabble.com/Using-local-camel-schema-on-server-with-no-internet-access-td28340101s22882.html#a28340101
But I can't get this to work. I'm trying to use some of the new options in
the tag but both the ide and the compiler complains that
Perhaps I'm doing it wrong.
I load a Spring context xml file that has two imports as such.
The two camelcontext.xml files obviously holds a tag each.
Each of contexts loads a identical route that they create their own instance
of. These are configured differently with properties. Then I ge
Hi
Is it possible to have direct endpoints that will not be shared across
different camelcontexts in the same JVM? So that each camel context has its
own instance of a direct route?
--
View this message in context:
http://old.nabble.com/Direct-route-not-shared-across-contexts--tp28766143p287661
Hi
Im trying to create a route that connects to an FTP, downloads the files and
then shuts down the route afterwards to be triggered again later.
I thought I had solved it but I keep getting a "Waiting as there are still 1
inflight and pending exchanges to complete before we can shutdown" messag
Hi
I have a route where I fetch a batch of files (copies) from an FTP, send
this batch to another route and shutdown the FTP route.
Then I process the files, and based on that processing I want to delete
these files (one by one) from the FTP.
Any ideas how I could do this?
I was thinking usin
But even so, shouldn't onCompletion first do it's work when the route was
actually completely done with everything?
--
View this message in context:
http://old.nabble.com/Problems-shutting-down-route-onCompletion-tp28707903p28708542.html
Sent from the Camel - Users mailing list archive at Nabble
Just to clear things up if anyone else should read this. On page 378 it is
shown that you can use .shutdownRoute() instead of .stopRoute().
shutdownRoute() shuts down gracefully and hence waits the entire batch to
complete before shutting down the route.
This change should in this case then be im
Hi
Perfect :-)
Claus Ibsen-2 wrote:
>
> Hi
>
> Read further and see page 378
>
>
> On Fri, May 28, 2010 at 4:51 PM, ankelee wrote:
>>
>> Hi
>>
>> I'm trying to do a use case similar to the one on page 371 in Camel in
>> Action.
&g
In addition to the case above, the last file does not get copied/moved,
eventhough the debug window shows that it was copied.
--
View this message in context:
http://old.nabble.com/Problems-shutting-down-route-onCompletion-tp28707903p28707924.html
Sent from the Camel - Users mailing list archiv
Hi
I'm trying to do a use case similar to the one on page 371 in Camel in
Action.
I need to start a route. Copy a batch of files from FTP, and then shut it
down again.
Pseudo Spring DSL:
${property.CamelBatchComplete} == true
I check if the property set by BatchConsumers - Came
on top of that the {{ }} should
> be added to the Simple language.
>
> Fell free to create a JIRA ticket
>
>
> On Thu, May 27, 2010 at 10:20 AM, ankelee wrote:
>>
>> I'd like to be able to use properties to configure different parts of my
>> route to fit
Ok that's bad.
Destroys the point of our design atm. :)
ankelee wrote:
>
> I'd like to be able to use properties to configure different parts of my
> route to fit it to different message types. Something like this:
>
> /transaction[1]/@DocType = '{{doctyp
I'd like to be able to use properties to configure different parts of my
route to fit it to different message types. Something like this:
/transaction[1]/@DocType = '{{doctype}}'
But this doesn't get interpreted. Is there any way to do this?
--
View this message in context:
http://old.nabble.c
Oh, 2.3 was released, cool :)
I redesigned the route and now has an acceptable behaviour.
So what effects does that bug in onCompletion have exactly?
--
View this message in context:
http://old.nabble.com/errorHandler-%2B-.handled%28false%29%29--in-Spring-DSL.-tp28670904p28690338.html
Sent fr
Hi
In relation to this post:
http://old.nabble.com/errorHandler-%2B-.handled%28false%29%29--in-Spring-DSL.-td28670904.html
I'm really stuck on my use case.
1) If route fails I want to move the original file through some custom
processing steps and send it to a directory (and remove it from
Btw. Claus:
errorHandler(DLC stuff here).to("bean:xxx");
This doesn't seem to work. Can't do a .to anywhere on the errorHandler only
in the onException. Can't find any examples of this in Spring DSL either.
--
View this message in context:
http://old.nabble.com/errorHandler-%2B-.handled%28fal
Tested the onCompletion and it does exactly what I want in a clean manner. It
seems to default to use the original message, this is great but I thought it
would use the transformed message is it would be after the route.
ankelee wrote:
>
> Maybe I should reconsider the
ctory. This is fine but I still
haven't figured out how to get the original message out of the UnitOfWork.
If it's a file do i just get the file-handle and need to move the file
manually or?
ankelee wrote:
>
> Ok
>
> The reason I wanted to use the errorhandler was to have a g
May 26, 2010 at 11:02 AM, ankelee wrote:
>>
>> Yes but then what about the messages that do not fail. I want them to be
>> moved also. If I handle the exception on the errorhandler the
>> file-endpoint
>> does not register exception and the move-option is performed
at 10:54 AM, ankelee wrote:
>>
>> Hi Claus
>>
>> That's a good point.
>>
>> I want it to not be handled so the "move" option on the file endpoint in
>> the
>> beginning of my route only moves the file if the route was succes
h would confuse people.
> Why would you want to not let an error handler NOT to handle an error.
>
>
>
> On Wed, May 26, 2010 at 10:26 AM, ankelee wrote:
>>
>> I do however see that your example in the JIRA ticket uses the handled
>&
exception is org.xml.sax.SAXParseException:
cvc-complex-type.3.2.2: Attribute 'handled' is not allowed to appear in
element 'errorHandler'.
ankelee wrote:
>
> Hi
>
> Sorry I wasn't very clear. I'm using Camel 2.3 and the tag
> in Spring DSL. I
n is missing in Spring DSL?
ankelee wrote:
>
> Hi
>
> From the doc pages:
>
> errorHandler(deadLetterChannel("jms:queue:dead").maximumRedeliveries(3).redeliverDealy(5000).handled(false));
>
> I can't figure out or find any information as to how do the .han
Hi
>From the doc pages:
errorHandler(deadLetterChannel("jms:queue:dead").maximumRedeliveries(3).redeliverDealy(5000).handled(false));
I can't figure out or find any information as to how do the .handled() in
Spring DSL. I wan't to leave the exception unhandled so that I can have my
file endpoin
Hi
I'm trying to figure out what transactions can do for me.
I'm wondering if transactions can be set up to also handle side-effects of
the route. I would like to roll back the file that is sent to the wireTap.
Alternatively I would have to go back and delete it manually using
errorhandling in c
Yeah I am aware that I could do that but I'm trying to recreate that Java DSL
line using Spring DSL.
Claus Ibsen-2 wrote:
>
> On Thu, May 20, 2010 at 10:51 AM, ankelee wrote:
>>
>> Isn't recipientList overkill for this? The endpoint is not dynamically
>>
Obviously it is changing, but only the fileName - but shouldn't this be
perfectly valid or am I misusing it?
ankelee wrote:
>
> Isn't recipientList overkill for this? The endpoint is not dynamically
> changing during runtime. It's just resolved at route creation.
>
pFileName}")
Claus Ibsen-2 wrote:
>
> On Wed, May 19, 2010 at 5:41 PM, ankelee wrote:
>>
>> Hi
>>
>> How can I make it validate not online?
>>
>> I tried loading the properties as such:
>>
>> > class="org.apache.cam
I just realized that the {{}} works fine in but I can't use my
header information to create the endpoint.
--
View this message in context:
http://old.nabble.com/%3CpropertyPlaceholder%3E-not-working.-tp28609051p28610125.html
Sent from the Camel - Users mailing list archive at Nabble.com.
d in Camel core
which allows you to use properties in the same way as Spring property
placeholders, and even more."
ankelee wrote:
>
> Trying to use this new feature using 2.3.0-SNAPSHOT.
>
> http://camel.apache.org/schema/spring";>
>location="com/m
Trying to use this new feature using 2.3.0-SNAPSHOT.
http://camel.apache.org/schema/spring";>
.
Error:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from relative
location [default-camel.xml]
Offen
Hi
I'm struggling to create a working pom.xml to download the 2.3 snapshot:
4.0.0
Download Camel 2.3
apache.snapshots
Apache Development Snapshot Repository
https://repository.apa
On http://camel.apache.org/configuring-camel.html I can see that Camel 2.3
supports importing routes from seperate XML-files.
I would like to be able to do a generic route that should be configurable
for 3 different message types. I imagine doing 3 different CamelContext in
which I import the sam
Hi
I'm trying to transition from using Java DSL in a standalone Java setup to
using Spring DSL routes deployed in Spring. So far I have a basic route
configured and Camel generate the route succesfully but I'm not sure if it
get's started, and if it does if it has enough time to complete the rout
Hello
Using Camel 2.3.0 SNAPSHOT I've made a route where I use a wireTap to back
up any incoming files and timestamp the filename like so:
from("file://" + props.getProperty("directory.incoming"))
.routeId("processing")
.setHeader("backupFileName").simple("${date:now:yyy
String str =
exchange.getUnitOfWork().getOriginalInMessage().getBody(String.class);
I have a simple route from().to() route and I try putting a processor in the
middle to read the original in message but I always just get null from it,
what could be wrong?
Can't find a lot of info on the Unit Of
Hi - this might not be strictly Camel question but here goes:
I'm having some problems finding handling different paths when working with
files in Camel:
from("file://data/in/inbox?move=data/in/backup/${date:now:MMddhh}/${file:name}")...etc
I have a standard Eclipse project with /bin and /s
Nevermind this. I was trying to read the header in a processor and forgot
that Camel has a type converter ;)
ankelee wrote:
>
> Hi
>
> I'm trying to do this:
>
> from("direct:controlMessageToCbr")
> .setHeader("envelopeId", xpath("/someth
Hi
I'm trying to do this:
from("direct:controlMessageToCbr")
.setHeader("envelopeId", xpath("/something/@Id")).to.
But the header just get set to the XPathBuilder object.
Wouldn't something like the .evaluate() method needed to be used for this
(when using the XPathBuilder in Java)?
Strin
Alright I created the ticket. I have no idea how long it would take to do
though, so I just estimated 5 hours :)
https://issues.apache.org/activemq/browse/CAMEL-2555
--
View this message in context:
http://old.nabble.com/Event-Driven-Producer-%3A%29-tp27874120p27932529.html
Sent from the Camel
And what if you wanted to use some data, like a header, from the old message?
Is this possible with the new Exchange?
--
View this message in context:
http://old.nabble.com/Event-Driven-Producer-%3A%29-tp27874120p27931086.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Yeah it is working, I was fiddling around with some wrong uris.
Thanks.
Claus Ibsen-2 wrote:
>
> On Tue, Mar 16, 2010 at 1:08 PM, ankelee wrote:
>>
>> Hi Claus
>>
>> Did you fix this issue or?
>>
>> I'm working with the 2.3.0 snapshot and I h
Hi Claus
Did you fix this issue or?
I'm working with the 2.3.0 snapshot and I have the same issue:
from("quartz://report?cron=0/10+*+*+*+*+?")
.pollEnrich("file://data/in?move=data/in/backup").etc...
This ought to be working now right?
The route completes in the first run, although ignoring th
Thanks, got it working now that I actually created a pom.xml :)
There's no way to make Maven download all of camel? - I need to add a
dependency for each .jar/component?
Claus Ibsen-2 wrote:
>
> On Tue, Mar 16, 2010 at 11:36 AM, ankelee wrote:
>>
>> Hi
>>
>&g
Hi
I want to use the 2.3.0 SNAPSHOT but I don't know much about Maven. How do I
download it? I tried getting Maven to download it using the
"apache-camel-2.3-SNAPSHOT.pom" but it asks for a goal.
Any pointers?
--
View this message in context:
http://old.nabble.com/How-to-use-SNAPSHOTs.-tp27915
Hi, alright that's great!
Will that be available for use any time soon? I guess it when you close the
ticket it will be available in the 2.3 SNAPSHOT or?
--
View this message in context:
http://old.nabble.com/Quartz-confusion-tp27819970p27874131.html
Sent from the Camel - Users mailing list arc
Nevermind, I'm stupid. Was using the wrong JaxbDataFormat.
--
View this message in context:
http://old.nabble.com/How-to-use-JAXB-and-Java-DSL-tp27848546p27849539.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Yeah well, UnmarshalTest.java in the jaxb test does this:
protected RouteBuilder createRouteBuilder() {
return new RouteBuilder() {
public void configure() {
DataFormat jaxb = new
JaxbDataFormat("org.apache.camel.example");
from("direct:sta
http://camel.apache.org/jaxb.html
That example doesnt work, looking at the API it doesn't even take a String
in the constructor?
DataFormat jaxb = new JaxbDataFormat("com.acme.model");
from("activemq:My.Queue").unmarshal(jaxb).to("mqseries:Another.Queue");
I tried this:
JaxbDataFormat jaxb = n
This is where I'm supposed to post no?
http://issues.apache.org/activemq/browse/CAMEL
Can't find anywhere to create a new issue.
--
View this message in context:
http://old.nabble.com/Quartz-confusion-tp27819970p27841341.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Sure, where do I find JIRA?
Do you have any ideas to how I could work around this then. Should I use my
own aggregationstrategy that pulls out the filename and moves it as it is
read. The backup part could be solved this way, but I'm very worried what to
do on errors.
--
View this message in con
Ok, so pollEnrich can be used for this. But the filelanguage doesnt seem to
work fully when using this?
I want the files to be consumed, ie moved to a backup directory on success
and an error directory on exception. Shouldnt this work?
from("quartz://report?cron=0/10+*+*+*+*+?")
.pollEnrich("file
Yes that works. Now I have another problem:
from("quartz://test?cron=0/10+*+*+*+*+?")
.to("file://incoming?move=backup&moveFailed=error")
.process(). etc.
I know the above doesn't work but it illustrates what I want.
If I understand the timer stuff correctly I need to swap the content of the
qu
I'm trying to get a Quartz timer up and running. I included
camel-quartz-2-2-0.jar and the two .jars
camel-core.jar and the commons-collections.jar as stated on this page:
http://camel.apache.org/maven/camel-quartz/dependencies.html
from("quartz://report?cron=0+0+6+*+*+?")
.to("file://data");
Yeah that works. I would like to consume the file also, right now I'm just
deleting it after I've gotten what I want from it. Is there a better
solution?
--
View this message in context:
http://old.nabble.com/Join-two-messages-from-two-sources-in-zip-archive.-tp27756477p27793015.html
Sent from t
I have a message (text file) routed in one direction a that among other
things holds an id. Then I have a bunch of text files in a directory, also
with id's. I want to match the message with the text file that holds the
corresponding id. I want to put those two files in a zip archive and store
the
I mean documenting using the system/routes by drawing diagrams with the
symbols for the patterns from the EIP book.
Claus Ibsen-2 wrote:
>
> On Thu, Feb 18, 2010 at 12:52 PM, ankelee wrote:
>>
>> On another note:
>> I'm trying to design this system using the
laus Ibsen-2 wrote:
>
> On Wed, Feb 17, 2010 at 8:01 PM, ankelee wrote:
>>
>> The latter two suggestions I can get to work, but I just get null when
>> trying
>> to get the body as a String.
>>
>> I'm not sure what is going on behind the scenes h
An upgrade from Camel 2.1.0 to 2.2.0 seems to fix the issue, this is a
plausible cause?
ankelee wrote:
>
> Yes that indeed looks like exactly what I want.
>
> context.addRoutes(new RouteBuilder() {
> public void configure() {
>
> fr
fine, but then I tried to introduce a flaw in my
input file which obviously gives me an exception, Camel creates the error
folder, but the file still only sits in the source directory, can you
explain further?
Claus Ibsen-2 wrote:
>
> On Wed, Feb 17, 2010 at 8:01 PM, ankelee wrote:
>>
&g
would only keep knowledge about the latest node that the
message had been through.
Claus Ibsen-2 wrote:
>
> On Wed, Feb 17, 2010 at 5:04 PM, ankelee wrote:
>>
>> Hello
>>
>> I'm trying to build a system where I consume files from a directory,
>> perform
&g
Hello
I'm trying to build a system where I consume files from a directory, perform
transformations in several steps and finally deliver at an endpoint. In case
the delivery of the transformed message succeeds, I want to route a copy of
the original file as it was before consumation to a backup di
78 matches
Mail list logo