Re: Using Spring WS component to call service which sends response as attachment

2012-02-24 Thread Richard Kettelerij
Hi, Currently the Camel spring-ws producer doesn't contain any logic to extract attachments from response messages. It just returns the resulting XML for further processing in your Camel route [1]. The Camel spring-ws producer uses a simple SourceExtractor (NoopSourceExtractor) to return the XML r

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread hellosir
Thanks so much, really appreciate it! This indeed gets it to work properly now. -- View this message in context: http://camel.465427.n5.nabble.com/Setting-timeout-for-http-conf-client-doesn-t-seem-to-work-tp5509173p5514172.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread Daniel Kulp
On Friday, February 24, 2012 1:45:23 PM JoeR wrote: > In my case I was attempting something very simple: > > http://camel.apache.org/schema/spring";> > uri="http://localhost:8080/ws-example/ws-example"/> > > > > > > > > Should this work ? You are basically usi

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread JoeR
In my case I was attempting something very simple: http://camel.apache.org/schema/spring";> http://localhost:8080/ws-example/ws-example"/> Should this work ? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Setting-timeout-for-http-co

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread Daniel Kulp
What does the uri in the line: look like? Is that a cxf URI or an http URI?I'd like to see the "to" setup for the route. Dan On Thursday, February 23, 2012 12:00:34 PM hellosir wrote: > Hi, I'm trying to edit the default timeout for my web service to wait for a > response. > > W

Re: Endpoint exception handling

2012-02-24 Thread tkatva
Hi Claus Thank you for your responses... My concern is that I want polling FTP/FTPS/SFTP/FILE-endpoints to call my custom code if error occurs... Can you point me to a example where I can see how I can apply this pollingStrategy to these endpoints ? I am constructing endpoints programmatically

Re: How can I filter message

2012-02-24 Thread Ketan Barapatre
It worked. .. Great . On Fri, Feb 24, 2012 at 11:37 PM, Ketan Barapatre wrote: > Thank You. > > I'll try this. > > On Fri, Feb 24, 2012 at 2:24 PM, Christian Müller < > christian.muel...@gmail.com> wrote: > >> Your solution could look like this: >> >> Predicate predicate = new Predicate() {

Re: Can only send one file to Amazon S3 without restart?

2012-02-24 Thread Christian Müller
Good to know you could solve the problem. Best, Christian Sent from a mobile device Am 24.02.2012 13:56 schrieb "James Morgan" : > Hi, cheers for your response. We had a play about with the tests and all > seems well. > > It appears after inspecting our jms queues that the reason it was blocking

Re: How can I filter message

2012-02-24 Thread Ketan Barapatre
Thank You. I'll try this. On Fri, Feb 24, 2012 at 2:24 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Your solution could look like this: > > Predicate predicate = new Predicate() { >@Override >public boolean matches(Exchange exchange) { >// your filter logic >

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread JoeR
I have attempted the following and it did not timeout. The external service it was call was sleeping for: try { Thread.sleep(6*5); } catch (Exception e) { LOG.info("Exception - Interrupted");} I was expecting a timeout after 1 minute, but the service retu

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread hellosir
Hi Willem, I have set it to 6 as well, but it doesn't seem to take it. When I set it up as 6, I had my service do a "Thread.sleep(7)", but I never got a socket timeout error. It would complete as usual and return a response code 200. -- View this message in context: http://camel.

Re: How to use escape tool ($esc.xml($somestrwithspclchars)) in camel velocity template

2012-02-24 Thread ramesri
Thank you all for the inputs. Its just that I am new to Camel and having trouble to implement in Spring DSL what is suggested by Christian. Can you pls show me how to do this in Spring DSL. Assuming that I define the EscapeTool as , how do I it in the ? Regards Ramesh On Fri, Feb 24, 2012 at

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread Willem Jiang
Hi, 1000 is means timeout is 1 sencond. I don't think this value should work for you. Can you try to set it to be 6 or 30 ? On Fri Feb 24 23:45:33 2012, hellosir wrote: Hi, thanks for replies. I have set it up uing "*.http-conduit" as well and still the same problem. Is there anything

Using Spring WS component to call service which sends response as attachment

