AW: Forwarding PDF files to HTTP endpoint gives TypeConversionException

2024-11-29 Thread Penagos Jaime
e file component i.e. from("file:...*.pdf") and forwarded it to the http endpoint (so that the body of the message will stay the content of the file) and it worked. Anytime I try and convert the body or save the body into an exchangeProperty, it breaks. So, my workaround was to

AW: Forwarding PDF files to HTTP endpoint gives TypeConversionException

2024-11-27 Thread Penagos Jaime
Hi everyone, so, i checked some other program I did last year, where i forwarded files to an HTTP endpoint to ingest them through an API, and I didn't do anything different than in this example with PDFs (back then was for a RESTful Service through Camel, tho). I am still quite confuse

AW: Forwarding PDF files to HTTP endpoint gives TypeConversionException

2024-11-25 Thread Penagos Jaime
ehow I recall working with other filetypes and not having issues, but that was a while ago. Maybe is it some dependency I am missing? The serialization exception I am getting might be because Camel can't map the object to the Object class? I tried using byte[] as well, and also convertBodyTo() but it d

Re: Forwarding PDF files to HTTP endpoint gives TypeConversionException

2024-11-25 Thread Jeremy Ross
I don’t see why that exception would be thrown, from the example you provided. But the example you provided is just from the docs. So, if you could share more of your actual route/processor, it would be easier to help. On Nov 25, 2024 at 2:05:38 PM, Penagos Jaime < jaime.pena...@ub.uni-muenchen.d

Forwarding PDF files to HTTP endpoint gives TypeConversionException

2024-11-25 Thread Penagos Jaime
Hey everyone, I've been working with the Apache Camel PDF Component and my idea is to forward the content to another endpoint, that it is supposed to send it to another API through the HTTP component. So, I've been trying to use a File component that sends the PDFs to the other direct: route,

RE: [EXTERNAL] Re: basic Auth options for camel netty http endpoint producer

2020-12-08 Thread Gv, Shivakumar
Thanks for your help. Regards, Shiva -Original Message- From: Zoran Regvart Sent: Tuesday, December 8, 2020 5:09 PM To: users@camel.apache.org Subject: [EXTERNAL] Re: basic Auth options for camel netty http endpoint producer *EXTERNAL SENDER* Hi Shiva, you should be able to pass the

Re: basic Auth options for camel netty http endpoint producer

2020-12-08 Thread Zoran Regvart
Hi Shiva, you should be able to pass the `Authorization` HTTP header as the same-named Camel Message header. On Tue, Dec 8, 2020 at 12:01 PM Gv, Shivakumar wrote: > > Hi Team, > > We wanted to used camel netty http client instead of camel - http . But we > are unable to set basic auth credentia

basic Auth options for camel netty http endpoint producer

2020-12-08 Thread Gv, Shivakumar
Hi Team, We wanted to used camel netty http client instead of camel - http . But we are unable to set basic auth credentials on netty endpoint like in camel-http. Can you please let me know how we can set user, password and AuthMode in netty http. Camel-version= 3.4.0 Thanks, Shiva

Re: How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-07 Thread Alex Luo
me other components like the salesforce one). > > Regards > JB > > > Le 4 déc. 2020 à 22:00, Alex Luo a écrit : > > > > Hi Dear, > > > > I am writing a Camel application which is using Camel component to expose > > Http endpoint (Http Consumer), and connect t

Re: How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-07 Thread Alex Luo
ttp is > based on netty and therefore high performance. In camel 3 there are > also http clients based on vertx which has very high performance. > > > > Regards > > JB > > > > > Le 4 déc. 2020 à 22:00, Alex Luo a écrit : > > > > > > Hi Dear,

Re: How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-07 Thread Zoran Regvart
PM Alex Luo wrote: > > Hi Dear, > > I am writing a Camel application which is using a Camel component to expose > Http endpoint (Http Consumer), and connect to a third party Web Server > (Http Producer). > > 1) From my readings I have this list of Camel components I can use

