Thanks for the reply... I will give this a go. Has ShadowProxyUtils been
introduced in 4.0.1, I didn't get this behavior in 4.0...
It is quite imperative that I get this working, since our project
depends on Hibernate and Drools. Should we create a JIRA for this?
Juan
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Peter Mikula
Sent: 29 September 2007 08:55 AM
To: Rules Users List
Cc: juan.heyns(a)epiuse.com
Subject: Re: [rules-users] Hibernate
Drools doesn't handle Hibernate in anyway, we have no awareness
of it.
The exceptions indicates that you have lazy loading enabled for
hibernate, but your session is disconnected when it tries to lazy load
the object.
Hi,
trouble is in ShadowProxyUtils ... it tries to clone the hibernate
collection but in the process looses the hibernate session.
I have solved it for myself with a simple patch that disables
collection cloning for hibernate collections (if hibernate is on the
classpath).
Long term solution should probably be some kind of extension point
where user can register custom delegate.
--
pm
"Employees of Lonmin Platinum ("Lonplats") are not authorised to conclude
electronic transactions or to enter into electronic agreements on behalf
of Lonplats. Any electronic signature (other than an advanced electronic
signature as defined in the Electronic Communications and Transactions
Act of 2003) added to a data message (such as an email or an attachment
to an (email) ostensibly on behalf of Lonplats by a Lonplats employee shall
not be legally binding on Lonplats and Lonplats shall incur no liability of
any nature whatsoever, directly or indirectly, arising from such act on the
part of it's employee. It is further recorded that nothing (other than an
advanced electronic signature) inserted into any data message
emanating from Lonplats shall be construed as constituting an electronic
signature"