my dog learned polymorphism*
The moose likes Servlets and the fly likes How do I configure Resin for JSP/Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How do I configure Resin for JSP/Servlets" Watch "How do I configure Resin for JSP/Servlets" New topic
Author

How do I configure Resin for JSP/Servlets

Ben Weaver
Ranch Hand

Joined: May 10, 2000
Posts: 40
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

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I configure Resin for JSP/Servlets
 
Similar Threads
javaBeans
Connection Bean
select drop down question
Ejb Project Plan
User validation