eventualy this helps you
http://87.193.218.134:8080/t5components/t5c-contrib/howto_dao.html

2008/8/9 Onno Scheffers <[EMAIL PROTECTED]>

> Hi,
>
> I am having some troubles figuring out the proper way to use DAO services
> using tapestry-hibernate. The documentation describes how to write the DAO
> service interfaces and how to register them, but it doesn't show an example
> of an actual DAO implementation.
>
> As far as I know I cannot inject a Hibernate Session into the DAO service
> implementation, so I must create a constructor for that.
> If I do that it works fine, but every example I was able to find (not
> many!)
> seem to use the default scope for the DAO service, which is singleton. It
> works on my local machine, but I don't quite understand how this would work
> in a multi-user, multi-threaded environment. Shouldn't the scope be
> perthread?
>
> Does anyone have a bit of example code for a DAO interface, its
> implementation and the way they are registered in the AppModule?
>
>
> regards,
>
> Onno
>



-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com

Reply via email to