Re: Teach a man to fish ..

2011-08-24 Thread Claus Ibsen
On Tue, Aug 23, 2011 at 8:28 AM, julian+activ...@dotr.com wrote: > we have (limited) success !! > > Thanks very much - I can now receive plain text emails from google. > > 1) I had to download the springsource framework and put all of the .jar > files into the "optional" directory as well > 2) som

Re: Occational NPE in CamelNamespaceHandler

2011-08-24 Thread Paul Nyheim
Just to clarify. Spring DM was just referred to in the old post. My environment is Grails, but I've got the problem both running grails run-app, and packaged as a war file deployed to jetty and glassfish. Regards, Paul Nyheim On Wed, Aug 24, 2011 at 7:43 AM, Claus Ibsen wrote: > Hi > > Thanks fo

Re: camel-testng: Start debugger with CamelSpringTestSupport

2011-08-24 Thread Andreas Kuhtz
Hi, ningjiang already created a ticket and fixed the problem. CAMEL-4368 Fixed the issue of the debug doesn't work in the CamelSpringTestSupport Regards, Andi -- View this message in context: http://camel.465427.n5.nabble.com/camel-testng-Start-debugger-with-CamelSpringTestSupport-tp4716094p4

InOut endoint unit test

2011-08-24 Thread BERTRAND Antoine AWL-IT
Hi, I've a camel route like this: public class DummyRoute extends RouteBuilder { private String inputOutput; private boolean tracing; @Override public void configure() throws Exception { this.getContext().setTracing(tracing); from(inputOutput) [... All the rest of the route

Re: setHeader using xpath returns Object?

2011-08-24 Thread heinrichheine
Well, the XPathBuilder finally did it. XPathBuilder.xpath("//expr", String.class).namespaces(ns) is working. I wonder what is different to your setup that my xpath method does not have parameters for namespaces. My route builder extends org.apache.camel.builder.RouteBuilder. The xpath method avai

Re: Socket-based Asynchronous Calls...

2011-08-24 Thread James Carman
I have read the source: http://svn.apache.org/repos/asf/camel/trunk/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyProducer.java Take a look at the process() method. In there, there is a block of code that does: ChannelFuture channelFuture; final Chan

Re: i use wsdl file and payload dataFormat, but IllegalArgumentException

2011-08-24 Thread xiangqiuzhao
the service must be provide by CXF when user CxfPayLoad ?? i had search "operationNamespace" in the cxf-module, nothing about it. i means i should send message like: fldsjaflkjdsa not like: http://www.wstest.sunyard.com/IWSTestService/";> xiangqiuzhao it can be do by set operatio

Re: Camel-JBoss

2011-08-24 Thread Claus Ibsen
On Wed, Aug 24, 2011 at 12:30 PM, rajeshv...@gmail.com wrote: > I am trying to deploy my camel web application in JBoss which is launching a > webservices. I am getting the following error, when i was searching on how > to deploy Camel on JBoss i was redirected to > http://camel.apache.org/camel-j

Re: Occational NPE in CamelNamespaceHandler

2011-08-24 Thread David Karlsen
Maybe a matrix build job in jenkins w/ jdk 6 and 7 would be a good thing? 2011/8/24 Claus Ibsen > Hi > > Thanks for the heads up. We have no official support for JDK7 with Camel. > This is something we will work on in one of the next releases. But > JDK7 has just been released. > > Likewise the

help changing the extension of files to .txt when writing to file:

