Re: FTP timeout on write

2014-02-26 Thread javamonkey79
yes, it was a passive mode problem thanks -- View this message in context: http://camel.465427.n5.nabble.com/FTP-timeout-on-write-tp5747966p5748018.html Sent from the Camel - Users mailing list archive at Nabble.com.

FTP timeout on write

2014-02-25 Thread javamonkey79
Hello, When I write an FTP endpoint on my local machine it works fine, but when deployed to the server I get: org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: Could not parse response code. Server Reply: : A remote host did not respond within the

Re: show ftp commands

2014-02-25 Thread javamonkey79
Remember to add this to the pom if using slf4j: dependency groupIdorg.slf4j/groupId artifactIdlog4j-over-slf4j/artifactId version${slf4j-version}/version /dependency As camel uses log4j. --

Re: FTP timeout on write

2014-02-25 Thread javamonkey79
For the record, it connects, creates the file with 0 bytes and then times out. These are not large files. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-timeout-on-write-tp5747966p5747972.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP timeout on write

2014-02-25 Thread javamonkey79
it looks like the file is locked with 0 bytes as far as I can tell. I can't read it or delete it and my tools show 0 -- View this message in context: http://camel.465427.n5.nabble.com/FTP-timeout-on-write-tp5747966p5747994.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: show ftp commands

2014-02-19 Thread javamonkey79
Claus Ibsen-2 wrote* Otherwise the FTP client may have a logging level / name you can set to see what it can log on the client side about the activity. * On Tue, Feb 18, 2014 at 11:00 PM, javamonkey79 lt; javamonkey79@ gt; wrote: In the FTP component docs, it shows the FTP commands from

show ftp commands

2014-02-18 Thread javamonkey79
In the FTP component docs, it shows the FTP commands from the stepwise flag: TYPE A 200 Type set to A PWD 257 / is current directory. CWD one 250 CWD successful. /one is current directory. CWD two 250 CWD successful. /one/two is current directory. SYST 215 UNIX emulated by FileZilla PORT

domain locks up on transactional file splits

2013-11-15 Thread javamonkey79
We're running camel 2.11 and AMQ 5.8 on glassfish red hat OS. We have a route which reads in somewhat large files (20 mb) and has to split them up. The current route reads the file in from SFTP to AMQ, then splits the file up sending each message to a JMS queue. The problem is, that the domain

preserve headers properties in split?

2013-11-01 Thread javamonkey79
With following: split tokenize token=\r\n / setOutHeader headerName=caseCountconstant42/constant/setOutHeader setHeader headerName=caseCountconstant42/constant/setHeader

Re: missing output on route definition

2013-09-20 Thread javamonkey79
I am using 2.11.0. I can try the newly released 2.12.0 if you think that would fix it. I removed the transacted statement and yes, the broker then showed up in the route definition. Maybe there is a bug in how routes with transacted are advised? -- View this message in context:

missing output on route definition

2013-09-18 Thread javamonkey79
I have the following: onException exceptionjava.lang.Throwable/exception redeliveryPolicy redeliveryDelay=1000 maximumRedeliveries=1 / bean ref=exceptionToAlertConverter / to

aggregator duplicate messages

2013-09-06 Thread javamonkey79
I am using an aggregator with a custom repository that extends MemoryAggregationRepository. I am doing this to implement some fuzzy logic in my key matching. For example: message 1, key = 1234#abc#def message 2, key = 1234#xxx#def So long as the first and last tokens match then I need to combine

Re: save message across exchanges

2013-08-01 Thread javamonkey79
The headers and properties I have tried will only persist the message across *that* exchange, not across *multiple* exchanges. -- View this message in context: http://camel.465427.n5.nabble.com/save-message-across-exchanges-tp5736593p5736646.html Sent from the Camel - Users mailing list

save message across exchanges

