开发者

toplink client session with server session

开发者 https://www.devze.com 2022-12-13 19:01 出处:网络
can i directly create unit of work on server session instead of 开发者_开发问答creating multiple client session. As my application runs in multi threaded environment, so i am unable to get updated ent

can i directly create unit of work on server session instead of 开发者_开发问答creating multiple client session. As my application runs in multi threaded environment, so i am unable to get updated entity in some different client session so my application fails every now and then.. plz help me.


Yes, you can acquire a UOW directly from a ServerSession. But you may need to update your caching/locking/refreshing policies as the ClientSession does not have any caching. Only the UOW and the ServerSession cache data.
If you have any more questions you should post on the EclipseLink User mailing list. --Gordon Yorke

0

精彩评论

暂无评论...
验证码 换一张
取 消