This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
Hi, I'm building a JSP/JavaBean application, and am trying to figure out how to configure Resin1.1.2 web server. What is entailed in 'configuring' Resin to enable a JavaBean to communicate with an Oracle database via JDBC? Modification of .bat files or command-line prompts? The inclusion of certain lines of code within the jsp page or Bean itself? What extra steps will give the Bean the security privileges necessary to access the database over a local network? Any perspectives are welcome!
posted 15 years ago
Resin has built-in database pooling, so the first step is to configure Resin for your database. That means editing resin.conf to put the jdbc url into the db-pool directive. Once this is done, it's just a matter of adding a few lines of code to your bean to get a connection from Resin's connection pool. There should be an example in the Resin help pages which are available when you start Resin.