2013-07-31 Thread javamonkey79
Is there a way to store a message across exchanges? It seems like you should be able to put something in to the context, but I’m not seeing anything obvious. For now, I’m just using a bean to save off a static reference, but this seems sorta dirty. Thanks in advance. -- View this message

padded text and\or static classes in velocity template of velocity component

2013-07-23 Thread javamonkey79
I am trying to pad some text in a velocity template in the camel component. To do this, I'd like to use the StringUtils class of apache commons. Per suggestions from other sources, I've tried this: public class StringUtilsHelper { public void addStringUtilsToExchange( final Exchange

Re: padded text and\or static classes in velocity template of velocity component

2013-07-23 Thread javamonkey79
This post helped me get it: http://camel.465427.n5.nabble.com/How-to-use-escape-tool-esc-xml-somestrwithspclchars-in-camel-velocity-template-td5505668.html This works for me: in template: $headers.StringUtils.leftPad(foo, 10) java: public class StringUtilsHelper { public void

Re: List contains in Simple?

2013-06-22 Thread javamonkey79
Yes, that works. What is the simple bean used for then? e.g. what's the difference between bean and ref in this instance... or why won't bean work? -- View this message in context: http://camel.465427.n5.nabble.com/List-contains-in-Simple-tp5734458p5734580.html Sent from the Camel - Users

Re: camel sftp privateKeyFile - load from classpath

2013-06-21 Thread javamonkey79
I've created the issue here: https://issues.apache.org/jira/browse/CAMEL-6477 Stephan, I'd be happy to submit a patch unless you or someone else should work on it... can you point me to where camel actually calls jsch wrt the keyfile logic? -- View this message in context:

List contains in Simple?

2013-06-20 Thread javamonkey79
Is it possible to do a list.contains in the simple language? I had something like this: simple${body.get(KEY)} in ${bean:listRef}/simple But it did not work. (My body object was a Map, listRef was an ArrayList). Thinking back, the only thing that I might have done wrong is that the Map was

RE: camel sftp privateKeyFile - load from classpath

2013-06-20 Thread javamonkey79
@Stephan - that is a bit over my head, perhaps I don't understand the sftp component and jsch well enough yet. What I do know is that jsch is taking the String param passed in via Camel (the fileName param) and turning that in to a File, which I don't think will work with classpath resources?

Re: List contains in Simple?

2013-06-20 Thread javamonkey79
I tried adding toString on and it did not work either... simple${body.get(KEY).toString()} in ${bean:test}/simple Is this possible to do? -- View this message in context: http://camel.465427.n5.nabble.com/List-contains-in-Simple-tp5734458p5734470.html Sent from the Camel - Users mailing list

Re: List contains in Simple?

2013-06-20 Thread javamonkey79
I guess that is why it is called simple :) Can you inject in properties (body, exchange properties, etc.) in to other language expressions then? Is there an example out there similar to what I am trying to do? Thanks! -- View this message in context:

camel sftp privateKeyFile - load from classpath

2013-06-19 Thread javamonkey79
Is there any way to load the privateKeyFile for sftp endpoints from the classpath? It looks to me like JSCH is accepting a String param and then converting that to a file, which probably won't work for classpath files. Maybe this is an improvement in the SFTP component? -- View this message in

consumer\producer only endpoint

2013-06-17 Thread javamonkey79
With custom endpoints that have only a producer or only a consumer, do you just return null in the endpoint class, or is there something special you have to do? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/consumer-producer-only-endpoint-tp5734268.html Sent from

Re: inherit\extend camel context?

2013-06-07 Thread javamonkey79
https://issues.apache.org/jira/browse/CAMEL-3870 voted for. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/inherit-extend-camel-context-tp5733964p5733982.html Sent from the Camel - Users mailing list archive at Nabble.com.

inherit\extend camel context?

2013-06-06 Thread javamonkey79
I have some boiler plate code that is needed in several camel context's, is there a way to inherit\extend from a parent camel context? If not, is there any other way to include boiler plate stuff, perhaps with aspects? I have something like this copied across many routes:

Re: inherit\extend camel context?

2013-06-06 Thread javamonkey79
I can from a technical perspective, but from a time perspective I don't have time to go back and re-write it all in java dsl. Are there plans on adding this as a feature, I'm not seeing it in Jira? -- View this message in context:

Re: evaluating bean expressions in custom language

2013-05-29 Thread javamonkey79
I have built a camel language component - that is what this is for. I'm asking if there is a standard way to evaluate bean expressions in language components. -- View this message in context:

evaluating bean expressions in custom language

2013-05-28 Thread javamonkey79
Is there a standard way to evaluate bean expressions\OGNL in custom languages? For example: I have a custom language expression like this: language language=e4x

Re: aggregator: dynamic completion size

2013-05-24 Thread javamonkey79
I did read the documentation, many times :) It was not camel that was wrong - it was my unit test. From what I can tell, if you set BOTH a completionSize and a completionTimeout it will use both: e.g. if you set it to completionSize=500 completionTimeout=500 for example, it will stop when it

