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.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I configure Resin for JSP/Servlets

 
Ben Weaver
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic