You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Jean-Guillaume LALANNE <je...@capgemini.com> on 2005/02/15 12:07:03 UTC

LocalDaoSession lost when a daoManager is used in a callback method...

Hi all,

I have got today a strange error in my code. I am using asynchronous call
with callback function. In this function, I'd like to store some information
in my database via IBATIS. All my DaoManager configuration is loaded in the
main code and it works fine, but when I want to use it in the callback
function, it seems that the LocalDaoSession is lost on the daoManager...
Maybe because the asynchronous call (with delegate) is using a kind of
serialization (I am not a .NET specialist, much more a newbie, so I am maybe
wrong!) and the LocalDaoSession is not serializable or something like
this...
How can I set again the LocalDaoSession without reloading the all
configuration ?
In attachement, a picture of my daoManager in the VS.NET debbuger.

regards,

Jean-Guillaume LALANNE


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.