aspose file tools*
The moose likes JDBC and the fly likes Get connection from app/web server connection pool in backend Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Get connection from app/web server connection pool in backend " Watch "Get connection from app/web server connection pool in backend " New topic
Author

Get connection from app/web server connection pool in backend

Bill Leonard
Greenhorn

Joined: Mar 26, 2010
Posts: 5
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.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get connection from app/web server connection pool in backend