>From Jody's original email:
I'm creating the database on the fly and
locating it in c:\temp, so I don't need to have the actual database
files in the jar, just the .prp file.
This is definitely possible, but any change has its issues. For
instance, the relativeToProperties flag would have to be ignored; paths
specified in the prp file would have to be either absolute or would be
considered relative to the working directory.
This will be fixed in a future Lutris release of InstantDB, unless it's
open sourced first and a community member sends in a patch (I have no
control over when InstantDB becomes OSS, it's a Lutris management
GEOFFREY DOWNER wrote:
> I can't speak for Peter but I think what you are asking would be difficult
> to add anyway. A database requires random access to a file and a
> compressed jar file must be accessed sequentially to be uncompressed. I
> think the only 'clean' option in this case is to copy the resource files
> to a temporary directory and access the database from there. Otherwise
> the data file would need to be contained entirely in memory to permit
> random access to the fields which is not acceptable for most
> On Thu, 22 Mar 2001, Jody Larsen wrote:
> > I'm a bit puzzled, over the last few days, it seems a great number of emails
> > elicit the response that InstantDB is not yet open source, and yet there are
> > quite a few people that would like to contribute to the codebase, either in
> > the form of bug fixes or by adding new features.
> > Is there any particular reason that it isn't being opensourced?
> > In regards to the workaround, yes, I can unjar it, but that violates the
> > concept behind Java Web Start and is essentially a hack. If I want to
> > deploy software that is a massive stack of undocumented hacks, I could use
> > commercial software such as MS Access, I'd prefer to fix it correctly in a
> > backwards compatible way by allowing more flexibility in the jdbc connect
> > url.
> > Thanks for the suggestion, I may unhappily implement it at least for a
> > short-term solution, and going forward would like to be able to contribute
> > to the instantdb codebase as soon as it is open-sourced.
> > - Jody
> > ----- Original Message -----
> > From: "Thom Nelson" <firstname.lastname@example.org>
> > To: <instantDB@enhydra.org>
> > Sent: Wednesday, March 21, 2001 11:53 AM
> > Subject: Re: InstantDB: Reading .prp file from a jar
> > > Unfortunately, InstantDB is not yet open source. There is no estimated
> > > time when this will happen, but we are planning to do it eventually.
> > > This would be a very useful feature, and we will consider putting it in
> > > the next release.
> > >
> > > As a work around, is there any way you can unjar the prp file manually
> > > before loading it?
> > >
> > > Thom
> > >
> > > > Jody Larsen wrote:
> > > >
> > > > I'm deploying an application using java web start, which only allows
> > > > the download of .jar files, and need to include the .prp file for
> > > > instantdb in the jar. I'm creating the database on the fly and
> > > > locating it in c:\temp, so I don't need to have the actual database
> > > > files in the jar, just the .prp file. The kicker though seems to be
> > > > that the jdbc connect string doesn't understand urls, only file
> > > > references which seems rather odd to me in the context of java being a
> > > > network aware language. It seems it would be rather simple to modify
> > > > the source to support reading the .prp file from a jar, but I can't
> > > > seem to find the source, as the instantdb CVS.
> > > >
> > > > Has instantdb been opensourced, and if so, where can I find the
> > > > source. If not, would it be possible to have the mod I need done
> > > > performed, it should be rather simple, a matter of calling
> > > > Thread.currentThread().getContextClassLoader().getResource(filename)
> > > > if new File(filename) fails...
> > > > - Jody
To unsubscribe from this mailing list, send email to email@example.com
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 firstname.lastname@example.org.