<div dir="ltr">The old knowledge agent did something similar to what you are looking for. Maybe you could take a look at its implementation and reuse some of the code: <a href="https://github.com/droolsjbpm/drools/blob/5.5.x/drools-core/src/main/java/org/drools/agent/impl/BinaryResourceDiffProducerImpl.java">https://github.com/droolsjbpm/drools/blob/5.5.x/drools-core/src/main/java/org/drools/agent/impl/BinaryResourceDiffProducerImpl.java</a><div>

<br></div><div><br></div><div style>Best Regards,</div></div><div class="gmail_extra"><br clear="all"><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>


<br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 2:27 PM, gqmulligan <span dir="ltr">&lt;<a href="mailto:gqmulligan@gmail.com" target="_blank">gqmulligan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks for the suggestion Wolfgang. The problem is that hibernate does<br>
serialize the packages to compare the bytes and they are still somehow<br>
different.<br>
<br>
I also felt like I did a test before where I read a serialized package from<br>
the database, serialized it again, and the bytes were different from the<br>
original.<br>
<br>
I will test this again to be sure.<br>
<br>
Thanks.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Comparing-KnowledgePackages-for-Equality-tp4022952p4022967.html" target="_blank">http://drools.46999.n3.nabble.com/Comparing-KnowledgePackages-for-Equality-tp4022952p4022967.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>