Oh my god. You're right. The developer before me put a local
"CoreSession session" object in the class that derives from
UnrestrictedSessionRunner. So I did no realize that
UnrestrictedSessionRunner already has a session object!!!
You don't need to create one outside and pass it into the
UnrestrictedSessionRunner. All that trouble to figure it out
above for nothing :(
Anyway, the code now:
private void handle(boolean isInsertUpdate, IBusinessObject
cadObject) throws Exception
{
RmsUnrestrictedSessionRunner runner = new
RmsUnrestrictedSessionRunner(isInsertUpdate, this,
cadObject);
runner.runUnrestricted();
}
And CoreSession is available to me inside the run() method
already! :)
---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/