Re: Ommiting XML declaration when converting from Dom to String

2010-05-13 Thread Dragisa Krsmanovic
https://issues.apache.org/activemq/browse/CAMEL-2720 On Thu, 2010-05-13 at 09:23 +0200, Claus Ibsen wrote: On Wed, May 12, 2010 at 11:23 PM, Dragisa Krsmanovic dkrsmano...@plos.org wrote: XmlConverter is hardcoded to omit XML declarations when serializing Dom documents. The information

Ommiting XML declaration when converting from Dom to String

2010-05-12 Thread Dragisa Krsmanovic
/browse/camel/trunk/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java?r=HEAD#l101 -- Dragisa Krsmanovic Java Developer Public Library of Science

Re: Message blocks route until all redelivery attempts are exhausted

2010-04-05 Thread Dragisa Krsmanovic
there is only one thread to consumer the message in the queue. Willem Dragisa Krsmanovic wrote: I have a route that is configured to re-deliver messages on exception. If there are messages in that queue and one of them fails, all other messages are blocked until all re-delivery attempts

What is difference between redeliverDelay() and redeliveryDelay() ?

2010-04-02 Thread Dragisa Krsmanovic
In OnExceptionDefinition there are two methods with very similar name: redeliverDelay and redeliveryDelay. This is what javadoc says: redeliverDelay(long delay) : Sets the delay redeliveryDelay(long delay) : Sets the fixed delay between redeliveries Which one should I use ?

Message blocks route until all redelivery attempts are exhausted

2010-04-02 Thread Dragisa Krsmanovic
I have a route that is configured to re-deliver messages on exception. If there are messages in that queue and one of them fails, all other messages are blocked until all re-delivery attempts are exhausted. I would like other messages to go through while the ones that failed are waiting for their

Re: ActiveMQ 5.3.0 and PollingConsumer

2009-12-18 Thread Dragisa Krsmanovic
I created an issue for this problem https://issues.apache.org/activemq/browse/CAMEL-2305 On Mon, 2009-12-14 at 10:28 -0800, Dragisa Krsmanovic wrote: Here is more details. On Fri, 2009-12-11 at 10:42 -0800, Dragisa Krsmanovic wrote: @Test @DirtiesContext public void test() throws

onException() silently ignored if after transacted()

2009-12-14 Thread Dragisa Krsmanovic
, -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Re: Best Practices for Triggering Routes from Code

2009-12-02 Thread Dragisa Krsmanovic
). Basically, just trying to get some guidance as to the recommended practice. Thanks. --Tim -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Re: Original message body lost in transacted route

2009-11-23 Thread Dragisa Krsmanovic
message to another queue. If I want messages to be rolled back to JMS each time (not redelivered to the failed part of the route). How would I do that ? -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Original message body lost in transacted route

2009-11-20 Thread Dragisa Krsmanovic
org.apache.camel.spring.SpringRouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.testng.annotations.Test; /** * @author Dragisa Krsmanovic */ @ContextConfiguration public class OnExceptionTest extends AbstractTestNGSpringContextTests { @EndpointInject(uri = mock:end) protected MockEndpoint

Intermittent validation error

2009-11-17 Thread Dragisa Krsmanovic
, droppable = false, text = ?xml version=1.0 encoding=UTF-8? ambra...mbraMessage}] 09:32:36,641 [enerContainer-1] MessageValidationFailed ERROR Exchange[Body:] I am also getting [Fatal Error] :1:1: Premature end of file. on the standard out. -- Dragisa Krsmanovic Java Developer Public Library

Cyclic dependency in latest 2.1-SNAPSHOT

2009-11-17 Thread Dragisa Krsmanovic
-jms'}' introduces to cycle in the graph org.apache.camel:camel-jms -- org.apache.camel:camel-test -- org.apache.camel:camel-jms -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Transactions and aggregator

2009-11-11 Thread Dragisa Krsmanovic
the route ? Persistence works fine for routes that don't have aggregation. For example : from(activemq:worksfine) .transacted() .process(..) .delay(...) .to(mock:end); In this case, on Camel restart, the messages will be picked from ActiveMQ and re-processed. -- Dragisa Krsmanovic

Interceptors and transactions

2009-11-11 Thread Dragisa Krsmanovic
/ transacted/ to uri=seda:intercept/ to uri=mock:end/ /route -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Re: Calling setHeader() after to()

2009-10-14 Thread Dragisa Krsmanovic
be .setHeader(DOI, xpath(/ambraMessage/doi/text(), String.class)) I don't seem to have luck with this. This doesn't compile: from(activemq:plos.pmc) .setHeader(DOI, xpath(/ambraMessage/doi/text(), String.class)) .to(mock:end); xpath() is not defined in RouteBuilder. -- Dragisa Krsmanovic

Re: Calling setHeader() after to()

2009-10-13 Thread Dragisa Krsmanovic
On Tue, 2009-10-13 at 06:13 +0200, Claus Ibsen wrote: On Mon, Oct 12, 2009 at 10:39 PM, Dragisa Krsmanovic dkrsmano...@plos.org wrote: I am trying to do something like: from(activemq:plos.pmc) .to(rnc:pmc-message.rnc) .setHeader(DOI).xpath(/ambraMessage/doi/text(), String.class

Calling setHeader() after to()

2009-10-12 Thread Dragisa Krsmanovic
methods after .to(rnc:...) I want to validate a message before I try to extract Xpath and I have an onException handler to catch ValidationException. What am I doing wrong ? -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Re: pollEnrich doesn't look for FILE_NAME

2009-09-16 Thread Dragisa Krsmanovic
(...) .pollEnrich(file:/test/data?noop=truereadLock=none, 1) -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

pollEnrich doesn't look for FILE_NAME

2009-09-15 Thread Dragisa Krsmanovic
); For some reason, pollEnrich doesn't seem to take Exchange.FILE_NAME header into account and fetches the first available file, not the one specified in setHeader(...) Is this a bug ? -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Re: Regression in 2.0.0 : http fails with I/O Exception

2009-09-15 Thread Dragisa Krsmanovic
I created JIRA issue for this https://issues.apache.org/activemq/browse/CAMEL-2017 On Mon, 2009-09-14 at 15:51 -0700, Dragisa Krsmanovic wrote: http fails with I/O Exception Date: Mon, 14 Sep 2009 15:51:11 -0700 -- Dragisa Krsmanovic Java Developer Public

Regression in 2.0.0 : http fails with I/O Exception

2009-09-14 Thread Dragisa Krsmanovic
[ -- Dragisa Krsmanovic Java Developer Public Library of Science http://www.plos.org

Error when using XPath functions

2009-08-04 Thread Dragisa Krsmanovic
Camel 2.0-M3, trying setHeader like: setHeader headerName=CamelFileName xpathsubstring(//atom:entry/atom:id/text(), 9)/xpath /setHeader //atom:entry/atom:id/text() returns correct result, but if I try to use any of the XPath functions I get this error: