Re: ConsumerTemplate and OOM exception

2010-03-22 Thread Claus Ibsen
On Sun, Mar 21, 2010 at 8:54 PM, Norman Maurer wrote: > After committing the changes and re-deploy the app , we still see the > OOM Exception. > > Seems like it's to much for the Java VM to create a now Consumer evert > 30 seconds. Any other suggestions? > Can you disable JMX which is the one I w

Re: ConsumerTemplate and OOM exception

2010-03-22 Thread Norman Maurer
Thx for the suggestion. I just disabled it.. Now I will have to wait to see what happens .. Bye, Norman 2010/3/22 Claus Ibsen : > On Sun, Mar 21, 2010 at 8:54 PM, Norman Maurer wrote: >> After committing the changes and re-deploy the app , we still see the >> OOM Exception. >> >> Seems like it'

RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Drasil
Hello, I have the following construct in my custom RouteBuilder: from("foo") .choice() .when( condition1 ) .setFaultBody( ... ) .when( condition2 ) .recipientList( ... ) .otherwise() .setFaultBody( ... ); It worked in Camel versions up to 2.1.0. But when I tried

Re: RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Claus Ibsen
On Mon, Mar 22, 2010 at 10:27 AM, Drasil wrote: > > Hello, > > I have the following construct in my custom RouteBuilder: > > from("foo") >  .choice() >    .when( condition1 ) >      .setFaultBody( ... ) >    .when( condition2 ) >      .recipientList( ... ) >    .otherwise() >      .setFaultBody( .

Re: RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Drasil
That was in fact the first thing that I tried. But it did not help - the end() method returns a generic ProcessorDefinition type, so there is still no chance to invoke ChoiceDefinition-specific methods such as when() or otherwise() on it. Maybe casting the result to ChoiceDefinition will help? Bu

Re: RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Claus Ibsen
On Mon, Mar 22, 2010 at 10:40 AM, Drasil wrote: > > That was in fact the first thing that I tried. But it did not help - the > end() method returns a generic ProcessorDefinition type, so there is still > no chance to invoke ChoiceDefinition-specific methods such as when() or > otherwise() on it. >

Re: RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Drasil
So if I understand you correctly, there is currently no reasonable solution to this issue (except from casting the end() method result or switching to XML-based configuration) and chances are it will be fixed in the next Camel release. Right? Claus Ibsen-2 wrote: > > I got it working here local

Re: RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Claus Ibsen
On Mon, Mar 22, 2010 at 11:06 AM, Drasil wrote: > > So if I understand you correctly, there is currently no reasonable solution > to this issue (except from casting the end() method result or switching to > XML-based configuration) and chances are it will be fixed in the next Camel > release. Righ

Re: RecipientList + Choice no longer work together in Camel 2.2.0?

2010-03-22 Thread Pavel Drasil
Thank you for both the explanation and creating the ticket. Pavel Claus Ibsen-2 wrote: > > Yeah it should be possible to fix that for 2.3. > But in the long run using Scala etc. for DSL will allow a much better > foundation for that than what Java and its _somewhat poor_ generics > can offer fo

Re: Filename based on XPath result

2010-03-22 Thread ankelee
Hi I'm trying to do this: from("direct:controlMessageToCbr") .setHeader("envelopeId", xpath("/something/@Id")).to. But the header just get set to the XPathBuilder object. Wouldn't something like the .evaluate() method needed to be used for this (when using the XPathBuilder in Java)? Strin

Re: Filename based on XPath result

2010-03-22 Thread ankelee
Nevermind this. I was trying to read the header in a processor and forgot that Camel has a type converter ;) ankelee wrote: > > Hi > > I'm trying to do this: > > from("direct:controlMessageToCbr") > .setHeader("envelopeId", xpath("/something/@Id")).to. > > But the header get set to a ne

Question on camel-hdfs

2010-03-22 Thread Vinicius Carvalho
Hello there! I'm trying the Camel Hadoop integration (using camel-2.3-Snapshot), and using this producer: @Produce(uri="hdfs://localhost/temp/tweets?splitStrategy=BYTES:20") protected TweeterProducer producer; The problem is that I get a NPE: Exception in thread "Twitter Stream Handl

Re: Question on camel-hdfs