Re: How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-06 Thread Claus Ibsen
t; > Le 4 déc. 2020 à 22:00, Alex Luo a écrit : > > > > Hi Dear, > > > > I am writing a Camel application which is using Camel component to expose > > Http endpoint (Http Consumer), and connect to third party Web Server (Http > > Producer). > > > &g

Re: How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-06 Thread Jean-Baptiste Onofre
Hi Dear, > > I am writing a Camel application which is using Camel component to expose > Http endpoint (Http Consumer), and connect to third party Web Server (Http > Producer). > > 1) From my readings I have this list of Camel components I can use as Http > Consumer. They all o

How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-04 Thread Alex Luo
Hi Dear, I am writing a Camel application which is using Camel component to expose Http endpoint (Http Consumer), and connect to third party Web Server (Http Producer). 1) From my readings I have this list of Camel components I can use as Http Consumer. They all offer the same functionalities

How to choose a camel component for Http Endpoint Producer and / or Consumer

2020-12-04 Thread Alex Luo
Hi Dear, I am writing a Camel application which is using a Camel component to expose Http endpoint (Http Consumer), and connect to a third party Web Server (Http Producer). 1) From my readings I have this list of Camel components I can use as Http Consumer. They all offer the same

Re: nett4-http endpoint - sending multipart request

2018-10-14 Thread Zoran Regvart
at 4:25 PM, John Smith wrote: > Hello, > > I have a netty4-http endpoint that I can send XML to with > Content-Type=application/xml from a SoapUI REST project. > > I'd also like to send XML with attachments as a multipart/form or > multipart/mixed content type. > &g

nett4-http endpoint - sending multipart request

2018-10-13 Thread John Smith
Hello, I have a netty4-http endpoint that I can send XML to with Content-Type=application/xml from a SoapUI REST project. I'd also like to send XML with attachments as a multipart/form or multipart/mixed content type. However when I switch the Content-Type to multipart/form or multipart/

Attempting example for HTTP endpoint, using tomcat, netbeans & spring,

2017-06-02 Thread arcy
Add a name parameter to uri, eg ?name=foo What could I be missing, or what else should I try? -- View this message in context: http://camel.465427.n5.nabble.com/Attempting-example-for-HTTP-endpoint-using-tomcat-netbeans-spring-tp5801715.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: mock http endpoint and retrieving value form properties file

2016-05-18 Thread Quinn Stevenson
ken","ABCD"); > template.setDefaultEndpointUri("bean:testPreProcessor"); > template.sendBodyAndHeader("direct:test","Hello World",header); > assertMockEndpointsSatisfied(); > > } > > } > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/mock-http-endpoint-and-retrieving-value-form-properties-file-tp5782604p5782727.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Re: mock http endpoint and retrieving value form properties file

2016-05-17 Thread Deepak kumar
eProcessor"); template.sendBodyAndHeader("direct:test","Hello World",header); assertMockEndpointsSatisfied(); } } -- View this message in context: http://camel.465427.n5.nabble.com/mock-http-endpoint-and-retrieving-value-form-properties-file-tp5782604p5782727.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: mock http endpoint and retrieving value form properties file

2016-05-17 Thread Quinn Stevenson
pak kumar wrote: > > Hi Quinn , > I got it how to get the value from properties file. But how can i test the > http endpoint here.and that to based on different http response status? if > the status will return 404 then i will throw custom exception. how can i >

Re: mock http endpoint and retrieving value form properties file

2016-05-16 Thread Deepak kumar
Hi Quinn , I got it how to get the value from properties file. But how can i test the http endpoint here.and that to based on different http response status? if the status will return 404 then i will throw custom exception. how can i test these scenarios? -- View this message in context: http

Re: mock http endpoint and retrieving value form properties file

2016-05-16 Thread Quinn Stevenson
> > > -- > View this message in context: > http://camel.465427.n5.nabble.com/mock-http-endpoint-and-retrieving-value-form-properties-file-tp5782604.html > Sent from the Camel - Users mailing list archive at Nabble.com.

mock http endpoint and retrieving value form properties file

