Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to connect SQL database in servlet?

 
Mellihoney Michael
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:

I am beginning to use web logic to development web applications. The question is how to connect SQL database in servlet? I have heard about the Oracle database connection and retrieval in J2EE, so can I connect to my SQL database in web logic?

Cheers
Mic
 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes u can connect sql also through weblogic.
First u get the sql driver class and URl then u can apply at weblogic console and also u must and should set the classpath for ur sql driver.
 
sidharth nayak
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try jdbc instead..

there are 6 simple steps given in all books
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic