Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Get connection from app/web server connection pool in backend  RSS feed

Bill Leonard
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!