Hi everybody, 

 
we have built a modular application platform using OSGi.

To us it is important not only to build modules in the

service layer but also in the GUI layer. 

 
Our GUI is a web application and we decided to deploy

it as a WAB. We are using ZK Ria as web application framework.

Everything works fine with regard to reference other 

bundles from our WAB up to the controller layer. But

when it comes to serve static resources from the WAB

we are not very happy with our solution.

 
We would like to separate the static resources also 

in bundles analogue to the modularization of the business

and controller layer. But WAB does only support loading

resources from the WAB itself and its fragment bundles.

So for every business module we build a fragment bundle

with its appendant resources such as HTML, CSS, JPGs ...

 
But using fragments leads to loosing dynamic since we

cannot activate/deactivate the fragments. But we would

like to activate/deactivate, install/uninstall modules

at run time.

 
Servlet specification 3.0 allows loading of resources

from jar files in WEB-INF/lib if they are located

in META-INF/resources inside the jar. Since imported

packages of the WAB are (nearly) treated like jars in WEB-INF/lib

in a servlet container I was wondering if I can import

META-INF/resources from another bundle and load resources

from it. Of course one has to use a servlet 3.0 conform

container.

 
I have not found anything about this topic in the WAB

spec. Some experiments with Gemini 2.0 were not successful.

I have read that GlassFish supports this approach.

 
Should the WAB spec cover this topic? Or is it up to

the implementers such as Gemini or PAX web to deal

with it? Or is there another solution for loading

static resources from modules?

 
Best regards, 

                Andreas Klotz

 
-- 
phone:  +49 (221) 222 896 24
fax:      +49 (221) 222 896 11
email: andreas.kl...@n-design.de <mailto:andreas.kl...@n-design.de> 

--------------------------------
n - d e s i g n   G m b H 
www.n-design.de <http://www.n-design.de/> 
Alpenerstr. 16
D-50825 Köln

Amtsgericht Köln HRB 33766 B
Geschäftsführer Andy Kohl

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to