Re: LiveConnect to XQuery/Berkeley DB XML
Brett Zamir <[email protected]> Tue, 07 Aug 2007 23:39:00 +0800
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <46B89214.7010801__30380.1413429484$1186501163$gmane$org@yahoo.com> |
Hi,
Yes, thanks, I got it fixed and working now... I've also posted a couple
of other smaller issues needing fixing which I can repost here:
1) Why does a try-catch not work on a Java method (putDocument for
BDBXML) as it is supposed to according to
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:LiveConnect_Overview:JavaScript_to_Java_Communication#Handling_Java_Exceptions_in_JavaScript
This is pretty necessary if doing things like dynamically putting in
documents (or adding Containers for that matter) which might already
exist with that name, etc.
2) Have I limited the .java.policy file's permissions sufficiently? Can
I be more strict without losing needed functionality by BDBXML? I
presume it shouldn't be too much of an issue since the unrestricted
permissions only exist for those two jars which I've installed myself...
Here's my file:
grant codeBase "file:///C:/Berkeley DB XML/jar/dbxml.jar" {
permission java.security.AllPermission;
};
grant codeBase "file:///C:/Berkeley DB XML/jar/db.jar" {
permission java.security.AllPermission;
};
3) Is there any way to specify the DLL locations for Firefox external to
the Firefox folder (so that if other users wanted to install it, they
wouldn't need to copy the DLL's to the Firefox folder I could just have
the JS save them that work... Also whether it'd be possible to specify a
.java.policy file within the extension folder or the like, so people
wouldn't have to manually create one or move that around either...
Brett Zamir wrote:
> Hi,
>
> This is a cross-post, but I figure this site is different yet quite
> suitable for the question...
>
> Basically with a little help from my friends, I've been able to get
> the cool XML query language, XQuery workable from within Firefox (via
> LiveConnect connecting to Java connecting to the open source Berkeley
> DB XML native XML database). (It does require at least temporarily
> importing some XML into the database first.) And, you get to take
> advantage of the indexing and other features provided by BDBXML (a
> workable substitute for SQL even, as by handling hierarchical data, it
> can of course handle tabular data, including with joins, etc.).
>
> However, I've got a problem getting a class loader unloaded
> (apparently a DLL issue)... Can anybody help? There's just one major
> bug (and a more minor one) that need to be fixed in order for people
> to use this freely...
>
> http://forums.oracle.com/forums/thread.jspa?messageID=1995559
>
> best,
> Brett
>