.html
Hope this helps.
Regards.
--
Bruno Dusausoy
Software Engineer
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
plate, it was easy, I simply used
the beans() element of the route and did my job by calling ConsumerTemplate.
But how do I do it without beans() ?
I could use another route but then how would I pass the file name to
this new route ?
I must admit, as you can see, that I'm completely
On 05/11/2013 09:46 AM, Christian Müller wrote:
Why do you not use the Camel FTP/SFTP/FTPS component?
I'd like to, but I don't know how to do it properly hence my question.
I'm quite confused here because I have two consumers (file and ftp) and
one producer (ftp).
--
Bruno Du
n't really like the route builder with the bean() method, I would
like to use to() with URI's and some expression language or script.
Regards.
[1] https://github.com/bdusauso/sandbox-camel-dynamic-ftp
--
Bruno Dusausoy
Software Engineer
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
ds ?
http://camel.apache.org/spring-testing.html
Do you have any specific requirements ?
--
Bruno Dusausoy
Software engineer
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
hat I'm trying to do - this is a proof-of-concept - is to send the file
through RabbitMQ and then get a response "Process completed" from the
ProcessBean which is then displayed by the OutBean.
This isn't working. What is displayed is the body of the file, not the
String &
design completely flawed ?
Regards.
[1]
http://camel.465427.n5.nabble.com/CXFRS-and-XML-validation-td4428899.html
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
On 26/05/2011 17:15, Bruno Dusausoy wrote:
[...]
Hi Claus,
I've tried but I realized very soon that it is useless since the route
start with the cxfrs endpoint and immediately take the payload and tries
to unmarshall it, *before* hitting the validation component, making the
latter us
e the payload and tries
to unmarshall it, *before* hitting the validation component, making the
latter useless.
Maybe I should another endpoint for my route, a more complex CXF endpoint.
What do you think ?
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression
ot;/computation")
@Consumes("text/xml")
@Produces("text/xml")
@Override
public Response compute(Request request) {
return null;
}
}
Request and Response classes are created from a schema with JAXB.
How can I use the validation against the payload when d
block the message which need to send back to "jms:xmlOrders".
>
> Remove the bean() part can remove the block, so you can get what you need.
>
Thanks a lot for the explanation !
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
On Thu, 04 Nov 2010 11:23:46 +0100, Bruno Dusausoy
wrote:
> Hi,
>
[...]
>
> So my question is : "is there a difference between setting the
> exchangePattern option and using the inOut() method ?"
>
[...]
Ok, I think I've tightened the scope of the problem.
Thi
as there are still 2 inflight and pending exchanges to
complete before we can shutdown
[...]
So my question is : "is there a difference between setting the
exchangePattern option and using the inOut() method ?"
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limit
dpoint after having set the
options.
So Claus pointed me to the setEndpointUriIfNotSpecified() method, which
solved the problem.
I'm not sure if I clearly explained my issue.
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
And in FileEndpoint :
@Override
protected String createEndpointUri() {
return "file://" + getFile().getAbsolutePath();
}
So indeed, it creates the same endpoint URI for both.
Thanks.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
this exception :
Exception in thread "main"
org.apache.camel.FailedToStartRouteException: Failed to start route
route2 because of Multiple consumers for the same endpoint is not
allowed: Endpoint[file://c:\post]
So it seems options are really not taken into account, hence my
original question.
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
/post?delete=true").to("file://c:/backup");
}
}
I'm getting another URI :
[...]
INFO: Route: route1 started and consuming from:
Endpoint[file://c:/post?delete=true]
[...]
So, it seems the options are missing.
Should I call a certain method in order to correctly build the
Endpoint
ing it :-/ - but didn't see any
MailEndpoint.
Thanks a lot for pointing that out :).
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
endpoints by going through string
concatenation ?
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
On Fri, 15 Oct 2010 14:56:49 +0200, Bruno Dusausoy
wrote:
[...]
I've just looked more carefully at the documentation and used the
"?move=" attribute.
It works.
Sorry for the noise.
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de c
//issues.apache.org/activemq/browse/CAMEL-1965
It says it's fixed since more than a year so I guess it works fine,
otherwise someone would have reopened it.
Am I missing something in my code ?
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
y return the response as expected, so it seems there's
something with this specific operation implementation.
I'll check what's wrong with it.
Sorry for the noise.
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please do
ler since it it the
end of the route, but obviously it doesn't.
Has this something to do with the processor lying between the endpoint and
the bean ?
What am I doing wrong ?
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
, I don't know what you want to do next
> with the camel route. Can you tell me your user story?
>
Well, the response is indeed sent back to the caller, but I have to send
the original message to a JMS queue for further processing (logging and
statistics stuff, internal use only)
way to do what I want ?
Of course I could also use CXF directly and then route manually the result
to the desired endpoint.
But it would definitely be nicer if I could directly use a bean to process
the desired operation.
I've read the CXF Component documentation but haven't found anything
where on the net once it works.
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
gs :
* can I aggregate messages coming from different endpoints (in this case,
CXF and JMS) or should I route them to a unique endpoint ?
* I don't see how to use the completionTimeout in this case.
Can someone shed some light on this ?
Thanks a lot.
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pens
On Tue, 6 Jul 2010 15:19:14 +0200, Charles Moulliard
wrote:
> The syntax is not correct
>
>
>
> -->
>
>
>
Thanks a lot !
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
re that is read and
contains
> no valid xml.
>
> You could try to put a bean after from that simply receives an Exchange
in
> a method. So you can debug into this and see where the file comes from.
>
Ok, thanks.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l
ans-2.5.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>
http://camel.apache.org/schema/spring";>
be.ucm.career
ent get this "output.txt"
file... :-/
The input.xml file is quite simple :
100
Can someone tell me what I'm doing wrong ?
Regards.
--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.
31 matches
Mail list logo