Hello Peter,

 
that is what we have. The WAB serves the static content and provides
access to the web framework. Static resources belonging to modularized business
units (as separate bundles) are attached as fragments to the WAB and so cannot 
be activated/
deactivated independently.

 
We would prefer to deliver the resources with the bundles implementing
the controllers of the web GUI. So that we have a full featured presentation

layer bundle with controller logic and views with its needed static resources.

 
Best regards,

                Andreas Klotz

 
 
A WAB with only static content does not suffice?

 
Kind regards,

 
          Peter Kriens

 
On 12 jan. 2012, at 09:27, Andreas Klotz wrote:




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: [email protected] <mailto:[email protected]> 

--------------------------------
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
[email protected] <mailto:[email protected]> 
https://mail.osgi.org/mailman/listinfo/osgi-dev

 
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to