2011-08-24 Thread Mick Knutson
I have this route: from("direct:writeToFile") .setHeader(Exchange.FILE_NAME, constant( "processed-${in.header.session_id"}*.txt*" )) .to( "file:target/reports" ) ; the .txt is ignored and the file names look like: processed-bcfaa932-4d13-4df0-88b8-

Re: help changing the extension of files to .txt when writing to file:

2011-08-24 Thread Claus Ibsen
Use simple instead of constant On Wed, Aug 24, 2011 at 2:00 PM, Mick Knutson wrote: > I have this route: > >        from("direct:writeToFile") >                .setHeader(Exchange.FILE_NAME, constant( > "processed-${in.header.session_id"}*.txt*" )) >                .to( "file:target/reports" ) >

Re: setHeader using xpath returns Object?

2011-08-24 Thread Claus Ibsen
On Wed, Aug 24, 2011 at 11:10 AM, heinrichheine wrote: > Well, the XPathBuilder finally did it. > XPathBuilder.xpath("//expr", String.class).namespaces(ns) > is working. > > I wonder what is different to your setup that my xpath method does not have > parameters for namespaces. > > My route builde

What is the correct camel's schemaLocation?

2011-08-24 Thread bvahdat
Hi, I'm bit confused regarding the schemaLocation both by camel as well as spring. Reading at [1] it says: / You need to add Camel to the schemaLocation declaration http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd / But as an example if I'm riding on ca

Re: DeadLetterChannel useOriginalMessage Behaviour

2011-08-24 Thread devram
Btw, I've also tried moving the message processing part into a seperate route and accessing it via a direct URI (see below) thinking that might solve my problem, but still not getting the behaviour I'm looking for, which is xml message being passed to the dead letter channel. Still getting a POJO

Re: What is the correct camel's schemaLocation?

2011-08-24 Thread Freeman Fang
Hi, The magic is the spring.schemas inside camel-spring.jar, it always map the namespace to the local camel-spring.xsd inside camel-spring.jar, so that both http://camel.apache.org/schema/spring/camel-spring.xsd and http://camel.apache.org/schema/spring/camel-spring-2.8.0.xsd works here,

Re: What is the correct camel's schemaLocation?

2011-08-24 Thread bvahdat
Hi Freeman, thanks for your reply, now I see, indeed the camel-spring.xsd & camel-spring-v2.8.xsd are both there: http://repo1.maven.org/maven2/org/apache/camel/camel-spring/2.8.0/camel-spring-2.8.0.jar looking at spring itself, it seems it is done in a similar fashion: http://repo1.maven.org/m

Re: camel-ftp and file names containing characters above 128

2011-08-24 Thread lenp
Hi! A spin off - having kind of same problem with file2, trying to pick up files in a directory containing those characters and getting same error. Are there any similar config like what was described for ftp2? regards, /L -- View this message in context: http://camel.465427.n5.nabble.com/came

Re: What is the correct camel's schemaLocation?

2011-08-24 Thread bvahdat
Hi again Freeman, My last question by my previous post was simply stupid, please ignore it. The mapping happens always through META-INF/spring.schemas both by spring as well as camel itself. Thanks for your clarification Regards, Babak -- View this message in context: http://camel.465427.n5.na

Re: Camel Validator Eats the Message

2011-08-24 Thread dougman82
I've already got trace enabled. I can watch the message go through the route, and hit the validator endpoint - which shows that it successfully validates. And then nothing. What it seems like is that Camel assumes that since the validator is the last endpoint, that validation is all I want to have

Re: What is the correct camel's schemaLocation?

2011-08-24 Thread bvahdat
Just for the case other camel user's are interested as well, following the explanation of that "schemaLocation-magic": http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/extensible-xml.html#extensible-xml-registration-spring-schemas Thanks Freeman for making this cle

Re: Camel Validator Eats the Message

2011-08-24 Thread David Karlsen
Well - that's how camel works. It will go through each element in the route. 2011/8/24 dougman82 > I've already got trace enabled. I can watch the message go through the > route, and hit the validator endpoint - which shows that it successfully > validates. And then nothing. What it seems like i

Re: Camel Validator Eats the Message

2011-08-24 Thread dougman82
Yeah, I guess I just assumed that the response message would continue back to the original caller, as happens both without the validation step and with my chincy little pass-through bean. Thanks, Douglas On Wed, Aug 24, 2011 at 8:14 AM, David J. M. Karlsen [via Camel] < ml-node+4730779-152326446

Re: Camel Validator Eats the Message

2011-08-24 Thread Christian Müller
Hey Douglas! Sorry for the wrong sampe. I was in a hurry... ${body} Should work for you. The reason for this behavior is, that Camel returns the out message of the last component. Because the validator didn't provide a response (out message), we have to have an additional compon

Camel-Ibatis consumer.onConsume with Oracle throws transaction isolation level error

2011-08-24 Thread Owen Toalson
I have a camel-ibatis app that polls an oracle database table for inserted rows and uses the onConsume option to update the table with a "row consumed" column to avoid duplicate polling. Everything works except the update statement for the onConsume throws "READ_COMMITTED and SERIALIZABLE are the

Re: Camel Validator Eats the Message

2011-08-24 Thread dougman82
Thanks, Christian! That works nicely and looks more elegant than my stopgap solution. And your explanation makes sense. I was kind of figuring that was the behavior, but wasn't fully putting two and two together. Have a good day, Douglas On Wed, Aug 24, 2011 at 9:07 AM, Christian Mueller [via C

Re: camel-ftp and file names containing characters above 128

2011-08-24 Thread lenp
no forget this. No problems with the Camel part at all. Sorry. /L -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-and-file-names-containing-characters-above-128-tp3556225p4731134.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: DeadLetterChannel useOriginalMessage Behaviour

2011-08-24 Thread devram
Finally figured this one out. The issue wasn't the camel context (which is correct), but rather how the exchange message was being used in the processPayload method. Essentially I was altering the content of the Exchange.getIn() message with the updates instead of setting them in the Exchange.get

Re: Camel "No XPathfactory Implementation" error.

2011-08-24 Thread jackkirsten
Thanks William for a reply. I tried that and got the same effect. This is at the application WAR level. Any other suggestions? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-No-XPathfactory-Implementation-error-tp4727601p4730191.html Sent from the Camel - Users mailin

Submitted patch for CAMEL-4227 (adding option to let seda queue with fixed size block when full)

2011-08-24 Thread Mathieu Lalonde
Hi, I've just submitted a patch for the following issue: https://issues.apache.org/jira/browse/CAMEL-4227 I've added more info to the issue comments, where I recommend a further improvement to SedaProducer by making it inherit from DefaultAsyncProducer directly instead of from CollectionProduc

Re: Stop a route for unit testing

2011-08-24 Thread Willem Jiang
Hi Christian, It looks like the route2 doesn't be shutdown, so your mock endpoint only get 5 messages. Here is the setup code snippet which is the only change in the test code. @Override @Before public void setUp() throws Exception { super.setUp(); //DefaultRoute

Re: Socket-based Asynchronous Calls...

2011-08-24 Thread Taariq Levack
I expect that the connection will only be closed if the header NettyConstants.NETTY_CLOSE_CHANNEL_WHEN_COMPLETE is true. Glancing at the code I see what you mean, it's quite unlike MINA's producer which checks the session to see if it's connected and reuses it, but it may be that under the hood, y

Re: Submitted patch for CAMEL-4227 (adding option to let seda queue with fixed size block when full)

2011-08-24 Thread Claus Ibsen
Hi Mathieu Thanks for the patch. I have applied it, with a little polished. In terms of updating the wiki page / documentation. Then you can read about it here how this works. http://camel.apache.org/how-do-i-edit-the-website.html eg ASF need a signed ICLA from you. Which you can read about in th