I'm developing my Course Conclusion Work (Final Graduation Work). We're using Java with Spring MVC and Glassfish Application Server only. We won't use Hibernate or JPA because we'll use stored procedures in MS SQL Server 2008, so JDBC seems to be the most effective way to call them (since, as far as I know, I can't pass an object as a parameter to SQL Server). We've configured the Datasource Pool on Glassfish. We know we'll need a DAO to call the procedures from SQL Server. My questions are:
1-) Do I need (or is it the best practice to use) a Service object (properly annoted as @Service) to call the DAO methods? Or I can just call the DAO methods right from the controller?
2-) What's the best way to get the Connection from the DataSource? A separated class with a getConnection method or ds.getConnection() on each DAO?
Thanks