Question 1:

The method valueOf(String) of the Message class is simply not available in ServiceMix 3.1.


Question 2:

The source code of this method is this: (servicemix 3.1)

public boolean xpath(String xpath) throws Exception {
JAXPBooleanXPathExpression expression = new JAXPBooleanXPathExpression(xpath);
       Boolean b = (Boolean) expression.evaluate(null, message);
       return b.booleanValue();
   }

I suppose you have to have a look at the evaluate method of the JAXPBooleanXPathExpression class.

Regards,
Lars




sachin2008 schrieb:
HI ,  i have 2 queries regarding drools usage

Question 1:
-------------

I have developed a small drl file using eclipse drools plugin.
In this file i have used the funtion in.valueOf() which is provided by the
Message class of JBIHelper.

In the eclipse program with drools IDE it works fine but when i use the same
drl file in the servicemix 3.1 by creating a servicemix-drools su i am
getting the following error while deploying the SA.

in.valueOf(String) not found in Message........

Then i removed all these statements. But now , the SA is getting deployed
sucessfully but when i send a request to the drl file, i am getting the
following exception.

java.lang.Exception: No Matching rules found. Check your rule base.

What could be the reason for this. Question 2: I am using xpath queries so many times in the following way:
     eval(in.xpath("//status"))
To perform this operation , the contents of IN message needs to be converted
into DOM  and this will be done by JAXPXPathExpression.java internally. But
my question is does it converts the IN message in to a dom node for each and
every xpath query in the drl file or caches some where. If it converts the In Message into DOM every time then the performance will be effected . Am i right.
Please clarify these based upon these i need to decide whether i can go for
drools or not .
Thanks in advance.





-----
Cheers
Praveen Oruganti
"Think before you act and act on what you believe"

Reply via email to