Re: Error: cannot run camel-servlet version 2.9.1 in Tomcat

2012-03-16 Thread gsilverman
Here is the maven dependency tree. As you can see, the camel-servlet verson 2.9.1 has a transitive dependency on javax.servlet, from the http component. Obviously, while the 2.8.1 version scopes this as "provided", apparently that is not the case with version 2.9.1. Building Camel :: Example ::

How can I send a file to a remote ftp server using the ftp2 component

2012-03-16 Thread gsilverman
All of the examples I have seen show how to retrieve files from a remote ftp server using the ftp component, but I need to send files. In my processor, I create a ProducerTemplate and try to send the file like so: ProducerTemplate template = exchange.getContext().createProducerTemplate(); String

Re: File endpoint getting actual filename ${file:nameonly}

2012-03-16 Thread Christopher Love
So I have diagnosed this further. Does anyone have experience running Camel with-in a grails application. For some reason simple language does not seem to be evaluating properly. I have created a custom file process strategy and setting: GenericFileExpressionRenamer renamer = new GenericFileExp

Re: CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-16 Thread Babak Vahdat
That's indeed true. If we provide a new option for autogenColumns then we should additionally provide some ways of specifying CSVConfig or CSVField inside XML DSL to be considered as well. Also note that autogenColumns default value is true. @Claus, As you see by [1] the best we get out of the new

APN certificate requires password

2012-03-16 Thread MichaelAtSAG
I have defined a /org.apache.camel.component.apns.ApnsComponent/ bean and tried to use the component in a Camel route. Camel reports that the certificate must have a password, yet requiring a password on the certificate is typically discouraged. Does Camel require the certificate have a password?

Re: CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-16 Thread Ujeen
Thank you very much for this hint. Yeah I figured that out. And therefore it looks like reporting above is pointless as it doesn't make sense to bring the autogenColumns flag into the xml because there is no way to set all the fields inside the tag -- View this message in context: http://came

Re: FixedLengthRecord and OneToMany

2012-03-16 Thread NigelMac
How do you represent an array of data in a message (e.g. as in RECURS 5), I just assumed that OneToMany would handle this, no? -- View this message in context: http://camel.465427.n5.nabble.com/FixedLengthRecord-and-OneToMany-tp5571433p5572079.html Sent from the Camel - Users mailing list archive

Re: Camel RSS Component and ? char in URL feed

2012-03-16 Thread Claus Ibsen
The ? indicates the start of the query of the uri http://en.wikipedia.org/wiki/URI_scheme#Generic_syntax So in your case you should use & to separate values, so it should be: rss:http://unevieagrimper.blogspot.com/feeds/posts/default?alt=rss&splitEntries=false&consumer.delay=1000 On Fri, Mar 1

Re: FixedLengthRecord and OneToMany

2012-03-16 Thread surya
I have been using Bindy FixedLengthRecord. I do not think OneToMany is implemented for FixedLength (somone can correct if wrong) . OneToMany works well for Csv and KvP formats. May I ask why would you need OneToMany on a fixedlength record? isn't each field supposed to have unique 'position' in

Re: CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-16 Thread Babak Vahdat
Hi If you want to make use of AutogenColumns == false you should first explicitly specify the columns you're interested in otherwise nothing will be appended into the output other than "\n"s. See the test method testPresetConfig() by [1] to see how to correctly specify the columns beforehand. Als

Re: Apache Camel >> Netty

2012-03-16 Thread Mark Webb
I've been looking into this (https://issues.apache.org/jira/browse/CAMEL-1077), it will require large modifications to the existing netty component I believe. On Fri, Mar 9, 2012 at 6:20 AM, Claus Ibsen wrote: > On Thu, Mar 8, 2012 at 10:59 PM, sambardar wrote: >> Yes, the issue was related to

