悬赏分:20 浏览:519 次
|
7个月前 wingoo : 解决了么?? 我也遇到了这个问题...-__- 这边有个解决方法,不过我没试,,因为用了castle,,还要改源码-___- 你可以尝试下.. http://www.mail-archive.com/user-cs@ibatis.apache.org/msg02052.html 另外在ibatis mapper的帮助里也有这一段 The DatatMapper component store his working ISqlMapSession on different session store. On Web environnement, the session is stored Http.Request.Items. On windows environnement on the current thread. You can configure the session storage by specifing the property ISessionStore on ISqlMapper. This will allow to set a custom session store like the HybridWebThreadSessionStore This is used for scenarios where most of the you need per request session, but you also does some work outside a request (in a thread pool thread, for instance). Set it after the configuration and before use of the ISqlMapper. Example 4.12. Custom ISessionStore sqlMapper.SessionStore = new HybridWebThreadSessionStore( sqlMapper.Id ); ... sqlMapper.QueryOject(...) |
|
7个月前 wingoo : 加上那句后,解决问题,lz可以试下:) 调度程序我用的是quartz,,园子里的shanyou有个专题介绍 也可以看下^_^ |