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: https://github.com/droolsjbpm/drools/blob/5.5.x/drools-core/src/main/java/org/drools/agent/impl/BinaryResourceDiffProducerImpl.java


Best Regards,


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com


On Thu, Mar 21, 2013 at 2:27 PM, gqmulligan <gqmulligan@gmail.com> wrote:
Thanks for the suggestion Wolfgang. The problem is that hibernate does
serialize the packages to compare the bytes and they are still somehow
different.

I also felt like I did a test before where I read a serialized package from
the database, serialized it again, and the bytes were different from the
original.

I will test this again to be sure.

Thanks.



--
View this message in context: http://drools.46999.n3.nabble.com/Comparing-KnowledgePackages-for-Equality-tp4022952p4022967.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users