• 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

integrating web applications with databases

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OS=Windows98, Tomcat v. 4.1.27.exe, J2SE/JDK v. 1.3.1
contents of AUTOEXEC.BAT:
set PATH=c:\jdk1.3.1\bin;%PATH%
set CLASSPATH=%CLASSPATH%;.;c:\ServletDevel;c:\Tomcat\common\lib\servlet.jar
set JAVA_HOME=c:\jdk1.3.1

I'm new to servlets. I want to know how this integrating web applications with databases done. What is that web container that should be installed in my PC? And what is that database management system that should be installed in my PC?
Below are tasks that should be completed in integrating a web application with a database:
- Develop a servlet context listener to initialize a connection pool and place it in a global naming context.
- Configure the deployment descriptor to declare the servlet context listener and set the servlet context initialization parameters
- Deploy the Web application
- Activate the Web application
How are tasks above done? Can anybody there help?
Any information would be greatly appreciated.
Thanks in advance.

Regards,
Cathy
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cathy -
If you're new to servlets and have been asked to implement connection pool/listeners/etc straigh away, then I highly recommend you to buy/borrow a book, sit, relax, and start reading .
CoreServlets is an excellent book to read (free pdf available). It'll guide you throughout all this process.
this book is also excellent.
P.S. Tomcat is a web container. If you don't have any particular requirement for a database, you can use MySQL.
[ October 27, 2003: Message edited by: Andres Gonzalez ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic