For an application that uses JSP w/ glassfish app server with a multi-tiered s/w architecture that has a business logic layer and a data access layer (db access) used by the business logic layer (the business logic and data access logic are java classes in a separate Jar file that's used by the JSP), how does the data access layer get access to the connection pool created by the glassfish app server? I'm wondering how this would be done when using plain old JDBC (and then I'll research how it's done for both hibernate and JPA).

NOTE: I'm currently having the JSP layer pass down the connection to my business logic object (which passes it to my Data Access logic object) -- not a good thing, of course.