2016-05-15 Thread Deepak kumar
above route ? When i am extending my test class from CamelSpringTestSupport then i am not able to fetch the {{testUrl}} value from the properties file and then how can emulate the behavior of http service. -- View this message in context: http://camel.465427.n5.nabble.com/mock-http-endpoint-and

Re: Create 'to' http endpoint (with arguments) with bean

2015-08-21 Thread James Carman
n context: > http://camel.465427.n5.nabble.com/Create-to-http-endpoint-with-arguments-with-bean-tp5770857p5770876.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: Create 'to' http endpoint (with arguments) with bean

2015-08-20 Thread rwijngaa
Work-around: (works, but why use bean:xxx at all then? could then just replace it with a processor ;-) -- View this message in context: http://camel.465427.n5.nabble.com/Create-to-http-endpoint-with-arguments-with-bean-tp5770857p5770876.html Sent from the Camel - Users mailing list archive

Create 'to' http endpoint (with arguments) with bean

2015-08-20 Thread rwijngaa
Hi, I'm 'calculating' a dynamic http uri / arguments with a bean as below. But, the http endpoint does not seem to be called (i do not see the Http headers; i *do* see the getFxAllUrl being called) When replacing the bean:fxAllHttpUrlBuilder with https:jadajada it is called again

Re: Request body is empty in HTTP Endpoint

2015-05-06 Thread Harish Kumar
st service accept *text/html* -- View this message in context: http://camel.465427.n5.nabble.com/Request-body-is-empty-in-HTTP-Endpoint-tp5766738p5766742.html Sent from the Camel - Users mailing list archive at Nabble.com.

Request body is empty in HTTP Endpoint

2015-05-06 Thread Harish Kumar
: http://camel.465427.n5.nabble.com/Request-body-is-empty-in-HTTP-Endpoint-tp5766738.html Sent from the Camel - Users mailing list archive at Nabble.com.

http endpoint throwing error PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

2015-04-13 Thread aksvijayans
:268) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380) ... 37 more Is there is any way to skip the certificate validation? -- View this message in context: http://camel.465427.n5.nabble.com/http-endpoint-throwing-error-PKIX-path-building-failed-sun-s

Re: Handling soap request in http endpoint ? possible?

2014-04-29 Thread komal bhola
org/2001/XMLSchema-instance"/> Basically i do not want to use a cxf endpoint for soap requests. I want http endpoint itself. Also based on soap request my operation code should change dynamically. Please suggest. Thanks -- View this message in context: http://camel.465427.

Re: Handling soap request in http endpoint ? possible?

2014-04-24 Thread Aki Yoshida
itation is that you cannot determine the operation name as you are not using the meta data. regards, aki 2014-04-24 11:49 GMT+02:00 komal bhola : > Hi , > > Currently I am using cxf endpoint to listen to soap requests. Actually I > want to use http endpoint only to listen to soap reque

Re: Handling soap request in http endpoint ? possible?

2014-04-24 Thread Willem Jiang
n to soap requests. Actually I > want to use http endpoint only to listen to soap requests. I need to provide > different services on only 1 URL. So I want soap method name to be populated > in camel headers, based on which I can call different different services. > Please suggest a w

Handling soap request in http endpoint ? possible?

2014-04-24 Thread komal bhola
Hi , Currently I am using cxf endpoint to listen to soap requests. Actually I want to use http endpoint only to listen to soap requests. I need to provide different services on only 1 URL. So I want soap method name to be populated in camel headers, based on which I can call different different

Re: Endpoint pipeline is not working in case of HTTP Endpoint

2013-11-14 Thread Claus Ibsen
Yeah could be, see this FAQ http://camel.apache.org/why-is-my-message-body-empty.html On Thu, Nov 14, 2013 at 12:27 PM, vinod.pah...@gmail.com wrote: > I have configured a route using Spring DSL. It take input from a direct > endpoint to HTTP endpoint. In that case it is working fine. >

Endpoint pipeline is not working in case of HTTP Endpoint