2012-02-24 Thread Jan Fredrik Wedén
Hi, This is my first shot at camel routing and I'm trying to use the Spring WS component to call a webservice and marshal the response. The problem is that this particular service returns the actual payload XML as an attachment and the SOAP body contains the response type element wrapping a single

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread hellosir
Hi, thanks for replies. I have set it up uing "*.http-conduit" as well and still the same problem. Is there anything else I can try? So far, everything using camel has been great and its helped us finish our projects very efficiently. Just this timeout thing is giving us some problems at the mo

Re: JTA Transaction problems (rollback doesn´t affect DB)

2012-02-24 Thread Aida
Thank you very much. The reality is that I need the whole route to be transactional so I'll have to assume not processing the splitter chunks in parallel, but at least now when an exception happens everything is rolled back perfectly. Thanks¡! -- View this message in context: http://camel.46542

Re: Multiple timers with same name in same context

2012-02-24 Thread Claus Ibsen
I logged a JIRA https://issues.apache.org/jira/browse/CAMEL-5038 On Wed, Feb 22, 2012 at 2:46 PM, Claus Ibsen wrote: > Hi > > If the uri is slightly different then that ought to work, eg such as > different delay etc. > But I guess the endpoint should support multiple consumers by default. > > Co

Re: Can only send one file to Amazon S3 without restart?

2012-02-24 Thread James Morgan
Hi, cheers for your response. We had a play about with the tests and all seems well. It appears after inspecting our jms queues that the reason it was blocking was because the file was still present in the body of the message and this was causing it to hang and not shutdown correctly. JMS Storage

Re: Camel SMPP - Track connection failures with SMSC

2012-02-24 Thread Christian Müller
After you created an account at [1], you can raise issues at Apache. Choose please "Camel" and "new feature" for this request. [1] https://issues.apache.org/jira/browse/CAMEL Best, Christian On Fri, Feb 24, 2012 at 10:56 AM, ranjitkumarm wrote: > Hi Christian, > Thank you for the response.

Re: Setting timeout for http-conf:client doesn't seem to work

2012-02-24 Thread JoeR
I have notice the same problem when I attempted to set the ReceiveTimeout also. I have tried many combinations for the conduit including and none of them worked for me. I am running with ServiceMix 4.4.0 -- View this message in context: http://camel.465427.n5.nabble.com/Setting-timeout-

Re: How to create a dynamic route based on some properties

2012-02-24 Thread nikhil
Got this response in IPF group which worked for me. Subscribers.each { subscriber -> def node = from(subscriber.fromEndpoint) .processRef(subscriber.processor.bean) for (int i = 1; i <= subscriber.postProcess.steps; ++i) { node = node.processRef(subscriber.postprocess${

Re: Camel SMPP - Track connection failures with SMSC

2012-02-24 Thread ranjitkumarm
Hi Christian, Thank you for the response. I think the provision to set a custom SessionStateListener is fair enough and can be used for sending the mail alerts. Please help me on as how to raise a JIRA issue as I am fairly new to this forum. Best Regards, Ranjit -- View this message in conte

Re: Camel SMPP - Track connection failures with SMSC

2012-02-24 Thread Christian Müller
Hello Ranjit! At the moment there is no possibility to do this. The SmppProducer and SmppConsumer have a SessionStateListener which detects loosed connections and trying to reconnect (nothing to do with the default error handler). One possibility is to allow to set a custom SessionStateListener wh

Re: How to use escape tool ($esc.xml($somestrwithspclchars)) in camel velocity template

2012-02-24 Thread Christian Müller
It's not only the velocity-tools provided classes what the user can use here. We have a custom class with some transformations (e.g. transform the ISO two letter country code - e.g. "DE" - to the full name - e.g. "Deutschland"). May be adding some words how to use this functionality inside Camel on

Re: How can I filter message

2012-02-24 Thread Christian Müller
Your solution could look like this: Predicate predicate = new Predicate() { @Override public boolean matches(Exchange exchange) { // your filter logic return true/false; } }; from("xxx") .filter(predicate) .to("yyy"); Best, Christian On Fri, Feb 24, 2012 at 5