Re: ConsumerTemplate not finishing?

2010-09-10 Thread Andreas A.
I was a bit to quick to ask that question. I solved it by using .receive instead of .receiveBody and hence an Exchange is created from which I can get the filename. -- View this message in context: http://camel.465427.n5.nabble.com/ConsumerTemplate-not-finishing-tp2642233p2834792.html Sent from

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
Hi I'm now trying to just use a Spring trigger and a simple class using ConsumerTemplate and ProducerTemplate to fetch the files. However, I can't get the ConsumerTemplate to stop polling when I first start it, what's going on? public class FtpsPoller { @Autowired private

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
I tried basing the class on both the example in the wiki and the example in the book. It works, except the consumer never stops polling when I use the FTP endpoint. I don't know what you are trying to hint at. If I use receive or receiveNoWait does not make any difference. The FTP endpoint keeps

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
The same thing happens in another method I use to enrich a message with a single specific file: String ftpsEndpoint = ftps:{{ftp.address}}{{ftp.path.out}}?delete=trueamp;username={{ftp.username}}password={{ftp.password}}fileName=myFileName Exchange str = consumer.receive(ftpsEndpoint); Works

Re: How do YOU handle scheduling?

2010-09-14 Thread Andreas A.
Hi Ok I have corrected my flawed logic to something that works now (I never reached the consumer.stop() line): public void poll() throws Exception { String ftpsUri = ftp:localhost:1981/inbox?username=camelpassword=camel123move=.done; String

Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Andreas A.
Hi I want to build a route where I poll for all files in a directory every 24 hours, then aggregate the files in different groups and send them. So far I have used an aggregator as below, but now a requirement to have a maximum of for instance 100 messages per aggregated message has arisen. Any

Re: Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Andreas A.
Hi Yeah but the problem is that I only poll once per 24 hours (with a simple delay on the file endpoint) and I want all the messages to be picked up everytime. -- View this message in context:

Re: Aggregator completionFromBatchConsumer fallback max messages.

2010-09-28 Thread Andreas A.
Alright cool. I put the logic for this in my AggregationStrategy, works fine. -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-completionFromBatchConsumer-fallback-max-messages-tp2856427p2856629.html Sent from the Camel - Users mailing list archive at Nabble.com.

Error parsing simple/properties in convertBodyTo?

2010-10-05 Thread Andreas A.
Hi I'm doing some conversion of charset in a branch of one of my routes, I'd like that charset to be given in a properties file, but the charset attribute doesn't seems to be translated into the proper property value. Is this a bug with this tag? convertBodyTo type=String

Charset conversion issue.

2010-10-08 Thread Andreas A.
Hi I'm interacting with a system that inputs and outputs textfiles in charset Cp865. I want to fetchs files from the system and convert them to Cp1252 locally. I want to convert outgoing files from Cp1252 to Cp865. I'm trying to use a combination of convertBodyTo type=String

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
Hi I'm doing as below now which works ok - but isn't this what convertBodyTo is supposed to do for me? @Override public void process(Exchange exchange) throws Exception { String converted = new String(exchange.getIn().getBody(String.class).getBytes(Cp1252));

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
Is it correct that setting org.apache.camel.default.charset is the only way to make Camel 2.4 read a file in a specific charset? -- View this message in context: http://camel.465427.n5.nabble.com/Charset-conversion-issue-tp3204282p3204315.html Sent from the Camel - Users mailing list archive at

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
After a lot of trial and error I can see that the files are only read correctly as Cp865 if I set the system property org.apache.camel.default.charset to Cp865. If I try anything else I get ? ? ? for characters such as æ ø å. Can someone explain the mechanics behind this? I thought that the body

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
Hi Ok I will make a sample later, I needed a solution urgently though :) I just tested this: from uri=file:data/in/test / convertBodyTo charset=Cp865 type=String / convertBodyTo charset=Cp1252 type=String / And this results in the conversion being correct *shrugs*. -- View this message in

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
Hi Willem Can you explain why you think it makes sense? - Andreas -- View this message in context: http://camel.465427.n5.nabble.com/Charset-conversion-issue-tp3204282p3204490.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
Where can I see what convertBodyTo translates to in Java code? I would like to see what it does. -- View this message in context: http://camel.465427.n5.nabble.com/Charset-conversion-issue-tp3204282p3204502.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Charset conversion issue.

2010-10-08 Thread Andreas A.
I have made this class to subsitute the convertBodyTo tags. from uri=file:/data/in / bean ref=CharsetConverter method=toExternalCharset / bean ref=CharsetConverter method=toInternalCharset / public class CharsetConverter { public void toInternalCharset(Exchange exchange) throws

Limit ERROR-emits for logging?

2010-10-19 Thread Andreas A.
Hi I'm trying to create a log4j setup that sends an e-mail on most ERROR-messages that my application emits - primarily on exceptions. However it's difficult not to get flooded with e-mails since log4j outputs several ERROR-messages per exception like so: 2010-10-19 14:49:27,457 ERROR [Camel

Re: Limit ERROR-emits for logging?

2010-10-20 Thread Andreas A.
That could be an option, but I also have parts of the application that are not in Camel-routes that I would like to get e-mailed about. Thought it would be easier/cleaner to just have it configured in the logging. -- View this message in context:

Does Camel respect another context's readLock?

2010-11-02 Thread Andreas A.
Hi I'm seeing some strange behaviour that I suspect might come from the fact that I have two Camel-contexts in each it's own Camel Main competing over the same files in a directory. What will actually happen when you let two effectively seperate Camel applications loose at the same directory? I

Re: Does Camel respect another context's readLock?

2010-11-05 Thread Andreas A.
Hi Yeah I agree, I use include/exclude in other areas but here I cannot since I don't have any control over the naming of the remote files. I have to look at their payload to determine it. Also sometimes files are not even for me so I have to roll those back too. I've been thinking about looking

[Camel 2.5] Propertyplaceholders and Spring DSL still not working?

2010-11-05 Thread Andreas A.
Hi I'm upgrading to Camel 2.5 and this property is still not being resolved it seems, do I need to do something special to make it work? The EIP now supports property placeholders in the String based options (a few spots in Java DSL where its not possible). For example: convertBodyTo

Re: [Camel 2.5] Propertyplaceholders and Spring DSL still not working?

2010-11-05 Thread Andreas A.
Do I need Spring 3.0.4? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-5-Propertyplaceholders-and-Spring-DSL-still-not-working-tp3251608p3251631.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [Camel 2.5] Propertyplaceholders and Spring DSL still not working?

2010-11-05 Thread Andreas A.
Ok, silly mistake. Had to manually clean up my Eclipse project since Eclipse was still using the old jars. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-5-Propertyplaceholders-and-Spring-DSL-still-not-working-tp3251608p3251707.html Sent from the Camel - Users

Re: [Camel 2.5] Propertyplaceholders and Spring DSL still not working?

2010-11-05 Thread Andreas A.
Hi This must be a bug. When used nested in the choice tag the resolving fails: This works: route from uri=file:data/in / convertBodyTo type=String charset={{charset.external}} / log message=Charset: {{charset.external}} / to uri=file:data/out / /route

Re: [Camel 2.5] Propertyplaceholders and Spring DSL still not working?

2010-11-05 Thread Andreas A.
JIRA ticket: https://issues.apache.org/activemq/browse/CAMEL-3314 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-5-Propertyplaceholders-and-Spring-DSL-still-not-working-tp3251608p3251823.html Sent from the Camel - Users mailing list archive at Nabble.com.

Are scheduled route policies in 2.5 or not?

2010-11-05 Thread Andreas A.
Hi In the release notes it says that they are in 2.5, but on the page http://camel.apache.org/scheduledroutepolicy.html it says 2.6. I can find the classes in the 2.5 source code, but I can't find the .class files eventhough I have added all the Camel jars. What's up? :) -- View this message in

How much memory usage is acceptable?

2010-11-09 Thread Andreas A.
Hi How much memory is Camel expected to use, and can anything be done to optimize it? I have a small application consisting of two identical Camel contexts running the same set of routes, they each use around 150 MB both in idle and when processing, so ~300 MB total. The routes are around 450

Processed file being read again, and is empty.

2010-11-09 Thread Andreas A.
Hi I'm struggling with a problem that I think occurs because of two threads trying to do something to the same file but I'm not sure. Route1 processes a large file and spends around 30 seconds doing this. ... split simplebody/simple log message=sending message to queue /

Re: Processed file being read again, and is empty.

2010-11-09 Thread Andreas A.
2010-11-09 14:06:53,197 INFO [Camel Thread 0 - seda://ErrorHandlingQueueIn] [ErrorHandlingRouteIn]: Enter ErrorHandlingRouteIn 2010-11-09 14:06:53,206 ERROR [Camel Thread 0 - seda://ErrorHandlingQueueIn] [org.apache.camel.component.file.GenericFileOnCompletion]: Caused by:

Re: Processed file being read again, and is empty.

2010-11-09 Thread Andreas A.
Hi This is Camel 2.4, I've tried 2.5 also, but this version for some reason leaves behind a .camelLock file for the first (alphabetically) file of a batch. Completes the rest (don't know if sometimes fails the same way as 2.4) of the files, with no camelLock file (?). After processing is done

Re: Processed file being read again, and is empty.

2010-11-09 Thread Andreas A.
Fails in 2.5 also, as well as leaving the camelLock file behind. But could this have anything to do with the aggregator having control over the file that the original route is trying to move, or should Camel be able to handle this? Would wiretapping over into the queue do any difference? -- View

Re: Processed file being read again, and is empty.

2010-11-10 Thread Andreas A.
Hi I think disabling the lock-files would just be treating the symptoms and not the real cause. The AggregationStrategy: public Exchange aggregate(Exchange oldExchange, Exchange newExchange) { if (oldExchange == null) { MapString, byte[] messageMap = new

Re: Processed file being read again, and is empty.

2010-11-10 Thread Andreas A.
There's a difference to using 2.4 or 2.5. With 2.5 it is always the last file of a batch that fails. When I use 2.4 it is random which file fails and the exception is different. 2010-11-10 13:33:11,139 ERROR [Camel Thread 2 - seda://AggregatorQueue]

Re: Processed file being read again, and is empty.

2010-11-10 Thread Andreas A.
Hi, I have created a test sample that recreates this issue. Maybe I should not be using an Aggregator to solve this. Basically I just want to zip together an incoming message with a message(a response) that I generate on the basis of the incoming message. Is this a bug, or am I misusing the

Re: Processed file being read again, and is empty.

2010-11-10 Thread Andreas A.
Hi Yeah I will do that. I have observed that on Camel 2.4 the error actually comes from the Splitter exactly like in this post: http://camel.465427.n5.nabble.com/File-can-t-be-moved-or-deleted-on-Windows-td512484.html#a512484 route from uri=file:data/in2?move=backupamp;moveFailed=error

How to improve robustness of my routes?

2010-11-26 Thread Andreas A.
Hi I have an application that simply put does this: Ingoing: 1 - Fetch file from FTP-Local directory. 2 - Read file from Local directory, transform and split the file into several messages and deliver to JMS queue. Outgoing: 1 - Fetch messages from JMS queue as they are produced, transform and

Re: How to improve robustness of my routes?

2010-11-26 Thread Andreas A.
Hi That could be useful, although I'd rather like the all or nothing style of a transaction since I would always know that if a file is placed somewhere, it has either been consumed or not, and not maybe half consumed. The end result would be similar, but with the idempotent solution there's not

Re: How to improve robustness of my routes?

2010-11-26 Thread Andreas A.
Yeah JMS can use transaction, see the transactional client EIP pattern, and/or chapter 9 in the Camel book. Yeah I've read both, but will it work both ways? Just to be clear: In: from file split to jms Will the message(s) delivered to JMS be rolled back on exception? Out: from jms to file

Re: How to improve robustness of my routes?

2010-11-26 Thread Andreas A.
I will ask the computer now! but it was easier to ask you than setting up and configuring transaction managers etc. :) -- View this message in context: http://camel.465427.n5.nabble.com/How-to-improve-robustness-of-my-routes-tp3281265p3281392.html Sent from the Camel - Users mailing list

Propagate exceptions from Camel to wrapping main method?

2010-12-03 Thread Andreas A.
Hi I have a standalone Camel application: A java main method with a Camel Main class that starts two different contexts. In case of an OutOfMemoryError I would like to propagate this Error from Camel to the enclosing java main method. How can I propagate Errors and Exceptions out of the Camel

Re: Using ConsumerTemplate to fetch files.

2010-12-14 Thread Andreas A.
Hi I should be a subscriber. I have made 100+ posts via nabble. I haven't changed anything regarding my account, are my posts not accepted on the mailinglist anymore or? I've tried with both 2.5 and 2.6. I'm getting some really odd behaviour - why is it stacking the base dir inbox?: - ERROR

Re: Using ConsumerTemplate to fetch files.

2010-12-14 Thread Andreas A.
Ah ok! -- View this message in context: http://camel.465427.n5.nabble.com/Using-ConsumerTemplate-to-fetch-files-tp3304671p3304746.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using ConsumerTemplate to fetch files.

2010-12-14 Thread Andreas A.
However if I use only receiveBody I miss the headers like the filename etc. -- View this message in context: http://camel.465427.n5.nabble.com/Using-ConsumerTemplate-to-fetch-files-tp3304671p3304747.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Using ConsumerTemplate to fetch files.

2010-12-14 Thread Andreas A.
Can't find anything along those lines. I tried doing while(true) { Exchange ex = consumer.receive(ftpsUri, 5000); if(ex != null) { logger.info(Fetching file: + ex.getIn().getHeader(CamelFileName)); producer.send(fileUri, ex);

Re: Using ConsumerTemplate to fetch files.

2010-12-14 Thread Andreas A.
Oh it was a private method. Thought you meant in the api. I suppose I should do the manual handover then. Just pasting here for future reference: if (exchange.getUnitOfWork() == null) { // handover completions and done them manually to ensure they are being executed

Re: Using ConsumerTemplate to fetch files.

2010-12-14 Thread Andreas A.
Hi Something fishy is still going on, this is the code now: String ftpsUri = ftp:localhost:1981/inbox?consumer.delay=1husername=camelpassword=camel123move=.done; String fileUri = file:{{path.in}}; consumer.start(); while(true) { Exchange exchange = consumer.receive(ftpsUri, 5000);

Re: Using ConsumerTemplate to fetch files.

2010-12-16 Thread Andreas A.
If I use receiveNoWait() no files will be downloaded from the ftp, maybe because the the ftp component doesn't have time to login to the ftp? -- View this message in context: http://camel.465427.n5.nabble.com/Using-ConsumerTemplate-to-fetch-files-tp3304671p3307566.html Sent from the Camel -

Re: Error in wiki about pollEnrich?

2010-12-16 Thread Andreas A.
Hi Claus You can use a recipient list and construct a dynamic uri with the file name you want to poll. And you can then provide an aggregration strategy. For example the UseLatestAggregationStrategy. Can you elaborate on how this is done. I can't quite put the pieces together to create what

Download camel-extra / Hibernate component.

2010-12-17 Thread Andreas A.
Hi In order to use the hibernate component do I need more than camel-hibernate-1.0-SNAPSHOT.jar on the classpath? The hibernate: endpoint is not being resolved. There is also a maven component target that has no published jars in the maven repo, do I need to build it? -- View this message in

Change object state via dsl?

2010-12-21 Thread Andreas A.
Hi I have an object o that has an enum that I want to change to status RECEIVED. Is it possible to change this state like o.status = Status.RECEIVED in the dsl? Or do I have to create a pojo that does this for me. -- View this message in context:

Re: XPath namespaces in Spring DSL?

2012-06-14 Thread Andreas A.
Claus can you provide an example of the @Xpath-annotation where a namespace is specified? I have this issue https://issues.apache.org/jira/browse/CAMEL-3155 and I believe that Ashwin's and your answer in this thread should solve the problem. I'm using Camel 2.4.0 w. Spring DSL and tried Ashwin's

Re: XPath namespaces in Spring DSL?

2012-06-14 Thread Andreas A.
There is no example of this on the website as far as I can see, but thanks for the pointer to the section in the book. I still think there is a problem when using a routeContext. I haven't tried newer versions though. Also - does Ashwins example produce the same result as this (only in Spring

Re: XPath namespaces in Spring DSL?

2012-06-15 Thread Andreas A.
Yeah I found and applied the example from the book. This works as long as there is actually a prefix in the xml. When there's only a default namespace the XPath-qeury returns nothing. It doesn't throw an exception like it normally would if the path was incorrect. -- View this message in context:

Re: Round Robin in Camel Routes

2013-07-18 Thread andreas
Hi If you are asking whether you can have a route across 2 brokers, that is a definite yes. I didn't get the question behind your 2nd paragraph. Best rgds Andreas Sent from Samsung tabletdeepak_a angesh...@gmail.com wrote:Hi, In my architecture I am using Jboss+ActiveMQ (integrated

Custom names for processors within routes

2013-07-22 Thread andreas
way to influence those last 2 names from my route builder ? - Potentially I have overlooked something in the docs ... For convenience I have attached a piece of my JVisualVM screenshot that shows the processors in question. Best regards Andreas

REST/Jackson: Is it possible to set global PropertyNamingStrategy?

2016-09-16 Thread Andreas A.
Usually I use "bindingmode.json" on rest-endpoints and let Camel deal with the marshalling. Now I would like to control the PropertyNamingStrategy on all marshale/unmarshal. So far my solution is the one below: ObjectMapper objectMapper = new ObjectMapper(); JacksonDataFormat format = new

camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-09 Thread Andreas A.
I'm trying to send an e-mail with a subject, body and attached file. The subject and attached file works fine. However when I make an attachment, the body of the email ends up as an unnamed attachment in the final mail. Is this a bug in Camel or do I need to do something to make sure the

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-11 Thread Andreas A.
Thanks guys, setting the content type to text/plain did the trick. -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-Body-ends-up-as-attachment-instead-of-e-mail-body-in-multipart-mail-tp5789939p5790037.html Sent from the Camel - Users mailing list archive at

Re: camel-mail: Body ends up as attachment instead of e-mail body in multipart mail.

2016-11-10 Thread Andreas A.
I'm using 2.17.3. I guess I could try 2.18.0. -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-Body-ends-up-as-attachment-instead-of-e-mail-body-in-multipart-mail-tp5789939p5789989.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Call local application

2009-12-10 Thread Andreas Prieß
Claus Ibsen wrote: On Thu, Dec 10, 2009 at 11:12 AM, SwenVogel swen.vo...@ypsystems.de wrote: Yes that's right, i just thought perhaps there is already some kind of camel - way to do this. So, i will write a consumer component that is capable of creating an local input file from an message

Re: ftpClient doesn't support sendSiteCommand() in uri.

2010-06-16 Thread Andreas Asmuss
Hi I created the ticket: https://issues.apache.org/activemq/browse/CAMEL-2822 I need to send the command at login before uploading a number of files. I doesn't hurt to send the command per file though. -- View this message in context:

Re: camel-ftp and login script

2010-07-05 Thread Andreas Asmuss
Hi, I'm still in need of this functionality. Do any of you guys have an idea for a workaround to use until this is implemented in Camel? -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-and-login-script-tp599274p696453.html Sent from the Camel - Users mailing list

Encoding acting odd.

2010-07-07 Thread Andreas Asmuss
Hi, I want to operate in charset iso-8859-1 in my route because of some special characters. Therefore I do convertBodyTo type=String charset=iso-8859-1 at the start of my routes. I also do exchange.setProperty(Exchange.CHARSET_NAME, iso-8859-1); As long as JAXB is not involved this works fine.

Re: Encoding acting odd.

2010-07-07 Thread Andreas Asmuss
I'm using 2.3. I thought setting CHARSET_NAME would instruct JAXB to use the encoding set there? In Camel 1.6.1 and newer you can set the encoding option to use when marshalling. Its the Marshaller.JAXB_ENCODING encoding property on the JAXB Marshaller. You can setup which encoding to use when

Re: Encoding acting odd.

2010-07-07 Thread Andreas Asmuss
No matter what I do the marshaller complains about: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence. I set these values: System.setProperty(org.apache.camel.default.charset, iso-8859-1); exchange.setProperty(Exchange.CHARSET_NAME, iso-8859-1); jaxb id=jaxbIntermediateIn

FTP on MVS filesystem.

2010-07-14 Thread Andreas Asmuss
Hi I'm trying to fetch files from an FTP that seems to be using MVS. I have configured my endpoint as such: ftp://10.0.0.1/'DATA.OUT.EDI'?delay=5sdelete=truepassword=mypw123klusername=myuser Camel connects to the ftp but just polls the directory and doesn't retrieve any files from the FTP. I

Re: FTP on MVS filesystem.

2010-07-14 Thread Andreas Asmuss
Yeah you're right. I'm reimplementing some old code using Camel and in that code FTPClient is used. I missed the fact that you have to do dir / listFiles() before you can fetch the files. The FTP-component doesn't support this - any ideas? :) Earlier I implemented the .sendSiteCommand by

Re: FTP on MVS filesystem.

2010-07-15 Thread Andreas Asmuss
Hi My last post didn't make much sense. Obviously Camel also does listFiles() when polling the ftp. I've made a basic implementation of what I need to do in Java (which works): public static void main(String[] args) throws SocketException, IOException { FTPClient ftp =

Re: FTP on MVS filesystem.

2010-07-15 Thread Andreas Asmuss
After getting the 2.4.0 jars I know get this exception: Exception in thread main java.lang.NoSuchMethodError: org.apache.commons.net.ftp.FTPClient.setConnectTimeout(I)V at org.apache.camel.component.file.remote.FtpEndpoint.createRemoteFileOperations(FtpEndpoint.java:84) at

Re: FTP on MVS filesystem.

2010-07-16 Thread Andreas Asmuss
I got it working by overriding the listFiles() in a custom FTPClient now. But I'm interested in the solution with a processStrategy. However I can't figure out how I'm supposed to do the cd command. I need access to some object that can do this operation - which and how? -- View this message in

Re: FTP on MVS filesystem.

2010-07-16 Thread Andreas Asmuss
Hi I've tried to implement the interface, don't know if it's correct, but it seems that only prepareOnStartup is ever called when running the route. public class CscProcessStrategy implements GenericFileProcessStrategyFile { public boolean

Re: FTP on MVS filesystem.

2010-07-16 Thread Andreas Asmuss
Hi Yeah I know, it also does in my local copy :) - it still doesn't get called though. What about the type I have provided for the generic classes? Should that be FTPFile or RemoteFile or something? -- View this message in context:

Re: FTP on MVS filesystem.

2010-07-16 Thread Andreas Asmuss
Isn't this strategy first used when the FtpComponent actually has a file to process? -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1223990.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP on MVS filesystem.

2010-07-16 Thread Andreas Asmuss
Alright thanks. I'll just stick with my ugly but working solution for now. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1224016.html Sent from the Camel - Users mailing list archive at Nabble.com.

possible onException bug when using routeContext

2010-07-20 Thread Andreas Asmuss
Hi I have two routes in a routecontext. Both share an errorhandler but one of the routes has a special exception clause. These routes works as expected when defined directly in a camelContext, but when imported from a routeContext, behaviour is flawed. In the routes below route2 inherits the

Re: possible onException bug when using routeContext

2010-07-20 Thread Andreas Asmuss
Actually I'm not sure if startuporder has anything to do with it, or if it's just the physical placement in the .xml file. -- View this message in context: http://camel.465427.n5.nabble.com/possible-onException-bug-when-using-routeContext-tp1616244p1616574.html Sent from the Camel - Users

Re: possible onException bug when using routeContext

2010-07-20 Thread Andreas Asmuss
Hi Created a ticket an attached a sample case: https://issues.apache.org/activemq/browse/CAMEL-2972 -- View this message in context: http://camel.465427.n5.nabble.com/possible-onException-bug-when-using-routeContext-tp1616244p1618526.html Sent from the Camel - Users mailing list archive at

FTP: Try login once and disconnect if failure.

2010-07-21 Thread Andreas Asmuss
Hi I have a route like this: route from uri=ftp:localhost/inbox/?username=camelamp;password=camel123amp;disconnect=trueamp;consumer.delay=60samp;maximumReconnectAttempts=0 / to uri=file:test_data / /route In order to prevent user lock out if the wrong password

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

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:

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.

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. onException doesn't work which I assume is because errorhandling doesn't work until a message has entered the route. -- View this message in context:

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: 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:

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

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

Re: FTP on MVS filesystem.

2010-07-22 Thread Andreas Asmuss
Hi Claus As shown below the code does listFiles(.) - it should be listFiles(). Further below you can see how MVS doesn't return any files when doing ls . public ListFTPFile listFiles() throws GenericFileOperationFailedException { return listFiles(.); } public ListFTPFile

Re: FTP on MVS filesystem.

2010-07-22 Thread Andreas Asmuss
Hi Claus We're getting closer :) Now the files are listed correctly at least, but they can't be downloaded. I'm not sure why this happens - will look into it tommorow unless you have an idea. The same thing happens if I use my custom ftpClient with camel ftp 2.5 (which works with camel 2.4)

Re: FTP on MVS filesystem.

2010-07-23 Thread Andreas Asmuss
Hi Claus I wonder if when downloading you need to CD to the directory first and then download the file. Correct - you have to be placed in the same directory as the file you want to download it and do GET filename. You cannot do something like this: get 'SDN.OUT.EDI'/file001 which Camel-ftp

Re: FTP on MVS filesystem.

2010-07-23 Thread Andreas Asmuss
Hi Bingo! It works beautifully now :) -- View this message in context: http://camel.465427.n5.nabble.com/FTP-on-MVS-filesystem-tp1092836p1843315.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: set header value

2010-07-26 Thread Andreas Asmuss
As shown here: http://camel.apache.org/simple.html you can do what you ask for with either a List or a Map using OGNL. This requires Camel 2.3. If you cannot upgrade to Camel 2.3 you could just make your own Processor that fetches the value and sets it as a header. -- View this message in

FTPS: Unrecognized SSL message, plaintext connection?. Code: 234

2010-07-27 Thread Andreas Asmuss
Hi I'm trying my hand at using FTP over SSL. At some point I'd like to use both server and and client authentication via certificates. I have configured a server that has a certificate. This works fine when I log into it using a normal FTP client; the certificate pops up and I must accept it

Re: FTPS execProt P failing.

2010-07-30 Thread Andreas Asmuss
Hi, I've overcome this problem now though and stepped into a myriad of new ones :) At the moment I can't make FTPSClient/Camel connect to a server that works perfectly fine with any other client with FTPS enabled (server authentication only). Any idea if FTPSClient is using SSLv2 or v3? Can't

Re: Error in wiki about pollEnrich?

2010-08-04 Thread Andreas Asmuss
And for the record nothing seems to work when using dynamic file names: This works: route from uri=file:test_data/in?move=../../doneamp;delay=10s / to uri=seda:in / /route route from uri=seda:in / pollEnrich uri=file:test_data/enrich?fileName=enrich2.txt /

Re: Error in wiki about pollEnrich?

2010-08-04 Thread Andreas Asmuss
Maybe this example in the old FTP page: http://camel.apache.org/ftp.html#FTP-ConsumingaremoteFTPservertriggeredbyaroute is the only way to achieve this at the moment? -- View this message in context: http://camel.465427.n5.nabble.com/Error-in-wiki-about-pollEnrich-tp2263967p2263990.html Sent

Re: Error in wiki about pollEnrich?

2010-08-04 Thread Andreas Asmuss
Ah ok. What are the samples in the wiki supposed to demonstrate then? -- View this message in context: http://camel.465427.n5.nabble.com/Error-in-wiki-about-pollEnrich-tp2263967p2264015.html Sent from the Camel - Users mailing list archive at Nabble.com.

Hibernate @Consumed - how does it work?

2010-08-10 Thread Andreas Asmuss
Hi I'm considering using the Hibernate component. There's the @Consumed annotation that you can use for instance to mark your entity as processed, but how does this work? How do I make the next query only return the entities that are not marked as processed? -- View this message in context:

Re: FTPS execProt P failing.

2010-08-16 Thread Andreas Asmuss
Hi Bengt, Thanks for the response. I have overcome my problems with setting up an FTPS server and making Camel communicate with it. Both with a server and client certificate. I'm running passive mode with prot p which I believe also results in the datachannel being encrypted. -- View this

List of files from FTP when in route?

2010-08-16 Thread Andreas Asmuss
I'm pretty sure something like this is not easily doable. The use case is a route used to resend messages to an FTP (and it should be noted if they were resent) * Get list of messageId's from a db * Split up in two lists, one list goes to a queue * Entries in the second list can be used as

  1   2   >