Hello,<br><br>With prior versions of JBoss Rules (3.0.5) I have been using JDK generated dynamic proxies as facts, and they have been working fine.&nbsp; However, after upgrading to JBoss Rules 4.0.0MR3, I cannot seem to get the dynamic proxies to work as facts.&nbsp; It seems that even though a rule fires that changes a field on the proxy, a second rule that should not be activated after the update still fires.
<br><br>According to the JDK javadoc documentation, dynamic proxies are created as final.&nbsp; My assumption is that JBoss Rules is not creating Shadow facts for these since they are final.&nbsp; After reading the JIRA at <a href="http://jira.jboss.com/jira/browse/JBRULES-960">
http://jira.jboss.com/jira/browse/JBRULES-960</a>, I now am questioning what the effect of not using shadow facts is on the engine.&nbsp; The relevant part of that is:<br><br>&quot;The problem is that SpringAOP is generating a proxy whose methods
equals() and hashCode() are &quot;final&quot;. As drools must either override
these methods in the shadow proxy or not shadow the fact at all, I&#39;m
disabling shadow proxy generation for this use case.
<br><div class="action-body">
It is really important to note that if you are asserting SpringAOP
proxies as facts into the working memory, you will not be able to
change any field value whose field is constrained in rules or you may
incur in a memory leak and non-deterministic behavior by the rules
engine. Unfortunately there is nothing we can do about, since when
SpringAOP makes the methods equals and hashcode final, we can&#39;t
override them anymore and as so, we can&#39;t shadow them.&quot;<br>

    

</div>




<div id="comment-12367491-closed" style="display: none;">
    <div style="background: rgb(240, 240, 240) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
    <div class="action-links subText smallgrey">
    [ <a href="http://jira.jboss.com/jira/browse/JBRULES-960" onclick="toggleDivsWithCookie(&#39;comment-12367491-open&#39;, &#39;comment-12367491-closed&#39;); return false;" class="smallgrey">Show »</a> ]
    </div>
    <div class="action-details" style="overflow: hidden; height: 1em;">
        <a name="action_12367491">
                                                        
                        
            </a><a href="http://jira.jboss.com/jira/secure/ViewProfile.jspa?name=tirelli">Edson Tirelli</a> <font size="-2">[<span class="date">02/Jul/07 03:29 PM</span>]</font>
The problem is that SpringAOP is generating a proxy whose methods
equals() and hashCode() are &quot;final&quot;. As drools must either override
these methods in the shadow proxy or not shadow the fact at all, I&#39;m
disabling shadow proxy generation for this use case.
It is really important to note that if you are asserting SpringAOP
proxies as facts into the working memory, you will not be able to
change any field value whose field is constrained in rules or you may
incur in a memory leak and non-deterministic behavior by the rules
engine. Unfortunately there is nothing we can do about, since when
SpringAOP makes the methods equals and hashcode final, we can&#39;t
override them anymore and as so, we can&#39;t shadow them. </div>
    </div>
</div>
<br>Although I&#39;m not using SpringAOP, I believe my facts are not being shadowed.&nbsp; <br><br>Is it true that not using shadow facts may lead to non-deterministic behavior?&nbsp; Prior to shadow facts, the engine seemed to handle it.&nbsp; Any chance of reverting back to the old style of truth maintenance in the case of not using shadow facts.
<br><br>I apologize if I&#39;m not on the right track here.&nbsp; My only test case for my problem is the entire application right now, so I cannot offer it for discussion.&nbsp; Any advice would be greatly appreciated.<br><br>Thanks,
<br>-Chris West<br><br>