Thank you for the reply Thiago - it is much appreciated! A couple follow-up items:
I got the notion that there was a 'Session' service from the code below. When put in AppModule.java, it seems to work just fine when the DAO is directly injected in a Tapestry Page: public static IUserDao buildIUserDao(@InjectService("Session") Session session) { IUserDao dao = new UserDao(session); return dao; } I think that obtaining the DAO from Tapestry-IoC is where I'm getting confused. If the User 'business object' was created with a regular 'new', is it possible for it to obtain a UserDAO from Tapestry-IoC? If it is possible, do you have a code snippit as an example? Related to the initial architecture - I certainly respect your point of view on the Entities using DAOs directly. Although I don't want to go too off topic, but I am interested in your preferred architecture. Do you use a separate 'business object' and treat the Entity as only a ValueObject with getters/setters? Thanks again! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Injecting-Session-into-DAO-tp5713703p5713707.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org