aggregator: dynamic completion size

2013-05-23 Thread javamonkey79
It seems that the completionSize attribute of the aggregator will make up the difference if there are no more messages. I'd like to be able to do something like: aggregate strategyRef=myAggregationStrategy completionSize=500

Re: add bean to registry in custom endpoint?

2013-05-13 Thread javamonkey79
Hmm, would it make sense for the Spring registry to be mutable? I can definitely see the case for unit testing (as I have submitted: https://issues.apache.org/jira/browse/CAMEL-6342), however, I'm not sure about the live registry. It seems that non-Spring allows for additional objects to be added

CamelSpringTestSupport registry\bean modification

2013-05-07 Thread javamonkey79
Is there any way to change beans declared in your Spring.xml when using CamelSpringTestSupport? To be specific, I'm not talking about route beans, I know you can use: AdviceWithRouteBuilder for that, but rather, beans declared outside the route. For instance: camelContext id=context

Re: CamelSpringTestSupport registry\bean modification

2013-05-07 Thread javamonkey79
I hope there is a better solution that this, but this works for me: return new FileSystemXmlApplicationContext( ./src/main/webapp/WEB-INF/applicationContext.xml ) { @SuppressWarnings( unchecked ) @Override

add bean to registry in custom endpoint?

2013-05-06 Thread javamonkey79
Can you add a custom bean to the registry in a custom endpoint? I'd like to be able to add some default beans to the registry in my custom endpoint, is this possible? I can see that I can get the camel context from the endpoint, and I can get the registry from the camel context - but the

new camel predicate\expression language

2013-04-29 Thread javamonkey79
Is is possible to create custom predicate\expression languages within camel? For example, I have something like this now: when simple${in.header.SEND_TO_FOLDER}/simple to id=outId

Re: use of expression in file name

2013-04-22 Thread javamonkey79
=org.apache.camel.model.language.GroovyExpression constructor-arg index=0 value=some groovy script here/ /bean to uri=file:?fileName=#myGroovyExp/ On Fri, Apr 19, 2013 at 7:07 PM, javamonkey79 [hidden email]http://user/SendEmail.jtp?type=nodenode=5731214i=0 wrote: Is there any way to do this with a hybrid approach? e.g

use of expression in file name

2013-04-19 Thread javamonkey79
This is from the documentation of the file2 component: Use Expression such as File Language to dynamically set the filename. For consumers, it's used as a filename filter. For producers, it's used to evaluate the filename to write. If an expression is set, it take precedence over the

Re: use of expression in file name

2013-04-19 Thread javamonkey79
. Though if you want to do that from XML then that is not so easy. But from Java code its easier as its just to call set setter method, on the FileEndpoint instance. On Fri, Apr 19, 2013 at 6:31 PM, javamonkey79 [hidden email]http://user/SendEmail.jtp?type=nodenode=5731155i=0 wrote