Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
janstey wrote: > > Hmm... JBI deployment question eh... not really sure how to help you off > the > top of my head to be honest! Maybe try us...@servicemix.apache.org? > I'll try there and maybe also some Maven-folks :) -- View this message in context: http://old.nabble.com/Help-to-understa

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Jon Anstey
Hmm... JBI deployment question eh... not really sure how to help you off the top of my head to be honest! Maybe try us...@servicemix.apache.org? On Wed, Dec 16, 2009 at 2:35 PM, Kenneth H wrote: > > - sorry for all the posts Jon... > > If you look at the original Ant build file, you see ("." inf

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
- sorry for all the posts Jon... If you look at the original Ant build file, you see ("." infront of "param" is to make sure the whole post is shown): <.param name="servicemix-conf" value="servicemix/insurance-jms-su" /> <.param name="service-dest-file" value="

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
- sorry for all the posts Jon... If you look at the original Ant build file, you see: The question is now: how do I do the same thing in Maven? -- View this

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
>Have you created a mapping file for your custom class? You need to provide >JiBX with a mapping file so it knows how to do the marshalling. In the >article, they've defined one for their classes in >InsuranceSMDZone/jibx/InsuranceMapping.xml >You got me there, I haven't included this file. Do y

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
janstey wrote: > > Have you created a mapping file for your custom class? You need to provide > JiBX with a mapping file so it knows how to do the marshalling. In the > article, they've defined one for their classes in > InsuranceSMDZone/jibx/InsuranceMapping.xml > You got me there, I haven't

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
This is the consumer which the messages is sent to: The "TerrorJMSMarshaler" is: public class TerrorJMSMarshaler extends DefaultConsumerMarshaler { protected void populateMessage(Message message, NormalizedMessage normalizedMessage) throws Exception { if (message instanceof ObjectMessa

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Jon Anstey
Have you created a mapping file for your custom class? You need to provide JiBX with a mapping file so it knows how to do the marshalling. In the article, they've defined one for their classes in InsuranceSMDZone/jibx/InsuranceMapping.xml On Wed, Dec 16, 2009 at 1:43 PM, Kenneth H wrote: > > > j

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Kenneth H
janstey wrote: > > In JBI applications, each SU has its own classloader so I *think* if you > make sure that your custom classes are available on the Camel SU's > classpath > and the JMS SU's classpath all will be well. > You were right. After moving the relevant classes to the classpath direc

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Jon Anstey
In JBI applications, each SU has its own classloader so I *think* if you make sure that your custom classes are available on the Camel SU's classpath and the JMS SU's classpath all will be well. On Tue, Dec 15, 2009 at 5:50 PM, Kenneth H wrote: > > > > One last novice question. In the statement:

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Kenneth H
> > One last novice question. In the statement: > > > > from("seda:a").filter(header("foo").isEqualTo("bar")).to("seda:b"); > > > > Where does the "foo" comes from, I mean, where do I set it? From Eclipse > > I'm > > creating a JMS Message, but the only headers availbe is these: > > > > > > > http

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 1:33 PM, Kenneth H wrote: > > > On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > > > > 1. Where can I read about the ".namespace()" function syntax? I still > > don't > > > get why "ins" is used in both functions. I tried w3schools but didn't > > find > > > it. > >

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 1:33 PM, Kenneth H wrote: > > > On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > > > > 1. Where can I read about the ".namespace()" function syntax? I still > > don't > > > get why "ins" is used in both functions. I tried w3schools but didn't > > find > > > it. > >

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Kenneth H
On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > 1. Where can I read about the ".namespace()" function syntax? I still > don't > > get why "ins" is used in both functions. I tried w3schools but didn't > find > > it. > >Did you find this page? > >http://www.w3schools.com/XML/xml_namespa

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > > 1. Where can I read about the ".namespace()" function syntax? I still > don't > > get why "ins" is used in both functions. I tried w3schools but didn't > find > > it. > > > >Did you find this page? > >http://www.w3schools.com/XML/xml_namesp

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Kenneth H
> 1. Where can I read about the ".namespace()" function syntax? I still don't > get why "ins" is used in both functions. I tried w3schools but didn't find > it. >Did you find this page? >http://www.w3schools.com/XML/xml_namespaces.asp > >That should help you understand usage of the namespace pre

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 9:43 AM, Kenneth H wrote: > > Hi Jon, > > Your answer definitely helped. I have a couple of more questions though: > > 1. Where can I read about the ".namespace()" function syntax? I still don't > get why "ins" is used in both functions. I tried w3schools but didn't find >

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Kenneth H
Hi Jon, Your answer definitely helped. I have a couple of more questions though: 1. Where can I read about the ".namespace()" function syntax? I still don't get why "ins" is used in both functions. I tried w3schools but didn't find it. 2. Is it possible to debug in the Camel routebuilder someho

Re: Help to understand xpath expression in camel routebuilder

2009-12-14 Thread Jon Anstey
The xpath expression is going to be evaluated against the incoming message body. So, if we have a message like: http://dzone.com/insurance";> ... the first when clause will evaluate to true since the xpath expression is searching for any element like "TravelInsuranceRequest". The namespace bit