On 6/5/07, Arif Mohd <[EMAIL PROTECTED]> wrote:

Thank you gert,

    Iam successful but i have commented out the line
     getMessageList().addMessage(message); given in the reciever example

what is the purpose of this, i didn't got? will it give any problem if i
comment?

Also how to use XPath instead of DOMSource to get value of particular node
if u have some code snippet can you please provide

I have used XPath to parse messages sent via ServiceMix but I've
always done so in conjunction with a DOMSource object. Below is an
example:

String XPATH_IDENTITY_RESPONSE = "/*[local-name() =
'fooResponse']/*[local-name() = 'out']/text()";

SourceTransformer sourceTransformer = new SourceTransformer();
CachedXPathAPI xpath = new CachedXPathAPI();
DOMSource xmlDom = sourceTransformer.toDOMSource(in.getContent());
Node n = xpath.selectSingleNode(xmlDom.getNode(), XPATH_IDENTITY_RESPONSE);

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Reply via email to