Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Claus Ibsen
On Wed, Jul 21, 2010 at 4:28 PM, Andreas Asmuss wrote: > > Hi > > I tried stepping through the process of connecting with a bad password, and > I can see that it is intentional to try a few times with a new FTPClient > instance to connect before giving up - as I'm trying to limit the > loginattemp

Re: HTTP / HTTP4 issue with accept content / content encoding

2010-07-21 Thread Willem Jiang
As the HttpProducer need compress the request message, so the http component checks the content encoding header before it send the request. I just wrote a simple test to verify your case, and found its bug of HttpComponent. A JIRA[1] is created for tracking this kind of issue. If you just sen

Re: OSGi Camel issue: org.apache.camel.core.osgi is private in camel-spring

2010-07-21 Thread Willem Jiang
Bryce Ewing wrote: Hi, In the upgrade from camel 2.2.0 to 2.4.0 there was a refactoring of OSGi support. One change was the deprecating of the camel-osgi component in favor of camel-spring. I am not using spring as such in my application (obviously certain parts do use it but it isn't a sprin

Re: xml based CBR with choice predicate to rootNode

2010-07-21 Thread sm_piilay
I figured it out.. I added a namespace for the xml and also added that namespace in camelcontext and it worked. Regards. -- View this message in context: http://camel.465427.n5.nabble.com/xml-based-CBR-with-choice-predicate-to-rootNode-tp1734551p1754939.html Sent from the Camel - Users mailing

xml based CBR with choice predicate to rootNode

2010-07-21 Thread sm_piilay
I have a simple xml message as follows: USERNAME I have the following camel-context.xml to route the messages to a queue based on the rootNode i.e.TEST. The xpath predicate doesnt seems to work. Thanks for your help. *** http://camel.apache.org/schema/spring";> http://net.tes

Re: FTP on MVS filesystem.

2010-07-21 Thread Andreas Asmuss
Hi Yeah I know - didn't have time for it today, just wanted to let you know that it did not work so far. Will debug tomorrow. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1732138.html Sent from the Camel - Users mailing list archive at Nabb

Re: FTP on MVS filesystem.

2010-07-21 Thread Claus Ibsen
On Wed, Jul 21, 2010 at 2:27 PM, Andreas Asmuss wrote: > > No, it still doesn't work. > -- Its you who got the MVS FTP server so you gotta help and debug the code and see where the problem is. > View this message in context: > http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1

Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
Hi I tried stepping through the process of connecting with a bad password, and I can see that it is intentional to try a few times with a new FTPClient instance to connect before giving up - as I'm trying to limit the loginattempts to 1 and then abort this is a little annoying :) When using the

Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
After consulting Camel in Action I found that org.apache.camel.PollingConsumerPollStrategy is the answer to errorhandling before an Exchange is create in this case :) The problem with multiple connections when login fails still stands though. -- View this message in context: http://camel.465427

Re: LoadBalancing to a dynamic list of endpoints

2010-07-21 Thread Claus Ibsen
Hi Just use a processor / bean and do you own load balancing logic and send using a producer template. On Wed, Jul 21, 2010 at 1:06 PM, Cappa Roberto wrote: > Hi, > > I need to loadBalance with failover to a list of final endpoints that can be > dynamically calculated, so I cannot use ".to()" a

Re: FTP on MVS filesystem.

2010-07-21 Thread Andreas Asmuss
No, it still doesn't work. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1713509.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to evaluate an expression/substitute a variable for building URI's at runtime ?

2010-07-21 Thread hussainpirosha
Thanks Willem for the reply, but still i want to use the same routes that i have posted (without using a dataformat). Is it possible to evaluate the URI at runtime ? , somehow source the RSS URL to from() method. Thanks, Hussain -- View this message in context: http://camel.465427.n5.nabble.com

Re: FTP on MVS filesystem.

2010-07-21 Thread Claus Ibsen
On Wed, Jul 21, 2010 at 11:41 AM, Andreas Asmuss wrote: > > Hi Claus > > Didn't notice your posts until now. I just tried with the new jar and it > didn't work. Is there an "MSV" option that needs to be set or have you just > changed the way it works generally? There is no option. The logic is ch

Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
Another thing I don't understand: How can I catch the exception thrown from the FtpComponent. doesn't work which I assume is because errorhandling doesn't work until a message has entered the route. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-discon

LoadBalancing to a dynamic list of endpoints

2010-07-21 Thread Cappa Roberto
Hi, I need to loadBalance with failover to a list of final endpoints that can be dynamically calculated, so I cannot use ".to()" after the failover clause I've tryed in this way, using the recipient list: from("jetty:") .process(new Processor() { public vo

Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
Actually this issue is also present when not having disconnect=true in the uri. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Try-login-once-and-disconnect-if-failure-tp1692660p1701993.html Sent from the Camel - Users mailing list archive at Nabble.com.

HTTP / HTTP4 issue with accept content / content encoding

2010-07-21 Thread Bryce Ewing
Hi, I have had some issues around content encodings, specifically gzipped HTTP content for an RSS feed. This is related to: http://camel.465427.n5.nabble.com/Error-with-RSS-component-accessing-gzip-content-td1335918.html#a1543487 but also separate. When using either HTTP or HTTP4 components

Re: FTP on MVS filesystem.

2010-07-21 Thread Andreas Asmuss
Hi Claus Didn't notice your posts until now. I just tried with the new jar and it didn't work. Is there an "MSV" option that needs to be set or have you just changed the way it works generally? -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p16

OSGi Camel issue: org.apache.camel.core.osgi is private in camel-spring

2010-07-21 Thread Bryce Ewing
Hi, In the upgrade from camel 2.2.0 to 2.4.0 there was a refactoring of OSGi support. One change was the deprecating of the camel-osgi component in favor of camel-spring. I am not using spring as such in my application (obviously certain parts do use it but it isn't a spring based application).

Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
Hi Jira ticket: https://issues.apache.org/activemq/browse/CAMEL-2979 Is it possible to make Camel drop the connection some other way? I would like to: connect poll fetch files (if any) disconnect I tried some of the timeout options but they don't have any effect. On a related note: I would l

Re: FTP: Try login once and disconnect if failure.

2010-07-21 Thread Claus Ibsen
Hi Ah that is because you have an explicit disconnect configured with disconnect=true. Could you create a JIRA ticket. On Wed, Jul 21, 2010 at 10:41 AM, Andreas Asmuss wrote: > > Hi > > I have a route like this: > > >         uri="ftp:localhost/inbox/?username=camel&password=camel123&disconnec

FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
Hi I have a route like this: In order to prevent user lock out if the wrong password is provided I would like to try and login only once. With this route Camel makes two connections at the same time in case the first connection cannot login. Is this behaviour