Hi Barry,

I cannot find the demo that you are referring to. I've looked at the 
drools-example project, and only found a HelloWorldNative.java example, and it 
doesn't use the Java Annotations Semantic Module. I've also looked at the 
drools-spring-examples project, and didn't find an example of how to load a 
specific rule, but only how to load a rule set.

However, by looking at drools-spring-jdk5 project test cases, I was able to 
extract a rule from a rule set using the RuleSet's "getRule" method. I also 
noticed that there isn't any support for xorGroups for the Java Annotations 
Semantic Module.

Thanks,
Alan Ho


-----Original Message-----
From: Barry Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 15, 2006 3:04 PM
To: [email protected]
Subject: Re: [drools-user] Loading Annotation Rules Natively with Drools 2.5

Alan, there is a demo that loads rules without spring. If 
AnnotedPojoRuleBuilder has been renamed that demo will point you do the correct 
class. The annotation demos are in seperate project that I think you would have 
to pull out of CVS. (I don't recall the name, but it will be obvious when you 
look).

But... This functionality is pretty much two-levels deprecated. It was 
initially replaced by the spring module (which is similar but with deeper 
spring integration, not you want I assume), and even the spring module will be 
deprecated for 3.0 since 3.0 will have a very nice language for writing rules.

-barry

Ho, Alan wrote:
> Hi,
>
> I'm currently using Drools 2.5, and I am experimenting with the Java 
> Annotations Semantic Module. Is there a way to load rules natively (i.e. not 
> using Sprint) ?
>
> I tried following the instructions on the web 
> (http://www.drools.org/Java+Annotation+Semantic+Module), but it seems that 
> AnnonatedPojoRuleBuilder no longer exists.
>
> Thanks,
> Alan Ho
>
>   

Reply via email to