Hi,
Does anyone know an easy way to get my own persistance service provider in between the call to persistance and a call to one of the default persistance layers, like mysql? I want to have the option to look at the crud or search request coming in, do some stuff, forward the request, get the response, do some more stuff, and then send the response back to the form runner. It all comes down to placing a kind of wrapper around the persistance provider. Thx Koen -- 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 |
Administrator
|
Koen,
I am not sure about an "easy" way, but Form Runner has a persistence proxy which does something like that: It's written in Scala, and might serve as inspiration. -Erik
On Tue, Mar 6, 2012 at 3:40 AM, <[hidden email]> wrote: Hi, -- 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 |
Thanks Eric,
I already looked at it and it looks like an interesting class. How does it get hooked into the system? What configuration settings make the form runner use it? (Or isn't it used? :-) ). Would it be possible to make a subclass of it in a different project and configure orbeon to use it instead? Thx! Koen Vanderkimpen Connect:
Koen, I am not sure about an "easy" way, but Form Runner has a persistence proxy which does something like that: https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/fr/FormRunnerPersistenceProxy.scala It's written in Scala, and might serve as inspiration. -Erik On Tue, Mar 6, 2012 at 3:40 AM, <Koen.Vanderkimpen@...> wrote: Hi, Does anyone know an easy way to get my own persistance service provider in between the call to persistance and a call to one of the default persistance layers, like mysql? I want to have the option to look at the crud or search request coming in, do some stuff, forward the request, get the response, do some more stuff, and then send the response back to the form runner. It all comes down to placing a kind of wrapper around the persistance provider. Thx Koen -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] 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 |
Administrator
|
Koen,
Form runner now always talks to the persistence proxy whenever forms or data need to be read/written/updated/searched. It's hooked-up here in the controller: snd it simply runs this pipeline: which in turn calls this processor: which refers to the FormRunnerPersistenceProxy class. So by modifying some of this yes, you could hook up another class. -Erik
On Wed, Mar 7, 2012 at 1:26 AM, <[hidden email]> wrote: Thanks Eric, -- 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 |
Free forum by Nabble | Edit this page |