Re: Using Policy to alter Definitions before building

2010-07-06 Thread Claus Ibsen
Hi I just had a thought. I think we should modify the DefinitionAwarePolicy a bit to ensure the contract stays the same. This is what I propose public interface DefinitionAwarePolicy extends Policy { /** * Callback invoked before the wrap. * * This allows you to do any custo

Re: Using Policy to alter Definitions before building

2010-07-06 Thread Claus Ibsen
On Wed, Jul 7, 2010 at 8:08 AM, Hadrian Zbarcea wrote: > Should we continue the discussion here or in the jira? > IMHO mailing list is best as they are easier to search. Also a broader audience may listen and contribute. > Not sure if I get your point. To me a policy is meant exactly for that:

Re: Using Policy to alter Definitions before building

2010-07-06 Thread Hadrian Zbarcea
Should we continue the discussion here or in the jira? Not sure if I get your point. To me a policy is meant exactly for that: to wrap a part of a route and inject extra processing. The wrap method returns a Processor that does some stuff and at some point delegates to the inner Processor that

Re: Using Policy to alter Definitions before building

2010-07-06 Thread Claus Ibsen
Hi In the patch on the ticket https://issues.apache.org/activemq/browse/CAMEL-2914 The processor which is passed into the wrap is just a dummy delegate. This breaks the contract that its the actual processor being wrapped. So now there is a different in semantic between the regular wrap and the n

Re: My camel-CXF tests fails, if they run together

2010-07-06 Thread Willem Jiang
Hi Christian, I think the better solution is start the CXF server once in the @BeforeClass method. If you take a look the unit tests of camel-cxf, we will find there are lots of tests still use Camel JUnit helper class :) Willem -- Apache Camel, Apache CXF co

Re: My camel-CXF tests fails, if they run together

2010-07-06 Thread Christian Schneider
You could simply use a default spring junit 4 test. I think there the default is to reuse the spring context. I have done such a test in SoapCxfServerTest: http://svn.apache.org/repos/asf/camel/trunk/components/camel-soap/src/test/java/org/apache/camel/dataformat/soap/SoapCxfServerTest.java Gre

Re: Problems deleting or moving files from FTP source

2010-07-06 Thread Claus Ibsen
On Tue, Jul 6, 2010 at 3:56 PM, Morten Engel wrote: > > I better add, that it's not a user restriction problem, as I can add, change > and delete files as much as I want, through other means, using the same > credentials. > Hmm a bit strange. The Apache Commons Net FTPClient will either thrown an

Re: My camel-CXF tests fails, if they run together

2010-07-06 Thread Christian Müller
Hello Christian, hello Willem! I extract the creation of the client in a 'setUpBeforeClass' method, so that the client is only initialized once: @BeforeClass public static void setUpBeforeClass() throws Exception { URL wsdlURL = IncommingRouteTest.class.getClassLoader().getResourc

[HEADS UP] - Camel 2.4 - About default timeouts in camel-ftp

2010-07-06 Thread Claus Ibsen
Hi In Camel 2.4 we have introduced options in the endpoint uri to easier configure various timeouts with the FTP. Added connectTimeout, soTimeout and timeout to FTP so its easier to configure timeouts. You can see the wiki page https://cwiki.apache.org/confluence/display/CAMEL/FTP2 This means w

Re: XMPP Component Questions

2010-07-06 Thread Claus Ibsen
You need to install the camel-xmpp feature in SMX See the SMX guides here http://fusesource.com/products/enterprise-servicemix4/#documentation Also the OSGi guide etc. On Tue, Jul 6, 2010 at 12:51 PM, alessandro.cangini wrote: > > Thank you very much for the hint > > by the way it seems to b

Re: XMPP Component Questions

2010-07-06 Thread alessandro.cangini
Solved! i have to declare the dependency to the camel-xmpp component in the pom.xml file and this is the portion of Myprocess String uri = "xmpp://MyProducer/"+Destination+"?password="; XmppComponent xmpp = new XmppComponent(); if (camel.getComponent("xmpp") == null) camel.addComponent("xmpp

Re: Problems deleting or moving files from FTP source

2010-07-06 Thread Morten Engel
I better add, that it's not a user restriction problem, as I can add, change and delete files as much as I want, through other means, using the same credentials. I've also tried exactly the same on another FTP server with the exact same result. -- View this message in context: http://camel.4654

Re: Configuration of connection timeout when transmitting files to remote SFTP server?

2010-07-06 Thread Mattias Severson
The Session.connect(int timeout) method eventually calls Socket.setSoTimeout(int timeout), which implies that the time unit of the timeout is milliseconds. I have created an issue: https://issues.apache.org/activemq/browse/CAMEL-2912 https://issues.apache.org/activemq/browse/CAMEL-2912 /Mattia

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 Charles Moulliard
The syntax is not correct --> KR, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - ServiceMix Committer ~~~ Blog : http://cmoulliard.blogspot.com | Twitter : http://twitter.com/cmoulliard Linkedin : http://

Re: AW: File component behavior

2010-07-06 Thread Bruno Dusausoy
On Tue, 6 Jul 2010 14:21:23 +0200, Schneider Christian wrote: > Hi Bruno, > > I somtime encountered the error Content not allowed in prolog. This always > happened when the xml parser read a file that contained no valid xml. So it > seems to me you have a file output.txt somewhere that is read an

AW: File component behavior

2010-07-06 Thread Schneider Christian
Hi Bruno, I somtime encountered the error Content not allowed in prolog. This always happened when the xml parser read a file that contained no valid xml. So it seems to me you have a file output.txt somewhere that is read and contains no valid xml. You could try to put a bean after from that

Re: File component behavior

2010-07-06 Thread Bruno Dusausoy
On Tue, 6 Jul 2010 14:07:56 +0200, Charles Moulliard wrote: > How have you configured the jms component of camel ( uri="jms:output" />) ? > Yes, but I thought I should better leave it off in order to reduce the noise. Here is the whole application context : http://www.springframework.org/schema

Re: File component behavior

2010-07-06 Thread Charles Moulliard
How have you configured the jms component of camel () ? Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - ServiceMix Committer ~~~ Blog : http://cmoulliard.blogspot.com | Twitter : http://twitter.com/

File component behavior

2010-07-06 Thread Bruno Dusausoy
Hi, I'm new to both Camel and EIP so maybe my question/problem is dumb ;). I have a route defined in Spring as this : http://camel.apache.org/schema/spring";> foo.bar The implementation of "uploadBean"

Re: CamelProxyFactoryBean - How to Set A Timeout?

2010-07-06 Thread Claus Ibsen
On Tue, Jul 6, 2010 at 12:30 PM, Carlo Camerino wrote: > thanks! > > btw, do i have to set the timeout on the server route builder or on > the client route builder? > Client as the timeout if client based, while it waits for the server to reply. > > > On Tue, Jul 6, 2010 at 4:04 PM, Claus Ibsen

Re: XMPP Component Questions

2010-07-06 Thread alessandro.cangini
Thank you very much for the hint by the way it seems to be unapplicable in my case because i have to work on apache servicemix and i have some problems, appearently i have to build my route only with a routeBuilder because the servicemix-camel-service-unit maven archetype only gives a routeBuilde

Re: CamelProxyFactoryBean - How to Set A Timeout?

2010-07-06 Thread Carlo Camerino
thanks! btw, do i have to set the timeout on the server route builder or on the client route builder? On Tue, Jul 6, 2010 at 4:04 PM, Claus Ibsen wrote: > On Tue, Jul 6, 2010 at 9:44 AM, Carlo Camerino > wrote: >> Hi, >> >> Is there anyway that I could set a timeout for camel's CamelProxyFac

Camel-aop and intercept

2010-07-06 Thread Charles Moulliard
Hi, As camel-aop will be deprecated in a near future (camel-2.4), will it be possible through "intercept" to define this case : from(queue:input) --> exchange --> to(bean:process) --> exchange (to be intercepted) --> to() --> exchange --> to(queue:test) KR, Charles Moulliard Senior Enterprise

Re: Configuration of connection timeout when transmitting files to remote SFTP server?

2010-07-06 Thread Claus Ibsen
On Tue, Jul 6, 2010 at 11:05 AM, Mattias Severson wrote: > > I may have found a suitable method, how about the > http://grepcode.com/file/repo1.maven.org/maven2/com.jcraft/jsch/0.1.42/com/jcraft/jsch/Session.java#Session.connect%28int%29 > Session.connect(int connectTimeout)  method? > Great that

Re: Configuration of connection timeout when transmitting files to remote SFTP server?

2010-07-06 Thread Mattias Severson
I may have found a suitable method, how about the http://grepcode.com/file/repo1.maven.org/maven2/com.jcraft/jsch/0.1.42/com/jcraft/jsch/Session.java#Session.connect%28int%29 Session.connect(int connectTimeout) method? I also found the http://grepcode.com/file/repo1.maven.org/maven2/com.jcraf

Re: CamelProxyFactoryBean - How to Set A Timeout?

2010-07-06 Thread Claus Ibsen
On Tue, Jul 6, 2010 at 9:44 AM, Carlo Camerino wrote: > Hi, > > Is there anyway that I could set a timeout for camel's CamelProxyFactoryBean. > > The equivalent bean in spring can have a timeout, namely the > HttpINvokerProxyFactoryBean... > > i'm trying to find a similar function for camel.. > N

CamelProxyFactoryBean - How to Set A Timeout?

2010-07-06 Thread Carlo Camerino
Hi, Is there anyway that I could set a timeout for camel's CamelProxyFactoryBean. The equivalent bean in spring can have a timeout, namely the HttpINvokerProxyFactoryBean... i'm trying to find a similar function for camel.. thanks carlo