I have a requirement where I need to share some web resources (jsp
, html
, js
, images
, css
etc.) across different Spring
based Struts 2
applications. And seems like OSGi
can be used to achieve this?
- Can some one give some pointers on how to achieve this with
OSGi
? - And secondly I want to know is
OSGi
mature enough to be used in production applications?
Thanks in advance!
EDIT: I went through this post and seems like people are able to share a web bundle across web applications. The only difference is that they did it with Spring MVC. I want to know whether this can be achieved with Struts2 applications also?
EDIT 2: I am basically little unclear about the following:
- Will the 'shareable-bundle' (containing the web resources to be shared) be a .war packaged. If yes, then from where will the final web context be formed since this bundle is again to be shared with the main 'web' application? I am expecting the final web context to be formed out of the merging of the 'shareable-bundle' and the 'main' web application. Will it happen automatically? Any ideas?