Re: Camel in Action book

2013-05-16 Thread Bruno Dusausoy
.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.

Re: Route design

2013-05-11 Thread Bruno Dusausoy
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

Re: Route design

2013-05-11 Thread Bruno Dusausoy
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

Route design

2013-05-11 Thread Bruno Dusausoy
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.

Re: Camel & Spring testing framework

2012-07-23 Thread Bruno Dusausoy
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.

Request-reply with Camel Spring AMQP

2012-07-23 Thread Bruno Dusausoy
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 &

CXFRS custom response

2011-05-27 Thread Bruno Dusausoy
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.

Re: CXFRS and XML validation

2011-05-26 Thread Bruno Dusausoy
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

Re: CXFRS and XML validation

2011-05-26 Thread Bruno Dusausoy
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

CXFRS and XML validation

2011-05-26 Thread Bruno Dusausoy
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

Re: Request reply

2010-11-05 Thread Bruno Dusausoy
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.

Re: Request reply

2010-11-04 Thread Bruno Dusausoy
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

Request reply

2010-11-04 Thread Bruno Dusausoy
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

Re: Endpoint construction

2010-10-28 Thread Bruno Dusausoy
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.

Re: Endpoint construction

2010-10-28 Thread Bruno Dusausoy
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.

Re: Endpoint construction

2010-10-28 Thread Bruno Dusausoy
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.

Endpoint construction

2010-10-28 Thread Bruno Dusausoy
/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

Re: AW: Programmatically creating endpoints

2010-10-18 Thread Bruno Dusausoy
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.

Programmatically creating endpoints

2010-10-18 Thread Bruno Dusausoy
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.

Re: GenericFileOperationFailedException

2010-10-15 Thread Bruno Dusausoy
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

GenericFileOperationFailedException

2010-10-15 Thread Bruno Dusausoy
//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.

Re: CXF consumer response

2010-08-06 Thread Bruno Dusausoy
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

CXF consumer response

2010-08-06 Thread Bruno Dusausoy
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.

Re: Processor explanation

2010-07-20 Thread Bruno Dusausoy
, 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)

Processor explanation

2010-07-20 Thread Bruno Dusausoy
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

Re: Correlation, CXF, JMS and timeout

2010-07-08 Thread Bruno Dusausoy
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.

Correlation, CXF, JMS and timeout

2010-07-07 Thread Bruno Dusausoy
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

Re: AW: File component behavior

2010-07-06 Thread Bruno Dusausoy
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: AW: File component behavior

2010-07-06 Thread Bruno Dusausoy
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

Re: File component behavior

2010-07-06 Thread Bruno Dusausoy
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

File component behavior

2010-07-06 Thread Bruno Dusausoy
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.