Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

java database applet connectivity

Posted on 2002-05-02
8
Medium Priority
?
237 Views
Last Modified: 2010-03-31
i want to use a java applet/servlet for user aunthentication for an online application that i'm developing.the applet connects to an MS Access database So i want the applet to verify the details entered by the user ny comparing with some values st
0
Comment
Question by:thembie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 16

Expert Comment

by:heyhey_
ID: 6985870
what's the problem ?
0
 

Author Comment

by:thembie
ID: 6986190
no the problem is i'm failing to connect the applet to the database and i'm getiing datasource not found error.i've set up the drivers correctly but still getting the same error
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6986225
post the full exception stacktrace.
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
LVL 9

Expert Comment

by:Ovi
ID: 6987902
"the problem is i'm failing to connect the applet to the database and i'm getiing datasource not found
error.i've set up the drivers correctly but still getting the same error" - to what datasource are you connecting? Is local datasource accesed with odbc or remote server? Do you have raised sequrity exception or db connect exception?
0
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6987988
Thembie.
If you are trying to connect to database from applet. Then you need to been signed applet or the database and web server should be in the same database.
Datasource is the Client dependent stuff. I don't think it is possible to connect applet using DSN. DSN is client side piece of information. So u need to use to use Type3 or Type 4 drivers.
Type 1 and Type 2 are client dependent.

Shyam
0
 
LVL 4

Expert Comment

by:pellep
ID: 6989177
Access database is a 'desktop' database, ie not distributed. accessing an access db over a network is done thru the windows file-sharing system. an applet trying to use an access db is thus subject to two levels of security checks.
1) Applet security (has to be signed to access filesystem)
2) Windows security (machine running applet has to have access to machine hosting access db thru windows filesharing)

I'd suggest that if you intend your applet to acces your db you choose a true RDBMS (where the client can connect to the db thru TCP/IP directly via an appropriate JDBC driver), like Oracle or SQL-server. If you are not keen on paying there are free alternatives like MySQL or Postgress.

If you are forced to use an Access db, i'd try and use servlets for all your db-dependant logic, since you can host both the db and the servlet engine on the same machine, thereby removing the depenancy on remote connectability.

PAP
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7992933
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ'd and pts removed
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8048437
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question