Re: CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-16 Thread Ujeen
Ok, it looks like I managed to fix it (this flag works when marshalling only) I changed the org.apache.camel.dataformat.csv.CsvDataFormat. 1. Removed the if(autogenColumns) condition in the doMarhshalRecord. So now it looks like this: private void doMarshalRecord(Exchange exchange, Map row, Writer

Re: CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-16 Thread Ujeen
Thank you, but you know it looks like the entire autogenColumns feature doesn't work. At least it doesn't work for me (the 2.9.0-RC1 version) I change the scheme so the org.apache.camel.dataformat.csv.CsvDataFormat accepts it but if I set autogenColumns flag to false it stops generating everything

Re: Access the entire CXF Payload with XSLT

2012-03-16 Thread Jens
Kerry Barnes wrote > How can I get the full envelope to do my transformations against? Try from uri="cxf:bean:ControllerEndpoint?dataFormat=MESSAGE&allowStreaming=true" Regards, Jens -- View this message in context: http://camel.465427.n5.nabble.com/Access-the-entire-CXF-Payload-with-XSLT-tp5

Re: Access the entire CXF Payload with XSLT

2012-03-16 Thread Marco Westermann
Hi, I'm not completely sure but I think using PAYLOAD means that you always geht the soap-body as this is the payload of the message. If you want the complete soap-message you can use MESSAGE instead of PAYLOAD. regards, Marco Am 16.03.2012 16:29, schrieb Kerry Barnes: Using camel 2.8.3 (

Re: Choice() When() always generate empty predicate

2012-03-16 Thread Marco Westermann
Hi, you may try building the predicat by simple language: .when(simple("${property.input.format} == 'test'")) compare to http://camel.apache.org/simple.html regards, marco Am 16.03.2012 15:53, schrieb Thibault: Hi all, I have this DSL route definition: from("seda:InTransform") .choice

Re: Choice() When() always generate empty predicate

2012-03-16 Thread Claus Ibsen
Hi What version of Camel are you using? I think those are fixed on one of the later releases. On Fri, Mar 16, 2012 at 3:53 PM, Thibault wrote: > Hi all, > > I have this DSL route definition: > > >> from("seda:InTransform") >>    .choice() >>        .when(property("input.format").isEqualsTo("tes

Access the entire CXF Payload with XSLT

2012-03-16 Thread Kerry Barnes
Using camel 2.8.3 (tried under 2.9.0 as well) I am trying to process a SOAP Message received from a " My problem is that I want to perform an xsl transformation with the header and body of the SOAP message and forward the request to another server. I need to insert the username from the ws-secur

Re: CXF Consumer/Producer endpoint not working properly

2012-03-16 Thread Willem Jiang
It looks like your SEI com.sforce.soap.enterprise.Soap doesn't has enough information for CXF to lookup the services name. You can specify the serviceName and endpointName in the cxfEndpoint of salesforceCXFConsumer to fix the error. Willem On Fri Mar 16 15:13:48 2012, Castyn wrote: I have

Choice() When() always generate empty predicate

2012-03-16 Thread Thibault
Hi all, I have this DSL route definition: > from("seda:InTransform") >.choice() >.when(property("input.format").isEqualsTo("test")) > .to("jbi:endpoint:MyService:MyEndpoint") >.otherwise() > .to("jbi:endpoint:AnotherService:AnotherEndpoint"); > (I want t

FixedLengthRecord and OneToMany

2012-03-16 Thread nmcloughlin
Can anyone confirm/deny whether OneToMany works with FixedLengthRecord? It doesn't appear to work, but thought I'd ask. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/FixedLengthRecord-and-OneToMany-tp5571433p5571433.html Sent from the Camel - Users mailing list archi

Re: Testing with mocks and unexpected expectedMessageCount

2012-03-16 Thread Borut Bolčina
OK, nailed the bastard! The option idempotent=true (together with noop=true) on the File component was causing the route to read the file content over an over. -borut Dne 16. marec 2012 08:10 je Borut Bolčina napisal/-a: > Hello, > > the route bellow splits the XML in smaller XML fragments whic

Re: CSV dateformat bug? Attribute 'AutogenColumns' is not allowed to appear in element 'camel:csv'

2012-03-16 Thread Claus Ibsen
Hi Thanks for reporting. I have logged a JIRA https://issues.apache.org/jira/browse/CAMEL-5100 On Fri, Mar 16, 2012 at 7:37 AM, Ujeen wrote: > Hi colleagues, > > I'm trying to use csv marshalling and faced the following issue > cvc-complex-type.3.2.2: Attribute 'AutogenColumns' is not allowed t

Re: Why this works with Spring DSL and not Java DSL - http component

2012-03-16 Thread Claus Ibsen
On Fri, Mar 16, 2012 at 12:07 PM, soumya_sd wrote: > > > > Claus Ibsen-2 wrote >> >> Hi >> >> This is also posted as Q on stackoverflow, which is answered there >> http://stackoverflow.com/questions/9728604/apache-camel-simple-https-google-places-call-difference-between-spring-dsl-a >> >> Please w

Re: Why this works with Spring DSL and not Java DSL - http component

2012-03-16 Thread soumya_sd
Claus Ibsen-2 wrote > > Hi > > This is also posted as Q on stackoverflow, which is answered there > http://stackoverflow.com/questions/9728604/apache-camel-simple-https-google-places-call-difference-between-spring-dsl-a > > Please when you ask for help on multiple channels, then mention that

Re: QuickFIXJ Filtering

2012-03-16 Thread Claus Ibsen
On Thu, Mar 15, 2012 at 7:15 PM, Gershaw, Geoffrey wrote: > Thanks for you quick reply Claus. > > In my bean, I am retrieving a repeating group and checking that a fix tag on > that group = "blah" > >                SecurityDefinition.NoRelatedSym symbolGroup = new > SecurityDefinition.NoRelated

Re: Do Apache Camel needs a SAP integration?

2012-03-16 Thread Erker, Carsten
What if the SAP stuff is mocked out at the level of the Hibersap API? If the component depends only on hibersap-core, there is no (transitive) dependency to the SAP libs. Integration testing wouldn't work anyway, since a public SAP system would be needed. Regards Carsten

Re: How to create a Camel route which takes XML and bind some data to JPA annotated POJO?

2012-03-16 Thread Babak Vahdat
Hi Thanks for sharing your own solution. The JAXB annotations you've put on the POJO *by hand* is exactly what the XJC compiler would have done by the generated Java sources If there was a proper XSD of the XML you consume. So to say now you've got a POJO which is *both* a JPA entity as well a JA

Testing with mocks and unexpected expectedMessageCount

2012-03-16 Thread Borut Bolčina
Hello, the route bellow splits the XML in smaller XML fragments which are then umarshaled into an equal number of objects as there are fragments. The number of fragments and therefore expected objects is 9. This XPath run on the source XML count(//metData/domain_longTitle) proves the number. But

How to create ftp/http listener dynamically

2012-03-16 Thread Johnny Walker
Hi, We are finding the solution for create the ftp/http listener dynamically,Let's say we need to deploy 2 camel ftp listener and 1 camel http listener, and their corresponding configuration information such as ftp folder name, retrieve rule, http host are stored in database, instead of hardcode t