2010-03-22 Thread Claus Ibsen
Hi Camel Hadoop is hosted outside Apache and thus not officially supported by Apache etc. I think you gotta dig into it yourself to see the issue. Normally doStart should be invoked on a Producer/Consumer if it extends the DefaultProducer/DefaultConsumer etc. And I am sure patches etc is welcome

Re: Question on camel-hdfs

2010-03-22 Thread Vinicius Carvalho
Thanks Claus. I was just hoping someone from the camel-hadoop would be around this list :) The HDFSProducer do extend DefaultProducer, but I was debugging the code, and the doStart is not invoked. Any reason for this? Regards On Mon, Mar 22, 2010 at 2:40 PM, Claus Ibsen wrote: > Hi > > Camel Ha

Re: Question on camel-hdfs

2010-03-22 Thread Claus Ibsen
On Mon, Mar 22, 2010 at 7:00 PM, Vinicius Carvalho wrote: > Thanks Claus. I was just hoping someone from the camel-hadoop would be > around this list :) > > The HDFSProducer do extend DefaultProducer, but I was debugging the > code, and the doStart is not invoked. Any reason for this? > No it oug

quartz + pollEnrich +sftp ==> 'move' parameter ignored

2010-03-22 Thread Pitre, Russell
I'm using the Quartz scheduler component in conjunction with pollEnrich to download a file at a specific time of day. It looks like the 'move' parameter is being ignored, am I missing something? public void configure() throws Exception { from("quartz://myGroup/DownloadFilesTrigger

Re: quartz + pollEnrich +sftp ==> 'move' parameter ignored

2010-03-22 Thread Claus Ibsen
Hi Yeah that was not supported. Its implemented in Camel 2.3. You can try the 2.3-SNAPSHOT http://camel.apache.org/download.html On Mon, Mar 22, 2010 at 7:09 PM, Pitre, Russell wrote: > I'm using the Quartz scheduler component in conjunction with pollEnrich > to download a file at a specific t

Re: ConsumerTemplate and OOM exception

2010-03-22 Thread Norman Maurer
Same problem again, any other idea? Bye Norman 2010/3/22, Norman Maurer : > Thx for the suggestion. I just disabled it.. Now I will have to wait > to see what happens .. > > Bye, > Norman > > > 2010/3/22 Claus Ibsen : >> On Sun, Mar 21, 2010 at 8:54 PM, Norman Maurer wrote: >>> After committing

PGP encryption inside a camel route

2010-03-22 Thread kodcanavari
Hi, Is there anyone who ever did PGP encryption or decryption process on some file routes? I just have to encrypt files that i'm going to send to a ftp server and decrypt the ones that i'm going to collect. Thanks. -- View this message in context: http://old.nabble.com/PGP-encryption-inside-a

RE: quartz + pollEnrich +sftp ==> 'move' parameter ignored

2010-03-22 Thread Pitre, Russell
Thanks for the quick response! No luck though. I know the sftp uri works because i can move it to the 'from' and all is well. Here's the stacktrace: from("quartz://myGroup/DownloadFilesTrigger?cron=0+23+15+*+*+?"). pollEnrich("sf

Re: ConsumerTemplate and OOM exception

2010-03-22 Thread Claus Ibsen
On Mon, Mar 22, 2010 at 7:47 PM, Norman Maurer wrote: > Same problem again, > > any other idea? > What is your JMS configuration? Are you using pooled connection factories etc? > Bye > Norman > > 2010/3/22, Norman Maurer : >> Thx for the suggestion. I just disabled it.. Now I will have to wait

Re: PGP encryption inside a camel route

2010-03-22 Thread Stephen Gargan
I've put together a basic crypto plugin that uses the JCE that will let you do what you need. Its not in the mainline though. If you're comfortable building the system you can grab the patches from jira here. https://issues.apache.org/activemq/browse/CAMEL-2482 The system is very easy to build h

Re: ConsumerTemplate and OOM exception

2010-03-22 Thread Norman Maurer
Hi Claus, yes we use pooled connections. Here is the config: http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/activemq.xml?view=markup http://svn.apache.org/viewvc/james/server/trunk/spring-deployment/src/main/config/james/spring-beans.xml?view=markup Thx a