SFTP file retrieval does not seem to work but no exception

2010-11-25 Thread manoj.sahu
Hi - I am trying to get a file from a remote sftp server. It does not give me any exception but does not work either. Here is my route : from("sftp://dws...@10.0.0.149://sftp/?initialDelay=8000&move=.done&password=";) .to("log:input") .u

Re: SFTP file retrieval does not seem to work but no exception

2010-11-26 Thread manoj.sahu
Thank you for attention Claus! I had switched on trace : log4j.logger.org.apache.camel=TRACE I did not get any further logging. I am 2.5.0 version. 11:06:23,873 DEBUG SpringCamelContext:94 - onApplicationEvent: 11:06:23,873 TRACE SpringCamelContext:206 - Ignoring maybeStart() as Apache Camel

Re: SFTP file retrieval does not seem to work but no exception

2010-11-28 Thread manoj.sahu
Hi Bengt, I have used the winSCP client to login to the remote server and I see there is file to pick up. I am also able to move files using the same credential as my Java program using Camel.On the remote server I have a jail (chroot) account. That should not make any difference. Thanks

Netty for TCP communication

2011-03-04 Thread manoj.sahu
Hi - I am using netty to send a request over a TCP socket. When I send the request I need to send 2 bytes lengh of the message and then followed by an XML payload. On response I am getting 2 bytes length and then XML payload. I am assuming that I need to write a custom codec for it. Can someone

Re: Netty for TCP communication

2011-03-07 Thread manoj.sahu
Thanks for the guidance Claus! I dug further on the capabilities of netty and realized that they already have what I need. I configured LengthFieldBasedFrameDecoder for decoding the message and LengthFieldPrepender for encoding the message. It worked like a charm. I configured the service endp

Multiple remote connection to the same host but different users

2011-04-17 Thread manoj.sahu
Hi there, I am using camel HTTP component to do an outbound connection to a remote server. However, depending on my inbound connection I need to communicate to the remote server using different credentials. The remote server uses basicauth. What I have noticed that camel tries to reuse the alrea

Re: Multiple remote connection to the same host but different users

2011-04-17 Thread manoj.sahu
I just want to make it clear that I have seen this behavior when I am running integration level tests using JUnit4. I have not tested yet running this inside a container (Tomcat...) -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-remote-connection-to-the-same-host-but

Re: Multiple remote connection to the same host but different users

2011-04-17 Thread manoj.sahu
Hi Ashiwin, Thanks for your response. Unfortunately I cannot do that. First of all the remote server is from a Service Provider. Their URL is fixed. Only connecting users need to be different. It's the same service offered at a fixed endpoint. The re-authentication is needed for many differen

Re: Multiple remote connection to the same host but different users

2011-04-18 Thread manoj.sahu
Hi Claus, That's exactly what I use. I use recipient list pattern. That's working as expected. The problem I am having is on the actual transport using HTTP component. User A is using an authenticated connection of User B to the same endpoint. It's a backend webserivce. I am okay to reestablish

Re: Multiple remote connection to the same host but different users

2011-05-02 Thread manoj.sahu
After further analysis, it appears to me as a bug in apache camel. The bug remains in ProducerCache.doGetProducer() where a producer is instantiated or retrieved from the cache. At the time of instantiating producer Basically ProducerCache caches the Producers. However when it retrieves the p

Re: Multiple remote connection to the same host but different users

2011-05-23 Thread manoj.sahu
Claus, My apologies for the delayed response. I got pulled out of that project. Anyway, I did the following public class HttpProducer extends DefaultProducer implements ServicePoolAware { ... I hope that's all you wanted me to test. I reran my tests and it failed with the same error as before

Re: Camel and Tomcat

2012-03-10 Thread manoj.sahu
Hi, ContextLoaderServlet is deprecated in Spring 3. I am getting the exact error. java.lang.IllegalArgumentException: Cannot find the deployed servlet, please configure the ServletComponent or configure a org.apache.camel.component.servlet.CamelHttpTransportServlet servlet in web.xml I'm

Re: Camel and Tomcat

2012-03-13 Thread manoj.sahu
Can someone please give some guidance. As per 2.4 servlet spec, Listners (ContexLoaderListener) are loaded first before the servlets in the container. I am unsure how can this work. When the spring context is loaded it will never find the necessary component to resolve the route with servlet://

Re: Camel and Tomcat

2012-03-15 Thread manoj.sahu
Thanks for your pointer Willem. It worked with version 2.7.5. May be we could have this information available in wiki so that it saves someone grief. I already wrote an implementation to have it work in 2.4.0. Here is the outline of the solution just in case it helps someone who couldn't upgr