Solved

java database applet connectivity

Posted on 2002-05-02
8
215 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
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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countAbc challenge 9 50
JAVA part two 5 42
JUnit 4 @Before and @BeforeClass differences 3 24
Java DateChooser? 3 16
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now