adding a new persistence layer for BaseX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

adding a new persistence layer for BaseX

bsuv

Hi there,

I've read through the tutorials on how a new persistence layer can be added for a new database rather  than using the ones with built-in persistance layers (eXist, Oracle or MySQL), since my goal is to use BaseX. So far after reading through a tutorial (http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API) I began to modify the properties-form-runner.xml (found in src/resources-packaged/config/) by adding a new persistence service: i.e. <property as="xs:anyURI " name="oxf.fr.persistence.service.basex.uri"  value="http://localhost:8984/basex/jax-rx/test"/>

 

I'm new to Orbeon and integrating REST APIs, skimmed through the BaseX REST API doc (http://www.inf.uni-konstanz.de/dbis/basex/rest), but I'm still confused where to head next with the configuration on Orbeon: should I write an SQL processor (saw that this is done for MySQL and Oracle, under org.orbeon.oxf.processor.sql.delegates )?  what other properties should be modified in the properties-form-runner.xml?

 

Any hints/clues/tutorials are appreciated.

 

Thanks!



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: adding a new persistence layer for BaseX

Erik Bruchez
Administrator
You don't need SQL or the SQL processor here. What you need to do is
implement a REST service that:

* responds to Form Runner calls
* does the appropriate calls to BaseX on the other end

It's a bit more than simple configuration: you have to implement a
translation layer between the Form Runner API and the BaseX API.

You can certainly implement the service in Orbeon Forms using XPL,
XSLT, and other building blocks available in Orbeon Forms. But you
don't have to: you can instead use Java, PHP, Ruby, or any language
you are comfortable with.

-Erik

On Fri, Dec 10, 2010 at 5:47 AM, Suvar, Bogdan <[hidden email]> wrote:

> Hi there,
>
> I've read through the tutorials on how a new persistence layer can be added
> for a new database rather  than using the ones with built-in persistance
> layers (eXist, Oracle or MySQL), since my goal is to use BaseX. So far after
> reading through a tutorial
> (http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API)
> I began to modify the properties-form-runner.xml (found in
> src/resources-packaged/config/) by adding a new persistence service: i.e.
> <property as="xs:anyURI " name="oxf.fr.persistence.service.basex.uri"
> value="http://localhost:8984/basex/jax-rx/test"/>
>
>
>
> I'm new to Orbeon and integrating REST APIs, skimmed through the BaseX REST
> API doc (http://www.inf.uni-konstanz.de/dbis/basex/rest), but I'm still
> confused where to head next with the configuration on Orbeon: should I write
> an SQL processor (saw that this is done for MySQL and Oracle, under
> org.orbeon.oxf.processor.sql.delegates )?  what other properties should be
> modified in the properties-form-runner.xml?
>
>
>
> Any hints/clues/tutorials are appreciated.
>
>
>
> Thanks!
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws