ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <larry.mead...@gmail.com>
Subject Re: DaoFramework - Are the DAO instances shared ?
Date Mon, 12 May 2008 04:12:09 GMT
There is one instance of each implementation.

Larry


On Sun, May 11, 2008 at 10:09 PM, mfs <farhan.sarwar@gmail.com> wrote:
>
>  So is there a pool of DAOImpl instances ? whats the size ? or we have a
>  singleton DAO which is shared by all ?
>
>
>
>
>
>
>  Larry Meadors wrote:
>  >
>  > They are shared, but only require synchronization if you have instance
>  > variables - everything iBATIS in them is thread safe.
>  >
>  > Larry
>  >
>  >
>  > On Sun, May 11, 2008 at 9:28 PM, mfs <farhan.sarwar@gmail.com> wrote:
>  >>
>  >>  Guys,
>  >>
>  >>  I know that DAO Framework has been deprecated and one is suggested to
>  >> look
>  >>  for better alternatives out in the market like Sping and all. I
>  >> eventually
>  >>  plan to move over to them but due to the time crunch, i have just found
>  >>  using the iBatis DAO Framework to be pretty easy to start/integerate
>  >> with.
>  >>
>  >>  Anyways i have a pretty simple question here...if someone could
>  >> response..
>  >>
>  >>  1) Is a new DAO Implementation (as specified in the dao.xml against the
>  >> DAO
>  >>  Interface) instantiated every time when a call to the
>  >>  getDaoManager().getDao(MyDAOInterface.class) is made..or the DAO
>  >> instances
>  >>  shared between callers (and hence would require synchronization)?
>  >>
>  >>
>  >>
>  >>  --
>  >>  View this message in context:
>  >> http://www.nabble.com/DaoFramework---Are-the-DAO-instances-shared---tp17180929p17180929.html
>  >>  Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>  >>
>  >>
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/DaoFramework---Are-the-DAO-instances-shared---tp17180929p17181211.html
>
>
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Mime
View raw message