Hi all I'm using Tapestry with DBCP for a simple CRUD application. I'm asking for help in terms of application architecture. Is this the right way to do it?
So, I have an AbstractPage that extends BasePage and I use my AbstractPage as the basis for all my pages. In that AbstractPage I have a getDataSource that is configured as a HiveMind service. I have an object that encapsulates all my queries, sort of a poor-man's DAO. Whenever I need to do a query, I instantiate that object in one of my page's classes (not the AbstractPage, one of the pages that extend it), I pass it the DAO and the Model (a class that holds all the values I retrieved from the pages) and fire the query away. Now, I know this works with one user. But am I overseeing something here? I know this is a tad bit vague, but I'm asking just in case something occurrs to you. -- Cumprimentos, Rui Pacheco