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
/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
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
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 ?
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
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
,
--
Dragisa Krsmanovic
Java Developer
Public Library of Science
http://www.plos.org
).
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
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
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
, 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
-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
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
/
transacted/
to uri=seda:intercept/
to uri=mock:end/
/route
--
Dragisa Krsmanovic
Java Developer
Public Library of Science
http://www.plos.org
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
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
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
(...)
.pollEnrich(file:/test/data?noop=truereadLock=none, 1)
--
Dragisa Krsmanovic
Java Developer
Public Library of Science
http://www.plos.org
);
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
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
[
--
Dragisa Krsmanovic
Java Developer
Public Library of Science
http://www.plos.org
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:
22 matches
Mail list logo