http header strategy: transfer-encoding

2009-08-27 Thread Gert-Jan van de Streek
I would recommend adding "transfer-encoding" to the out filter in HttpHeaderStrategy. When for example "transfer-encoding: chunked" is accidentally added to the request headers in HttpClient, it will confuse the client. This can for example happen when in a previous http request this head

Re: WARN when startup CamelContext for not finding SftpOperations$1.class

2009-08-27 Thread snowbug
Didn't know the 2.0 is already released, just downloaded it and it had the same problem. I traced into the code and it seems that it's a bug that is not significant. I've created a bug to track this: https://issues.apache.org/activemq/browse/CAMEL-1953 https://issues.apache.org/activemq/browse/

Re: Monitor GC on Camel Context

2009-08-27 Thread Claus Ibsen
On Fri, Aug 28, 2009 at 6:48 AM, Praveen Krishnan wrote: > > Never mind, It was my bad, I did not add > > Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false > -Dcom.sun.management.jmxremote.authenticate=false in my camel script. > Thanks a lot for sharing your solution. > Sorr

Re: Monitor GC on Camel Context

2009-08-27 Thread Praveen Krishnan
Never mind, It was my bad, I did not add Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false in my camel script. Sorry once again for adding a issue. -Praveen Praveen Krishnan wrote: > > Hi All, > > We have been trying to

Re: WARN when startup CamelContext for not finding SftpOperations$1.class

2009-08-27 Thread Claus Ibsen
Hi How do you run it, e.g. which container / server? Did it work before? Have you tried with Camel 2.0.0? On Fri, Aug 28, 2009 at 12:52 AM, snowbug wrote: > > I receive the following WARN message when starts the CamelContext: > 17:49:57,520 WARN  [DefaultPackageScanClassResolver] Could not fi

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Claus Ibsen
On Fri, Aug 28, 2009 at 5:14 AM, Mick Knutson wrote: > Thanks for the response, but I would like to ask how I would achieve the > following... I used the Audit example from the 2.0-M3 source, but now the > new xsd's don't work: > > > > http://www.springframework.org/schema/beans"; >    xmlns:xsi="

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Claus Ibsen
On Fri, Aug 28, 2009 at 3:58 AM, Mick Knutson wrote: > My current one is : > xmlns:camel="http://camel.apache.org/schema/spring"; > > do I change it to > xmlns:camel="http://camel.apache.org/schema"; > No keep it as is. If you actually took a minute and tried entering the 2 urls in a webbrowser yo

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Mick Knutson
Thanks for the response, but I would like to ask how I would achieve the following... I used the Audit example from the 2.0-M3 source, but now the new xsd's don't work: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:aop=" http://www

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Willem Jiang
Oh, you can't define the out of the camelContext. Since there could be more than one camel context in the application context configuration file. Please put the inside the camelContext. ... Willem Mick Knutson wrote: I changed my declaration to this, but this did not change: h

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Mick Knutson
I changed my declaration to this, but this did not change: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:aop="http://www.springframework.org/schema/aop"; xmlns:camel="http://camel.apache.org/schema/spring";

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Hadrian Zbarcea
No, targetNamespace (s) are unchanged. For the spring one it is still xmlns:camel="http://camel.apache.org/schema/spring"; see [1] What I meant is that from http://camel.apache.org/schema you can navigate to the respective subdirs and find that the camel-*-2.0.0.xsd files are now available o

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Mick Knutson
My current one is : xmlns:camel="http://camel.apache.org/schema/spring"; do I change it to xmlns:camel="http://camel.apache.org/schema"; ?? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f.

Re: CXF WS proxy

2009-08-27 Thread Willem Jiang
Hi, Here is a example[1] of CXF example for routing messages with different transports, please check it out. [1]http://camel.apache.org/cxf-example.html Willem abdes wrote: Hi, i search the best and rapid way to provide proxy WS in Fuse ESB from another WS provided by external applications

WARN when startup CamelContext for not finding SftpOperations$1.class

2009-08-27 Thread snowbug
I receive the following WARN message when starts the CamelContext: 17:49:57,520 WARN [DefaultPackageScanClassResolver] Could not find class 'org/apache/camel/component/file/remote/SftpOperations$1.class' in any classloaders: [sun.misc.launcher$appclassloa...@56825682] The camel-ftp-2.0-M3.jar i

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Hadrian Zbarcea
The xsd files are available on the camel site: http://camel.apache.org/schema/ Please let us know if you still encounter issues. Thanks, Hadrian On Aug 27, 2009, at 2:03 PM, Claus Ibsen wrote: Hi Yeah its because of https://issues.apache.org/activemq/browse/CAMEL-1947 The 2.0 xsd files have

Re: Camel hello world - Failed to resolve endpoint: jetty://http://localhost:9080/myapp/myservice due to: No component found with scheme: jetty

2009-08-27 Thread Stan Lewis
Do you have camel-jetty specified as a dependency in your pom.xml or in your classpath? On Thu, Aug 27, 2009 at 3:30 PM, Amirisetty Vijayaraghavan wrote: > > Hi, >   I am in the process of writing a camel hello world that would read http > requests (using the jetty component) and write it to a fil

Camel hello world - Failed to resolve endpoint: jetty://http://localhost:9080/myapp/myservice due to: No component found with scheme: jetty

2009-08-27 Thread Amirisetty Vijayaraghavan
Hi, I am in the process of writing a camel hello world that would read http requests (using the jetty component) and write it to a file, but I seem to hit the following error : org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jetty://http://localhost:9080/myapp/myse

Re: Monitor GC on Camel Context

2009-08-27 Thread Praveen Krishnan
Hi Claus, I completely agree, will not create tickets so fast. But this is what i basically am trying to do I am trying to deploy my service to a host which has some dynamic network interfaces. For example, the physical host name is Physical host name : myproducts.domain.com IP addr of Physica

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Hadrian Zbarcea
They are copied on the minotaur, they should propagate shortly. I'll keep an eye on it. Hadrian On Aug 27, 2009, at 2:03 PM, Claus Ibsen wrote: Hi Yeah its because of https://issues.apache.org/activemq/browse/CAMEL-1947 The 2.0 xsd files have not been published to apache maven servers.

Re: endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Claus Ibsen
Hi Yeah its because of https://issues.apache.org/activemq/browse/CAMEL-1947 The 2.0 xsd files have not been published to apache maven servers. On Thu, Aug 27, 2009 at 5:29 PM, Mick Knutson wrote: > I have been using the example from 2.0-M3 with this endpoint in the > server-aop.xml: > >     >

Spring Remoting with File Component - Hopefully someone has a quick answer :)

2009-08-27 Thread James Chrystal
I'm using Camel 1.6.1 - I want to use Spring remoting with the File Component, however, I'm getting a NoTypeConversionAvailableException. I'm curious if it's possible to make this work. This works fine using JMS - the MyServiceInterface accepts an Object which implements Serializable, and it cre

endpoint not found after 2.0.0 upgrade

2009-08-27 Thread Mick Knutson
I have been using the example from 2.0-M3 with this endpoint in the server-aop.xml: But I now get this error when I run the camel server: Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionP

CXF WS proxy

2009-08-27 Thread abdes
Hi, i search the best and rapid way to provide proxy WS in Fuse ESB from another WS provided by external applications. APPLICATION A - WS A FUSE ESB - WS Proxy A I want to change the client call : client will not use WS A but WS Proxy A. WS Proxy A will be just a relay to WS A

Re: Mina Buffer size

2009-08-27 Thread Claus Ibsen
Hi Thanks a lot for sharing this. Comes handy when we add this feature to Camel itself. On Thu, Aug 27, 2009 at 4:23 PM, M.Ismail wrote: > > Hi > It worked now here is what I've done: > > public class MinaCustomCodecTextLine extends TextLineCodecFactory { > >        private static final int maxL

Re: Mina Buffer size

2009-08-27 Thread M.Ismail
Hi It worked now here is what I've done: public class MinaCustomCodecTextLine extends TextLineCodecFactory { private static final int maxLineLength = 5; @Override public ProtocolDecoder getDecoder() throws Exception { // TODO Auto-generated method stub

Re: Garceful shutdown bug in 2.0M3?

2009-08-27 Thread m.s.
Here is some more information about my issue: I am using AMQ 5.2 and Camel 2.0. AMQ runs as a standalone application and I configure Camel and the AMQ component via the Spring applicationContext.xml. After stopping Tomcat, I get the following exception and Tomcat hangs: > 27.08.2009 16:05:01 o

Re: Garceful shutdown bug in 2.0M3?

2009-08-27 Thread Hadrian Zbarcea
I think there was an issue about daemon threads that sounded quite similar. Hadrian On Aug 27, 2009, at 3:52 AM, Claus Ibsen wrote: On Wed, Aug 26, 2009 at 5:08 PM, dadoc wrote: Claus Ibsen-2 wrote: If you do it by pure java, eg not letting spring handle the lifecycle you have contro

