• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I configure Resin for JSP/Servlets

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Always look on the bright side of life. At least this ad is really tiny:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic