d.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26816636.html
Sent from the Camel - Users mailing list archive at Nabble.com.
nsurance-file-su.zip" />
><.param name="include-classes" value="esb/dzone/servicemix/model/*"
> />
> <.param name="jibx-mapping" value="jibx/InsuranceMapping.xml" />
><.param name="include-resourc
le" value="insurance-file-su.zip" />
<.param name="include-classes" value="esb/dzone/servicemix/model/*" />
<.param name="jibx-mapping" value="jibx/InsuranceMapping.xml" />
<.param name=&
message in context:
http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26815612.html
Sent from the Camel - Users mailing list archive at Nabble.com.
roject is a Maven project
and the orginal project is build with Ant, so I cannot just create the same
folder as him and put it there.
--
View this message in context:
http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26815501.html
Sent from the Camel - Users mailing list archive at Nabble.com.
got me there, I haven't included this file. Do you know on which
classpath to put it? I'll put in the same folder as the other two JiBX
classes as a first try.
--
View this message in context:
http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p
is not a
ObjectMessage");
}
}
}
The message is NOT of type TerrorResponse, so it should not jump into the
statement. But from here the JiBXUtil (where the exception is thrown) is
used. Still I can't see where the error is.
--
View this message in context:
http://old.nab
, null, bOut);
>result = new StreamSource(new
> ByteArrayInputStream(bOut.toByteArray()));
>}
> catch (Exception e) {
>throw new JiBXException("Error marshalling XML to
> Object",e);
>}
>
#x27;t know where the problems is. The exceptiopns doesn't give much
information.
Kind regards,
Kenneth
--
View this message in context:
http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26814820.html
Sent from the Camel - Users mailing list archive at Nabble.com.
org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:183)
>at
> kenneth.util.TerrorJMSMarshaler.populateMessage(TerrorJMSMarshaler.java:15)
>at
>
> org.apache.servicemix.jms.endpoints.DefaultConsumerMarshaler.createExchange(DefaultConsumerMarshaler.java:99)
>at
>
> org.apache.servicemix.jms.endpoints.AbstractConsumerEndpoint.onMessage(AbstractConsumerEndpoint.java:544)
>... 10 more
>
> I looked the error up on the net and found:
>
> http://www.mail-archive.com/u...@geronimo.apache.org/msg10579.html
> http://issues.apache.org/activemq/browse/AMQ-1588
>
> It seems like there is a problem with deserializing the object I'm sending,
> but I don't quite understand how to fix it. The two answers above talks
> about moving some classes? Any ideas to solve it?
>
>
> --
> View this message in context:
> http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26801956.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Cheers,
Jon
Camel in Action: http://manning.com/ibsen
Blog: http://janstey.blogspot.com
ateExchange(DefaultConsumerMarshaler.java:99)
at
org.apache.servicemix.jms.endpoints.AbstractConsumerEndpoint.onMessage(AbstractConsumerEndpoint.java:544)
... 10 more
I looked the error up on the net and found:
http://www.mail-archive.com/u...@geronimo.apache.org/msg10579.html
http://issues.apache.org/activemq/browse/AMQ-1588
It seems like there is a problem with deserializing the object I'm sending,
but I don't quite understand how to fix it. The two answers above talks
about moving some classes? Any ideas to solve it?
--
View this message in context:
http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26801956.html
Sent from the Camel - Users mailing list archive at Nabble.com.
se.setPrice(100f);
> response.setResponseID(UUID.randomUUID().toString());
> insuranceMessage.setObject(response);
> producer.send(insuranceMessage);
>
> Then I receive like this ("responseMessage" returns null all the time, but
> I
> guess it's beacuse my
:
http://soa.dzone.com/articles/pattern-based-development-with-0?page=0,3
And it looks like they are using JIBX to convert between InsuranceResponses
and XML. So, in the Camel route, the message is already in XML form so we
can use an XPath expression something like the following to switch on the
company name:
xpath("//ins:TravelInsuranceRequest/ins:insuranceCompanyName/text() =
'Luxury Cars'").namespace("ins","http://dzone.com/insurance";)
I haven't booted up the example myself so I don't know why you are not
getting any messages using the raw JMS API. Do the ServiceMix logs or Camel
logs with trace enabled give you any more info on where the holdup could be?
>
>
> >>You can also use Camel to set a header like so
>
> >>from("seda:a").setHeader("foo", constant("bar"))...
>
> Cool. But what is the corresponding function in Eclipse/JMS to the
> "setHeader"?!
>
>
> Kind regards
> Kenneth H
>
>
> --
> View this message in context:
> http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26798115.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Cheers,
Jon
Camel in Action: http://manning.com/ibsen
Blog: http://janstey.blogspot.com
Cars");
response.setPrice(100f);
response.setResponseID(UUID.randomUUID().toString());
insuranceMessage.setObject(response);
producer.send(insuranceMessage);
Then I receive like this ("responseMessage" returns null all the time, but I
guess it's beacuse my Camel Routebuilde
eaders/properties in a Camel choice
> statement? Basicly, I just want to create the most simple example, where to
> messages are send from Eclipse and goes to two different queues in a Camel
> choice statement. The messages should be simple tect or objects.
>
You should be able to ac
renceguide95.htm
Do you know how I can use these headers/properties in a Camel choice
statement? Basicly, I just want to create the most simple example, where to
messages are send from Eclipse and goes to two different queues in a Camel
choice statement. The messages should be simple tect or objects.
Kend regards,
Kenneth H
--
View this message in context:
http://old.nabble.com/Help-to-understand-xpath-expression-in-camel-routebuilder-tp26779963p26795823.html
Sent from the Camel - Users mailing list archive at Nabble.com.
t test,
well Eclipse or IntelliJ can easily debug that for you. Other setups may
require extra configuration of the app server / ESB to get debugging
working. Actually, if you just want to see what the messages look like at
various points in your route, try enabling the tracer
http://camel.apache.or
something like this pseudocode:
var travelRequest = xpath("//ins:TravelInsuranceRequest").namespace
"ins","http://dzone.com/insurance";))
print(travelRequest);
.when(travelRequest).to(LUXURY_CAR_OUT);
Kind regards,
Kenneth H
--
View this message in context:
is the "when": what exactly does:
>
> when(xpath("//ins:TravelInsuranceRequest").namespace("ins",
> "http://dzone.com/insurance";))
>
> mean?
>
> Can anybody help me?
>
> Kind regards,
> Kenneth H
> --
> View thi
.to(FAILURE_OUT);
}
My problem is the "when": what exactly does:
when(xpath("//ins:TravelInsuranceRequest").namespace("ins",
"http://dzone.com/insurance";))
mean?
Can anybody help me?
Kind regards,
Kenneth H
--
View this message in
20 matches
Mail list logo