From: Adam R. <ada...@de...> - 2008-03-17 12:15:05
|
As far as I am aware, you would only be able to use a JAR file with Modules written in Java, not in XQuery. Although I may be wrong... -----Original Message----- From: exi...@li... on behalf of Luis Sent: Mon 17/03/2008 08:11 To: exi...@li... Subject: [Exist-open] How to make a jar XQuery module Hi, I have developed an XQuery application that uses some XQuery modules (also develop for me). Seeing the documentation giving by eXist (http://www.exist-db.org/xquery.html) I could see that 4 ways can be used to work with modules in eXist: - As an URI - As a collection in the database - As a jar file, (Copy-paste --> If the XQuery module is part of a Java application, it might also be an option, to pack the module into a Java archive (.jar file) along with the Java classes) - As a Java class, if the module is itself implemented in Java At this moment, my XQuery modules are stored as a collection in the database and they work perfectly, but I would like to make a jar file. I have 4 four modules with plenty of functions: - first.xqm (that uses second.xqm) - second.xqm (that uses third.xqm and fourth.xqm) - third.xqm - fourth.xqm From your documentation (http://www.exist-db.org/xquery.html#javamods) eXist supports two types of XQuery-based library modules: - External Modules, which are themselves written in XQuery, but how to use it? - Internal Modules, which are implemented in Java. but I don't know how to make the jar file, wondering - is it necessary to develop a Java file for each XQuery module that integrates modules? - is it only necessary to develop only a Java file as EchoFunction (eXist/extensions/modules/src/org/exist/xquery/modules/example) that in some way you can specify where my XQuery modules are and which are the funtions?? - In the eXist example: import module namespace status='http://exist-db.org/xquery/admin-interface/status' at 'resource:org/exist/xquery/lib/test.xqm'; where test.xqm is? I could not find any example about this (if it is, apologies for the message) Any idea helps me. Thanks, Luis _________________________________________________________________ MSN Video. http://video.msn.com/?mkt=es-es |