Re: Problems using async threads

2010-09-30 Thread davsclaus
You need to put stuff inside which is what is to be routed using those threads. Hence the error message about no children. http://camel.465427.n5.nabble.com/Problems-using-async-threads-tp3025934p3057555.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Restlet HTTP status and message

2010-09-30 Thread Claus Ibsen
Hi I have created a ticket https://issues.apache.org/activemq/browse/CAMEL-3184 To add an option to the restlet component so it works more like the http component. The http component will throw an exception if the code != 200. I think we should do the same for the restlet. This makes it easier to

Re: Restlet HTTP status and message

2010-09-30 Thread Claus Ibsen
The HTTP response code should be set by the restlet component http://camel.apache.org/restlet So you can just test this code ${header.CamelHttpResponseCode} == 200 ... not 200 so something is wrong On Thu, Sep 30, 2010 at 10:52 PM, mat127 wrote: > > Hi Ashwin, >

Re: Using direct:start

2010-09-30 Thread Richard Kettelerij
What do you mean by "it does not start", do you get an exception message? In order to start a "direct" endpoint you must either send something to it from anther route (using ) or use a ProducerTemplate to programmatically send a message. -- View this message in context: http://camel.465427.n5.

Re: How to handle firefox outputting files, as component?

2010-09-30 Thread Richard Kettelerij
A Camel component is essentially a processor. In general components are more suitable for reusable pieces of integration logic (like wrapping transports such as ftp, tcp, ws, etc) while processors are more suitable for adhoc tasks that you want to perform as part of your route (like validating the

How to handle firefox outputting files, as component?

2010-09-30 Thread David Yang
We're still getting to know Camel but one of the things we'd like to try is to have a step in our pipeline where HTML data (or a file location) is passed to firefox and converted to PDF. We'd like to probably pass a location on disk or perhaps just the entire HTML as data. How should we go ab

Re: publishedEndpointUrl for cxf:cxfEndpoint

2010-09-30 Thread Scott Christopher
On 30/09/2010, at 11:47 PM, Ashwin Karpe wrote: > The answer is yes. Check out the address attribute in the > bean. I'll assume you're referring to the cxfEndpoint element in the http://camel.apache.org/schema/cxf namespace. In which case, I don't believe that works for us. To give you an exa

Re: Restlet HTTP status and message

2010-09-30 Thread mat127
Hi Ashwin, thank you for your answer. You are right there is no exception handling in the code I posted. That is because the exception that is raised during the route execution is related to the parsing of the http response: SEVERE: Failed delivery for exchangeId: 26a0911d-9ffc-4366-9c46-cef208

Camel Social component 'PoC' ready

2010-09-30 Thread Bruno Borges
Hadrian, remember the talk we had on ApacheCon 2009? I know I took almost a year to have this thing done. Sorry for taking so long! But here it goes. I just want to state that Neociclo supported me a lot on achieving this. Not only we were able to code the Camel OFTP

Re: camel-bean-validator and hibernate-validator for OSGi

2010-09-30 Thread Bengt Rodehav
Willem, I've created a small test case using ServiceMix bundles for JSR-303 and for hibernate validator. It's a maven based project with a parent project containing two projects: bundleOne and itest. "bundleOne" contains a simple class (EntityOne) and a service with the method "createEntityOne".

Re: HTTP basic authentication for cxf endpoint

2010-09-30 Thread Willem Jiang
Please check out the CXF http client configuer[1], and add these in your beans.xml http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"; xmlns:security="http://cxf

RE: netty questions

2010-09-30 Thread Ashwin Karpe
Hi, There is a connectTimeout parameter in Camel that allows you to configure a Netty endpoint to timeout a connection due to inactivity. If you have wide variances in the time you backend application sends responses, you may use keepAlives to keep the connection going until you receive a respon

Re: publishedEndpointUrl for cxf:cxfEndpoint

2010-09-30 Thread Ashwin Karpe
Hi, The answer is yes. Check out the address attribute in the bean. Cheers, Ashwin... - - Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com htt

CXF performance considerations - pojo vs. payload

2010-09-30 Thread Marco Zapletal
Hi, just a quick question in terms of the different data formats offered for CXF services. I expect that there is a significant performance difference when using payload instead of the pojo data format, since it avoids the JAXB (or any other) marshaling process. Can anybody confirm this or

Re: Restlet HTTP status and message

2010-09-30 Thread Ashwin Karpe
Hi, I do not see any exception handling code here. Check out http://camel.apache.org/exception-clause.html http://camel.apache.org/exception-clause.html You can also look in the exchange.getOut.isFailed() to see if the exchange returned has failed due to an exception or fault. Cheers, Ashwin

Re: HTTP basic authentication for cxf endpoint

2010-09-30 Thread Ashwin Karpe
Hi, You need to configure a bus object with https and inject it into your cxfEndpoint. Please check out the example below. For more details check out the bus configuration section of your CXF documentation. There is no need to explicitly inject the bus into the endpoint. The presence of a bus o

Re: Streaming splitter with custom split method

2010-09-30 Thread Claus Ibsen
Yeah put the expression as a parameter to split, eg put it inside split( HERE ).streaming() On Thu, Sep 30, 2010 at 2:34 PM, Tarjei Huse wrote: > > Den 30. sep. 2010 kl. 14:05 skrev Claus Ibsen : > >> On Thu, Sep 30, 2010 at 12:22 PM, Tarjei Huse wrote: >>>  On 09/29/2010 01:31 PM, Claus Ibsen

Re: Streaming splitter with custom split method

2010-09-30 Thread Tarjei Huse
Den 30. sep. 2010 kl. 14:05 skrev Claus Ibsen : > On Thu, Sep 30, 2010 at 12:22 PM, Tarjei Huse wrote: >> On 09/29/2010 01:31 PM, Claus Ibsen wrote: >>> On Wed, Sep 29, 2010 at 12:44 PM, Tarjei Huse wrote: Hi, I got a huge file I want to split into smaller chunks and send each chunk

Re: Streaming splitter with custom split method

2010-09-30 Thread Claus Ibsen
On Thu, Sep 30, 2010 at 12:22 PM, Tarjei Huse wrote: >  On 09/29/2010 01:31 PM, Claus Ibsen wrote: >> On Wed, Sep 29, 2010 at 12:44 PM, Tarjei Huse wrote: >>>  Hi, I got a huge file I want to split into smaller chunks and send each >>> chunk as a new message using the splitter. The file contains

publishedEndpointUrl for cxf:cxfEndpoint

2010-09-30 Thread Scott Christopher
We're using a CXF consuming endpoint, which is listening on a private host behind a firewall / load balancer. As a result, the URL that CXF generates in the WSDL does not reflect the URL that external clients need to use to connect to the service. I've noticed that it is possible to override th

Re: Streaming splitter with custom split method

2010-09-30 Thread Tarjei Huse
On 09/29/2010 01:31 PM, Claus Ibsen wrote: > On Wed, Sep 29, 2010 at 12:44 PM, Tarjei Huse wrote: >> Hi, I got a huge file I want to split into smaller chunks and send each >> chunk as a new message using the splitter. The file contains Protobuf >> objects so I cannot use any of the normal split