Hi David,

> 1) "Shared" Modules ...
> You mention putting "Shared" Modules in a shared DB.  How can
> I do that ?
> In the configuration for an App (HTTP or XDBC) I can only
> pick ONE Modules DB (or filessystem) So how can I have both a
>  "Shared" Modules DB and an app specific one ?
> Or is that not what you meant ?

Yes, you are right, you can pick only one Modules DB per App server. With 
shared Modules DB I simply mean a Modules DB that is used by multiple App 
servers..

> 2) "Modules as an Object"
> You mentioned using an xquery module as an object.   What do
> you mean by
> that ?
> I can think of one way.  Import the module, then every public
> function in it is 'like a' static method of an object.  But
> are you referring to some other design pattern ?

No, you are guessing right. You cannot instantiate objects from a module as if 
it were a Java class, but nothing is withholding you to think of such terms 
anyway. ;-)

One way is to consider each module function as a static method, but you could 
also provide functions with a parameter that could be seen as an 'object' 
reference (perhaps as simple as some uri, pointing to one particular data 
file?). It is not really a design pattern, and it doesn't make things easier 
persé..

Writing Xquery code this way is actually just sugar and window-dressing, but 
you will notice that thinking it such terms, or something similar, helps to 
separate concerns as it forces you to think in terms of Objects which usually 
have separate concerns. (or should have..)

You might prefer sticking to a more function library approach, though. Usually 
more straight forward. This was meant for inspiration only..

Good luck,
Geert



Drs. G.P.H. Josten
Consultant


http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.



_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to