Re: Camel Mail issue with unsupported charset

2009-11-04 Thread dcheckoway
Claus, I'm not a contributor on the Camel project, but here's what I would advocate trying in MailBinding.java, expanding the meaning of "ignoreUnsupportedCharset" a bit: public Object extractBodyFromMail(Exchange exchange, Message message) { return extractBodyFromMail(exchange, messa

Re: guaranteed message processing question...

2009-11-04 Thread boday
thanks guys. I added some parameters to the queue to make the route "transactional"... from("activemq:inboundMessages?maxConcurrentConsumers=50&lazyCreateTransactionManager=true&transacted=true") .process(new Processor1()) .process(new Processor2()) .to("activemq:finishedQueue"); Now I'm getti

Re: JMS Transactions and RequestReply - transactedInOut=true not working?

2009-11-04 Thread jonathanq
Thanks for the reply - I was only able to get my route working by using a Spring Transaction Manager to open a new transaction (using PROPOGATION_NOT_SUPPORTED) to do the actual publish request/reply part of the route (just wrapped the producer template publish in this transaction). That worked.

Re: Change output file name in SFTP route

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 9:27 PM, ronP12 wrote: > > Hello, >  I am using the SFTP component and I want to change the file name when it is > placed on the remote server.  Basically I would like it to behave like: > >  from(file:/tmp/input.txt). >   to("sftp:/./directory/output.txt) > > I trie

Re: guaranteed message processing question...

2009-11-04 Thread Claus Ibsen
Yeah as Christian says you need to use transactions for that. On Wed, Nov 4, 2009 at 8:23 PM, Christian Schneider wrote: > As far as I know the transactional client aproach is the only good way to > guarantee that no message is lost. > You can take a look at these pages: > http://camel.apache.or

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 7:24 PM, dcheckoway wrote: > > Is there any way to "intercept" the raw mail message content before it gets > passed to the java mail API?  I would be happy to manually munge the > Content-Type header if I detect one of the known-to-be-funky charsets in > there. > You can us

Change output file name in SFTP route

2009-11-04 Thread ronP12
Hello, I am using the SFTP component and I want to change the file name when it is placed on the remote server. Basically I would like it to behave like: from(file:/tmp/input.txt). to("sftp:/./directory/output.txt) I tried to manipulate the header using. setHeader("ou

Re: guaranteed message processing question...

2009-11-04 Thread Christian Schneider
As far as I know the transactional client aproach is the only good way to guarantee that no message is lost. You can take a look at these pages: http://camel.apache.org/jms.html section: Enabling Transacted Consumption http://camel.apache.org/transactional-client.html section: Camel 2.0 - JMS

guaranteed message processing question...

2009-11-04 Thread boday
I'm using Camel2 in SMX 3.3.1. I have a simple Camel route as follows... from("activemq:inboundMessages?maxConcurrentConsumers=50") .process(new Processor1()) .process(new Processor2()) .to("activemq:finishedQueue"); How do I guarentee that a message will not be removed from the "inboundMessage

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread dcheckoway
Is there any way to "intercept" the raw mail message content before it gets passed to the java mail API? I would be happy to manually munge the Content-Type header if I detect one of the known-to-be-funky charsets in there. Claus Ibsen-2 wrote: > > On Wed, Nov 4, 2009 at 4:57 PM, dcheckoway

Re: best way to hotdeploy routes

2009-11-04 Thread Oisin Hurley
> You can just use Apache Karaf which is a very lightweight OSGi kernel. +1 that's the one to use if you are short on space. --oh

Re: Error handling with recipientList

2009-11-04 Thread mcrive
Even by removing the exchange.setOut I am not seeing the header I've added when checking the exchange In message on the exception processor. this is my current process for interceptSendToEndpoint: public void process(Exchange exchange) throws Exception { String deliveryEndPoint =

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 4:57 PM, dcheckoway wrote: > > I'll definitely try 2.1-SNAPSHOT.  And in the meantime, how would I go about > "catching" that exception so that my app can at least be aware of this error > condition? > > As of right now, it literally clogs the whole process, since Camel can'

Re: Error handling with recipientList

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 5:12 PM, mcrive wrote: > > I've configured following route: > > interceptSendToEndpoint("*").process(new SendToEndPointHandler()); > > onException(GenericFileOperationFailedException.class) >        .process(new DeliveryFailureHandler()); > > from("test-jms:queue:notificatio

Re: Error handling with recipientList

2009-11-04 Thread mcrive
I've configured following route: interceptSendToEndpoint("*").process(new SendToEndPointHandler()); onException(GenericFileOperationFailedException.class) .process(new DeliveryFailureHandler());

Re: Camel Mail issue with unsupported charset

2009-11-04 Thread dcheckoway
I'll definitely try 2.1-SNAPSHOT. And in the meantime, how would I go about "catching" that exception so that my app can at least be aware of this error condition? As of right now, it literally clogs the whole process, since Camel can't get past that offending message and process anything else i

Re: AW: AW: AW: Problem with SOAP/JMS and transactions

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 4:28 PM, Schneider Christian wrote: > Hi Claus, > > of course brokers like ActiveMQ have a great dead letter facility. > Unfortunately we are stuck with Tibco EMS here. > As it seems EMS by default will discard messages after the maximum number of > redeliveries. > You can s

Re: JMS Transactions and RequestReply - transactedInOut=true not working?

2009-11-04 Thread Fintan Bolton
Hi Johnathan, To elaborate on Claus's reply. In general, you cannot really process InOut exchanges inside a transaction (yes, there is a 'transactedInOut' option, but it only applies to a very special use case and is not relevant to your example). The best approach, as Claus suggested, is to spl

AW: AW: AW: AW: Problem with SOAP/JMS and transactions

2009-11-04 Thread Schneider Christian
Hi Claus, of course brokers like ActiveMQ have a great dead letter facility. Unfortunately we are stuck with Tibco EMS here. As it seems EMS by default will discard messages after the maximum number of redeliveries. You can set a property JMS_TIBCO_PRESERVE_UNDELIVERED=true to make Tibco deliver

Re: Error handling with recipientList

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 2:48 PM, mcrive wrote: > > thank you for such a quick reply! > > I am currently using 2.0 REL, is there a way to do the same thing with the > version I have? > You can use interceptSendToEndpoint http://davsclaus.blogspot.com/2009/05/on-road-to-camel-20-interceptors-round.h

Re: AW: AW: AW: Problem with SOAP/JMS and transactions

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 2:56 PM, Schneider Christian wrote: > Hi Willem, > > that is fine with me. I have closed the ticket. > > I have another exception problem though. I want to define a rule for the > other exceptions that should not return a fault. I want these exceptions to > be forwarded into

AW: AW: AW: AW: Problem with SOAP/JMS and transactions

2009-11-04 Thread Schneider Christian
Hi Willem, that is fine with me. I have closed the ticket. I have another exception problem though. I want to define a rule for the other exceptions that should not return a fault. I want these exceptions to be forwarded into something like a dead letter queue after some retries. I see two diff

Re: Error handling with recipientList

2009-11-04 Thread mcrive
thank you for such a quick reply! I am currently using 2.0 REL, is there a way to do the same thing with the version I have? Claus Ibsen-2 wrote: > > On Wed, Nov 4, 2009 at 2:40 PM, mcrive wrote: >> >> I ha following route >> >> >> onException(GenericFileOperationFailedException.class) >>    

Re: Error handling with recipientList

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 2:40 PM, mcrive wrote: > > I ha following route > > > onException(GenericFileOperationFailedException.class) >        .process(new DeliveryFailureHandler()).stop(); > > > from("test-jms:queue:feed.notificationtest.queue") >        .process(processor) >        .recipientList(

Error handling with recipientList

2009-11-04 Thread mcrive
I ha following route onException(GenericFileOperationFailedException.class) .process(new DeliveryFailureHandler()).stop(); from("test-jms:queue:feed.notificationtest.queue") .process(processor)

Re: JPA: Could not pass Object from jpa to jms

2009-11-04 Thread Claus Ibsen
On Wed, Nov 4, 2009 at 10:53 AM, DRy wrote: > > Hi, > > > Claus Ibsen-2 wrote: >> >> I guess JPA has instrumented and all sorts to those objects so you >> cant serialize them and send them over the remote network. >> Maybe there is something in the JPA API to detach or what it may be >> called fro

Re: JPA: Could not pass Object from jpa to jms

2009-11-04 Thread DRy
Hi, Claus Ibsen-2 wrote: > > I guess JPA has instrumented and all sorts to those objects so you > cant serialize them and send them over the remote network. > Maybe there is something in the JPA API to detach or what it may be > called from the JPA EntityFactory so you can send it over network.