Re: Where is defined the cxf-version property?

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 2:12 PM, bgoetzmann wrote: > > Hello, > > Looking at the camel-cxf's pom.xml, can somene tell me where is defined the > cxf-version (${cxf-version}) and what's its actual value for Apache Camel 2? > > Thank you a lot! I think its here https://svn.apache.org/repos/asf/camel/

Where is defined the cxf-version property?

2009-08-27 Thread bgoetzmann
Hello, Looking at the camel-cxf's pom.xml, can somene tell me where is defined the cxf-version (${cxf-version}) and what's its actual value for Apache Camel 2? Thank you a lot! Bertrand. -- View this message in context: http://www.nabble.com/Where-is-defined-the-cxf-version-property--tp25167

Re: Monitor GC on Camel Context

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 3:23 AM, Praveen Krishnan wrote: > > Hi All, > > We have been trying to use camel for sending emails for our services. While > setting up camel, we have various issues enabling the JMX. I have filed a > defect for the same(https://issues.apache.org/activemq/browse/CAMEL-1945

Re: Monitor GC on Camel Context

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 3:23 AM, Praveen Krishnan wrote: > > Hi All, > > We have been trying to use camel for sending emails for our services. While > setting up camel, we have various issues enabling the JMX. I have filed a > defect for the same(https://issues.apache.org/activemq/browse/CAMEL-1945

Re: renaming a file in a bean

2009-08-27 Thread Claus Ibsen
Use the XML tag for that. You have mixed POJO with XML routing. On Thu, Aug 27, 2009 at 11:41 AM, Farhad Dehghani wrote: > Hi Claus, > It seems that the problem is the "VodIncomingProcessor" bean, which is a > @RecipientList. Because when I remove it from the route, everything works > fine (usi

Fwd: renaming a file in a bean

2009-08-27 Thread Farhad Dehghani
Hi Claus, It seems that the problem is the "VodIncomingProcessor" bean, which is a @RecipientList. Because when I remove it from the route, everything works fine (using exchange.getIn().setHeader() in the trailerHandler). A simplified version of the VodIncomingProcessor looks like: public

Re: Stop route as part of error handling

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 8:25 AM, m.s. wrote: > > Hi, > > I am wondering if it is possible to stop a route as part of the error > handling. E.g. if I have a transacted route from a JMS endpoint to an http > endpoint, the route should be stopped if the message cannot be delivered. > The message shoul

Re: Stop route as part of error handling

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 8:25 AM, m.s. wrote: > > Hi, > > I am wondering if it is possible to stop a route as part of the error > handling. E.g. if I have a transacted route from a JMS endpoint to an http > endpoint, the route should be stopped if the message cannot be delivered. > The message shoul

Re: renaming a file in a bean

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 9:47 AM, Farhad Dehghani wrote: > Thanks Claus, > I've actually tried that too. The result is the same !! Any other > suggestions? > The body content is what Camel wants to store in the file. It can deal with most common types such as String, Stream etc. But you have an Obj

Re: Garceful shutdown bug in 2.0M3?

2009-08-27 Thread Claus Ibsen
On Wed, Aug 26, 2009 at 5:08 PM, dadoc wrote: > > > Claus Ibsen-2 wrote: >> >> If you do it by pure java, eg not letting spring handle the lifecycle >> you have control and can shutdown all of them in nice order without >> problems. >> > > Please, is it possible to point at the relevant example, or

Fwd: renaming a file in a bean

2009-08-27 Thread Farhad Dehghani
Thanks Claus, I've actually tried that too. The result is the same !! Any other suggestions? -Farhad Begin forwarded message: Date: August 26, 2009 7:12:26 AM GMT+02:00 Subject: Re: renaming a file in a bean Source: Nabble - Camel - Users Author: Claus Ibsen-2 Hi You want to replace the e

Re: Garceful shutdown bug in 2.0M3?

2009-08-27 Thread Claus Ibsen
On Thu, Aug 27, 2009 at 9:37 AM, m.s. wrote: > > I run an application that uses the ActiveMQ-Component on Tomcat. The server > hangs if I try to stop it and only shuts down if I stop ActiveMQ that is > running as a stand-alone application. Is this related to the same problem? > It seems that open c

Re: Garceful shutdown bug in 2.0M3?

2009-08-27 Thread m.s.
I run an application that uses the ActiveMQ-Component on Tomcat. The server hangs if I try to stop it and only shuts down if I stop ActiveMQ that is running as a stand-alone application. Is this related to the same problem? It seems that open connections to ActiveMQ are the reason for the server n