[odb-users] how to implement application session?

qiang peng pengqiang1979 at gmail.com
Thu Nov 28 09:30:07 EST 2013


OK, Thanks!


2013/11/20 Boris Kolpackov <boris at codesynthesis.com>

> Hi Qiang,
>
> qiang peng <pengqiang1979 at gmail.com> writes:
>
> > In fact, need a seesion which life as long as application program's life,
> > so can use cached object.
>
> If your application is single-threaded, then you can use ODB's stock
> session for that. For a multi-threaded application you will have to
> implement your own thread-safe object cache as described in Section
> 11.2.
>
> Boris
>


More information about the odb-users mailing list