2013-11-14 Thread vinod.pah...@gmail.com
I have configured a route using Spring DSL. It take input from a direct endpoint to HTTP endpoint. In that case it is working fine. But when I pipe result the from http endpoint to a filter processor using xpath it does not return any value back. I debug the code and I got the exchange that is

Re: HTTP endpoint

2013-09-05 Thread sacauskis
ct:start",""); context.setTracing(false); Thread.sleep(9); // stop the CamelContext context.stop(); } } -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-endpoint-tp5738701p5738805.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP endpoint

2013-09-04 Thread Willem Jiang
products(SYN)))")) >.to("file:data");* > > That the authentication is occurring but the query parameters are not being > passed in. What am I doing wrong? > > Any help would be greatly appreciated > > Mike > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTP-endpoint-tp5738701.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

HTTP endpoint

2013-09-04 Thread sacauskis
ta");* That the authentication is occurring but the query parameters are not being passed in. What am I doing wrong? Any help would be greatly appreciated Mike -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-endpoint-tp5738701.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Claus Ibsen
ponents of Camel often has a header that can control to use GET / POST / etc. So for that you need to send both body + headers with the producer template. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTP-Endpoint-construction-in-CamelSpringTest-tp5

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Zemin Hu
pport, just go straight with HttpUnit or HttpClient to do this kind of test. Besides, I also found it's hard to specify request method "GET/POST/PUT/DELETE" with ProducerTemplate. -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Endpoint-constructio

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Willem jiang
my environment as plug-in, > so I don't want to do that. Another reason is that all tests are built > around Java DSL based routes, no Spring XML DSL route tests. I don't want to > dig that deep. > Thanks. > > > > -- > View this message in context: > ht

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Zemin Hu
View this message in context: http://camel.465427.n5.nabble.com/HTTP-Endpoint-construction-in-CamelSpringTest-tp5726090p5726165.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Endpoint construction in CamelSpringTest

2013-01-24 Thread Claus Ibsen
it used "file://" which is > working, but there are no samples for "servlet:///" which is most commonly > used. > > What's is correct way for the endpoint? How to test "servlet:///" or "http:" > component without having to start routes

HTTP Endpoint construction in CamelSpringTest

2013-01-23 Thread Zemin Hu
ng to start routes in a web server? I am using camel-core 2.9.1, camel-test 2.9.1. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Endpoint-construction-in-CamelSpringTest-tp5726090.html Sent from the Camel - Users mailing list archive at Nabble.com.

Premature end of file on return from HTTP endpoint

2013-01-10 Thread Castyn
I am submitting messages to an HTTP web service through camel. For some reason, when I am attempting to call an xpath expression on the result I am getting a org.xml.sax.SAXParseException: Premature end of file. Looking at the body of the SOAP XML that is being returned by the HTTP endpoint, I

Re: Problem with HTTP endpoint

2012-12-28 Thread Alan Camillo
illo On Sun, Dec 23, 2012 at 1:38 PM, Meriem wrote: > Hi, > It was effectively the bad version of camel-http.jar, thanks for the reply. > I switched to camel-http-2.9.0.jar and it worked. > But it continue to pull data from the http endpoint (www.google.com) > endlessly, so with

Re: Problem with HTTP endpoint

2012-12-23 Thread Claus Ibsen
On Sun, Dec 23, 2012 at 4:38 PM, Meriem wrote: > Hi, > It was effectively the bad version of camel-http.jar, thanks for the reply. > I switched to camel-http-2.9.0.jar and it worked. > But it continue to pull data from the http endpoint (www.google.com) > endlessly, so with this

Re: Problem with HTTP endpoint

2012-12-23 Thread Willem jiang
You can do some control on the how the http endpoint sending the pulling request[1] If you just want to pull the data only once, you can consider to define the route like this from("direct:start").to("http://google.com";).to("file:target/message"); Once you send t

Re: Problem with HTTP endpoint

