InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: open connection from applet on local machine


Jenny

It might be the url, as you suggest. Try forward slashes, /, instead of
double backslashes, \\.

However, you're also likely to run into security problems. InstantDB needs
to perform a lot of disk access and Applets generally don't allow this. The
security mechanisms for Netscape and IE were completely different (and
incompatible) last time I looked. Unless things have improved lately, you
may be in for a long haul through Netscape and IE websites to find the
necessary information and tools.

Have a look at
http://instantdb.enhydra.org/software/documentation/sample-applications.html
#jdbcappl for a quick and dirty fix for Netscape.

Regards

Peter Hearty
Lutris Technologies UK Ltd.
-----Original Message-----
From: jzhang <j.zhang@massey.ac.nz>
To: instantdb@enhydra.org <instantdb@enhydra.org>
Date: 04 August 2000 06:21
Subject: InstantDB: open connection from applet on local machine


>Hi, all:
>
>I have an applet which is on local machine. This Applet will open a
>connection to local database. The code is as following:
>...
>try{
>  Class.forName("org.enhydra.instantdb.jdbc.idbDriver");}
>  catch(ClassNotFoundException cnfe) { cnfe.printStackTrace();}
>try{
>  System.out.println(getCodeBase());
>
>con=DriverManager.getConnection("jdbc:idb:c:\\winnt\\profiles\\jzhang\\desk
top\\test\\test.prp");
>
> }
>  catch
>  (SQLException sqle) { sqle.printStackTrace();}
>...................
>
>It works fine when I run this applet using appletviewer. But when I use
>Netscape and IE to test it, it shows that it can find the idbDriver, but
>the sentence
>con=DriverManager.getConnection("jdbc:idb:c:\\winnt\\profiles\\jzhang\\desk
top\\test\\test.prp");
>
>failed.
>Is it because that the URL representation of local test.prp file is not
>correct?  How should I write that url?
>
>Thank you!
>
>jenny
>
>
>---------------------------------------------------------------------------
--
>To unsubscribe from this mailing list, send email to majordomo@enhydra.org
>with the text "unsubscribe instantdb" in the body of the email.
>If you have other questions regarding this mailing list, send email to
>the list admin at owner-instantdb@enhydra.org.
>

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.