OK now the rmi server seems to be running fine.
I try to run the TestClient and i get a the following error:
It compiles fine its only when I run it:
TestClient:jdbc:rmi://netizen/jdbc:idb=sample.prp
java.sql.SQLException: SecurityException reading properties from file:
sample.prp java.security.AccessControlException: access denied (
java.io.FilePermission c:\temp\Sample.read read )
Is this error saying it cant find the sample.prp file?
----- Original Message -----
From: "Peter Hearty" <peter.hearty@lutris.com>
To: <instantDB@enhydra.org>
Sent: Thursday, August 31, 2000 2:27 AM
Subject: Re: InstantDB: SQL Builder
> Eric
>
> > If I was to leave it the way it works now with out the rmi jdbc library
> > would it work by order of execution? Meaning who ever opens the
database
> > first does what it needs to do then the next request goes?
>
> You shouldn't have two separate Java applications accessing the same
> database at the same time unless they're both read only apps. If you have
an
> updating app then it must have exclusive access.
>
> > What happens when a server like Tomcat is threaded?
>
> Separate threads within the same app are OK. InstantDB will handle the
table
> locking and control access to multiple connections and/or threads, but
they
> must all be within the same Java Virtual Machine, i.e. there's only been
one
> Java command line being executed at any one time.
>
> > WARNING: java.rmi.server.hostname property can't be read( access
denied )
>
> Make idb.jar and RmiJdbc.jar Java extensions by putting them in the
> /jre/lib/ext directory or modify you security policy to allow read access
> to the above property. See
>
> http://instantdb.enhydra.org/software/documentation/network.html
>
> Regards
>
> Peter Hearty
> Lutris Technologies (UK)
> ----- Original Message -----
> From: "Eric Advincula" <eric07@earthlink.net>
> To: <instantDB@enhydra.org>
> Sent: Thursday, August 31, 2000 10:10 AM
> Subject: Re: InstantDB: SQL Builder
>
>
> >
> >
> > I tried the sample to and tried the first part to run the rmi:
> > here is my batch file:
> >
> > set ProjectPath=c:\Temp
> > set JarPath=c:\java\jar
> > set
> >
>
JarFiles=%JarPath%\RmiJdbc.jar;%JarPath%\idb.jar;%JarPath%\jta-spec1_0_1.jar
> > ;
> >
> > @echo on
> > java -classpath %JarFiles%%ProjectPath% RmiJdbc.RJJdbcServer
> jdbc.idbDriver
> >
> > when I run it I get the following error:
> > *** Can't register jdbc Driver for jdbc.idbDriver
> > Error message is: jdbc.idbDriver
> > Binding RmiJdbcServer...
> > WARNING: java.rmi.server.hostname property can't be read( access
denied )
> > If you use java.rmi.server.hostname, set the corresponding property to
> > "read" in your
> > java.policy file
> > RmiJdbcServer bound in rmi registry
> >
> >
> > ----- Original Message -----
> > From: "Peter Hearty" <peter.hearty@lutris.com>
> > To: <instantDB@enhydra.org>
> > Sent: Thursday, August 31, 2000 1:15 AM
> > Subject: Re: InstantDB: SQL Builder
> >
> >
> > > > Is this a stable and efficient solution?
> > >
> > > I'm not aware of any major problems with this approach. The RmiJdbc
> driver
> > > is open source so hopefully if there are any problems people will fix
> them
> > > as they pop up.
> > >
> > > Regards
> > >
> > > Peter Hearty
> > > Lutris Technologies (UK)
> > > ----- Original Message -----
> > > From: "Eric Advincula" <eric07@earthlink.net>
> > > To: <instantDB@enhydra.org>
> > > Sent: Thursday, August 31, 2000 9:11 AM
> > > Subject: Re: InstantDB: SQL Builder
> > >
> > >
> > > > I saw that link you originally sent and I guess I mis-read it and
> thanks
> > > for
> > > > clearing it up.
> > > >
> > >
> > >
> >
>
> --------------------------------------------------------------------------
> > ---
> > > 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.
> >
>
>
> --------------------------------------------------------------------------
---
> 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.
|