2012-12-23 Thread Meriem
Hi, It was effectively the bad version of camel-http.jar, thanks for the reply. I switched to camel-http-2.9.0.jar and it worked. But it continue to pull data from the http endpoint (www.google.com) endlessly, so with this code : from("http://google.com";).to("file:target/messages&

Re: Problem with HTTP endpoint

2012-12-20 Thread Willem jiang
el with JSP/Tomcat > application", I replaced the servlet endpoint by the http endpoint to pull > the request from google as you told me Jiang, but it did not work. This is > my code: > from("http://www.google.com";).process(new Processor() { > public void process(Exchange

Problem with HTTP endpoint

2012-12-20 Thread Meriem
hi, to continue with the previous topic "Problem Apache Camel with JSP/Tomcat application", I replaced the servlet endpoint by the http endpoint to pull the request from google as you told me Jiang, but it did not work. This is my code: from("http://www.google.com";).p

Re: apache Camel cxf proxy doesnt work with http endpoint

2012-12-07 Thread santhosh
. -- View this message in context: http://camel.465427.n5.nabble.com/apache-Camel-cxf-proxy-doesnt-work-with-http-endpoint-tp5723753p5723781.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: apache Camel cxf proxy doesnt work with http endpoint

2012-12-07 Thread Willem jiang
hy the simple camel-cxf proxy with http webservice didnt work > and the second one works (it should and it does :P).Is the code i have ok.It > doesnt seem right to me.I am pretty sure some exchange property is set wrong > or content sent to real webservice is wrong.The content got from

Re: apache Camel cxf proxy doesnt work with http endpoint

2012-12-07 Thread Aki Yoshida
rk > and the second one works (it should and it does :P).Is the code i have ok.It > doesnt seem right to me.I am pretty sure some exchange property is set wrong > or content sent to real webservice is wrong.The content got from the proxy > is used to make the Httppost call in second route.so the content from proxy > cannot be wrong.when it is got from exchange and send to real webservice > something goes wrong. Can anybody throw some light on it. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/apache-Camel-cxf-proxy-doesnt-work-with-http-endpoint-tp5723753.html > Sent from the Camel - Users mailing list archive at Nabble.com.

apache Camel cxf proxy doesnt work with http endpoint

2012-12-07 Thread santhosh
s message in context: http://camel.465427.n5.nabble.com/apache-Camel-cxf-proxy-doesnt-work-with-http-endpoint-tp5723753.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: RecipientList with bean method to set HTTP endpoint string

2012-07-10 Thread rhowlett
il.jtp?type=node&node=5715793&i=0>> > wrote: > > > I'm using the Java DSL to do something akin to the following: > > > > from("xxx") > > .setBody("Hi") > > .recipientList(method(MyBean.class, "myMethod"))

Re: RecipientList with bean method to set HTTP endpoint string

2012-07-09 Thread Claus Ibsen
ing: > > from("xxx") > .setBody("Hi") > .recipientList(method(MyBean.class, "myMethod")) > .end() > > MyBean's myMethod() method is intended to calculate the HTTP endpoint to > call: > > public String myMethod( > @Bo

RecipientList with bean method to set HTTP endpoint string

2012-07-09 Thread rhowlett
I'm using the Java DSL to do something akin to the following: from("xxx") .setBody("Hi") .recipientList(method(MyBean.class, "myMethod")) .end() MyBean's myMethod() method is intended to calculate the HTTP endpoint to call: public St

Re: JUnit @Test not running when using http endpoint

2012-05-17 Thread Nestor Urquiza
Done https://issues.apache.org/jira/browse/CAMEL-5283 Thanks! -Nestor -- View this message in context: http://camel.465427.n5.nabble.com/JUnit-Test-not-running-when-using-http-endpoint-tp5711142p5711439.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JUnit @Test not running when using http endpoint

2012-05-17 Thread Willem Jiang
tp://camel.465427.n5.nabble.com/JUnit-Test-not-running-when-using-http-endpoint-tp5711142p5711368.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem -- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource

Re: JUnit @Test not running when using http endpoint

2012-05-17 Thread Nestor Urquiza
sure fails saying "Connection refused" Best, -Nestor -- View this message in context: http://camel.465427.n5.nabble.com/JUnit-Test-not-running-when-using-http-endpoint-tp5711142p5711368.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JUnit @Test not running when using http endpoint

2012-05-16 Thread Willem Jiang
someAction";); Thanks! -Nestor -- View this message in context: http://camel.465427.n5.nabble.com/JUnit-Test-not-running-when-using-http-endpoint-tp5711142.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem -- CamelOne 201

Re: Producer Template to Invoke HTTP Endpoint Request/Reply

2012-05-03 Thread ychawla
response and all is fine. The methods outlined above both work. Cheers, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Producer-Template-to-Invoke-HTTP-Endpoint-Request-Reply-tp5684220p5684796.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Producer Template to Invoke HTTP Endpoint Request/Reply

2012-05-03 Thread ychawla
.getOut().getBody(String.class), but it is null. Any ideas? -- View this message in context: http://camel.465427.n5.nabble.com/Producer-Template-to-Invoke-HTTP-Endpoint-Request-Reply-tp5684220p5684682.html Sent from the Camel - Users mailing list archive at Nabble.com.

Producer Template to Invoke HTTP Endpoint Request/Reply

2012-05-03 Thread ychawla
setStreamCaching(true); but that has no affect. I know the service is getting invoked and is returning a proper return value. I just can't get at it with the producer template. Any idea how I can use the producer template to do a request/reply against an HTTP endpoint and get the respon

Re: http endpoint, unknown host and errorhandler

2012-04-18 Thread Bob Jolliffe
OK. I had http endpoint as input to my route which I think caused it to poll indefinitely. Using a timer makes it more sane. http://apps.dhis2.org/dev/api/metaData.xml?httpClient.authenticationPreemptive=true&authMethod=Basic&authUsername=admin&authPassword=district"/>

http endpoint, unknown host and errorhandler

2012-04-18 Thread Bob Jolliffe
I have a route which gets data using an http endpoint. I am trying to sensibly handle errors on the route. Because its a remote server there are many things which could go wrong in the network, so I configured an errorhandler with maximumRedeliveries="5". My problem is that if I t

Re: simple language in http endpoint?

2012-03-14 Thread asd09
thank, but i couldn't make what you said. i solve my question by set CamelHttpQuery header earlier I tried to set HTTP_QUERY, but it didn't work. -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564955.html Sent from

Re: simple language in http endpoint?

2012-03-14 Thread Claus Ibsen
any suggestions? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - FuseSource Email: cib...@fusesource.

Re: simple language in http endpoint?

2012-03-14 Thread asd09
java.util.TimerThread.run(Timer.java:462)[:1.6.0_30] Then i try apache-servicemix-4.4.1-fuse-03-06, but i get same error -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564393.html Sent from the Camel - Users mailing list archive at Nabble.com.

simple language in http endpoint?

2012-03-14 Thread asd09
how can i do something like this https://somehost/index.php?$header.params222 /> i try many combinations, but i not found worked version. any suggestions? -- View this message in context: http://camel.465427.n5.nabble.com/simple-language-in-http-endpoint-tp5564380p5564380.html Sent from

Re: reading http endpoint from properties files

2012-02-01 Thread Claus Ibsen
On Wed, Feb 1, 2012 at 8:34 PM, anand sridhar wrote: > The Property Place holder did the trick for me. > However, I was hoping if I could extend it to read properties from the > camel exchange . > Any pointers to examples would be welcome. > If you want a dynamic to in Camel. Then take a look at

Re: reading http endpoint from properties files

2012-02-01 Thread anand sridhar
The Property Place holder did the trick for me. However, I was hoping if I could extend it to read properties from the camel exchange . Any pointers to examples would be welcome. Thanks, Anand On Thu, Jan 26, 2012 at 12:24 AM, Claus Ibsen wrote: > Hi > > See this FAQ > http://camel.apache.org/h

Re: reading http endpoint from properties files

2012-01-26 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html Or you can define the endpoint using property placeholders http://camel.apache.org/using-propertyplaceholder.html http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html On Thu, Jan 26, 2012

Re: reading http endpoint from properties files

2012-01-26 Thread Marco Westermann
Hi what you need is the properties component. Look here: http://camel.apache.org/properties.html then you can refer your endpoint like this .to("{{myHttpEndpoint}}") where you have that defined in your properties like this: myHttpEndpoint=http://servername.com/test regards, Marco Am 26.01

Re: reading http endpoint from properties files

2012-01-25 Thread Bilgin Ibryam
I think what you need is a dynamic router http://camel.apache.org/dynamic-router.html Did you look at it? Bilgin On 26 January 2012 00:00, anand sridhar wrote: > Hi, > I have a route with the endpoint being a HTTP URL. > It so happens that this URL is in a  properties file. > > Could some one he

reading http endpoint from properties files

2012-01-25 Thread anand sridhar
Hi, I have a route with the endpoint being a HTTP URL. It so happens that this URL is in a properties file. Could some one help me to understand how I can dynamically load the end point name from a property file or in general from header, property etc..? apparently, none of these work from("jms

Re: Consuming from jetty http endpoint causes transaction error

2011-11-13 Thread Raul Kripalani
t; > On Fri, Nov 11, 2011 at 12:38 PM, simon godden wrote: > > I have had a context happily set up using XA transactions for several > days. > > > > As long as I am triggering it from a "direct:start" producer, then > > everything is fine - my XA trans

Re: Consuming from jetty http endpoint causes transaction error

2011-11-13 Thread Claus Ibsen
gering it from a "direct:start" producer, then > everything is fine - my XA transactions work. > > As soon as I change it to trigger from the jetty http endpoint > producer, I get an error when I do my first queue write:  Session's > XAResource has not been enlisted in a

Consuming from jetty http endpoint causes transaction error

2011-11-11 Thread simon godden
I have had a context happily set up using XA transactions for several days. As long as I am triggering it from a "direct:start" producer, then everything is fine - my XA transactions work. As soon as I change it to trigger from the jetty http endpoint producer, I get an error when I d

Re: date functions/URL params for http endpoint

2011-06-01 Thread ist-olga
We use cron, that's why we won't have this problem: But I was wondering if not using cron how can we use dynamic uri if it is inside http://camel.465427.n5.nabble.com/date-functions-URL-params-for-http-endpoint-tp4442873p4445925

Re: date functions/URL params for http endpoint

2011-06-01 Thread ist-olga
dynamic router. This will work: http://google.com"/> -- View this message in context: http://camel.465427.n5.nabble.com/date-functions-URL-params-for-http-endpoint-tp4442873p4445883.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: date functions/URL params for http endpoint

2011-06-01 Thread Claus Ibsen
--- > From: "Claus Ibsen" > To: users@camel.apache.org > Sent: Tuesday, May 31, 2011 10:25:40 PM GMT -08:00 US/Canada Pacific > Subject: Re: date functions/URL params for http endpoint > > Hi > > See this FAQ about dynamic To in Camel > http://camel.apache.org/how-do

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
ubject: Re: date functions/URL params for http endpoint Hi See this FAQ about dynamic To in Camel http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html You need to use the recipient list EIP pattern. And for computing the URI, you can use a plain Java bean for that. Sometimes that easier. Esp

Re: date functions/URL params for http endpoint

2011-05-31 Thread Claus Ibsen
uot;Fernando Ribeiro" > To: users@camel.apache.org > Sent: Tuesday, May 31, 2011 11:25:23 AM GMT -08:00 US/Canada Pacific > Subject: Re: date functions/URL params for http endpoint > > Bharat, > > You can create a property (with get/set) methods in your route builder and &g

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
Pacific Subject: Re: date functions/URL params for http endpoint You can add an ID to your route and start it and stop it using the ID. Your route would be from(endpoint) .routeID(idString) .process(whatever); You can then use camelcontext.stopRoute(idString) to stop the route and camelcontext

Re: date functions/URL params for http endpoint

2011-05-31 Thread Donald Whytock
ers@camel.apache.org > Sent: Tuesday, May 31, 2011 12:57:47 PM GMT -08:00 US/Canada Pacific > Subject: Re: date functions/URL params for http endpoint > > Donald raised an important point, need to make sure the start date is > computed dynamically (using the Simple EL does the trick). Th

Re: date functions/URL params for http endpoint

2011-05-31 Thread Donald Whytock
>> >> - Original Message - >> From: "Donald Whytock" >> To: users@camel.apache.org >> Sent: Tuesday, May 31, 2011 12:49:00 PM GMT -08:00 US/Canada Pacific >> Subject: Re: date functions/URL params for http endpoint >> >> toF isn'

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
ytock" > To: users@camel.apache.org > Sent: Tuesday, May 31, 2011 12:49:00 PM GMT -08:00 US/Canada Pacific > Subject: Re: date functions/URL params for http endpoint > > toF isn't runtime-dynamic, right? It's gonna take the startdate and > enddate when the route

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
; > To: users@camel.apache.org > Sent: Tuesday, May 31, 2011 12:49:00 PM GMT -08:00 US/Canada Pacific > Subject: Re: date functions/URL params for http endpoint > > toF isn't runtime-dynamic, right? It's gonna take the startdate and > enddate when the route is built and mak

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
US/Canada Pacific Subject: Re: date functions/URL params for http endpoint toF isn't runtime-dynamic, right? It's gonna take the startdate and enddate when the route is built and make a static endpoint? If you need the endpoint to change at runtime, you'll need to use some sort of

Re: date functions/URL params for http endpoint

2011-05-31 Thread Donald Whytock
va SomeProcessor.class which would fill in startDate and >> endDate. >> >> Trying to figure out what a good practice is. >> >> Thanks >> >> >> - Original Message - >> From: "Fernando Ribeiro" >> To: users@camel.ap

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
actice is. > > Thanks > > > - Original Message - > From: "Fernando Ribeiro" > To: users@camel.apache.org > Sent: Tuesday, May 31, 2011 11:25:23 AM GMT -08:00 US/Canada Pacific > Subject: Re: date functions/URL params for http endpoint > > Bharat, >

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
uld fill in startDate and endDate. Trying to figure out what a good practice is. Thanks - Original Message - From: "Fernando Ribeiro" To: users@camel.apache.org Sent: Tuesday, May 31, 2011 11:25:23 AM GMT -08:00 US/Canada Pacific Subject: Re: date functions/URL params for http

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
tribute the information contained > in this e-mail and any attached files with the permission of the sender.” > > - Original Message - > From: "Fernando Ribeiro" > To: users@camel.apache.org > Sent: Tuesday, May 31, 2011 11:18:07 AM GMT -08:00 US/Canada Pacific &

Re: date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
ctions/URL params for http endpoint You mean you need to be able to get the current date (for startDate) and a date in a configuration (endDate) in your route, right? On Tue, May 31, 2011 at 3:13 PM, Bharat Goyal wrote: > Hello, > We have the requirement to pull data from a http URL on s

Re: date functions/URL params for http endpoint

2011-05-31 Thread Fernando Ribeiro
the month. > > Requirements: > 1. There are 2 URL params in the http call, startDate and endDate that > takes date expr in dd/MMM/ (e.g. 05/JAN/2011) and are used to fetch data > between those 2 dates. > 2. Our camel-cron/quartz setup will need to run on specific dates, and then > route

date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
-cron/quartz setup will need to run on specific dates, and then route to the http endpoint that can retrieve this data. 3. the startDate has to be the current date (whenever the quartz job ran), but the endDate needs to be startDate - {some configured value}. How do we do this via spring/camel

date functions/URL params for http endpoint

2011-05-31 Thread Bharat Goyal
-cron/quartz setup will need to run on specific dates, and then route to the http endpoint that can retrieve this data. 3. the startDate has to be the current date (whenever the quartz job ran), but the endDate needs to be startDate - {some configured value}. How do we do this via spring/camel config

  1   2   >