On 25.09.2014 12:44, Sergey Beryozkin wrote:
Hi Christian
On 25/09/14 08:51, Christian Schneider wrote:
Having one servlet per bundle would definately work.
I see two problems though:
- Each servlet has its own base path where all services reside then. Not
necessarily a bad thing but it would limit the freedom of the user to
define where his endpoints live.
- Added configuration overhead and complexity: Each of the bundles has
to be a web application bundle with a web config and servlet definition.
This is what people do today every day with wars, nothing major and
has proven to work
Unfortunately it is not the same as with wars. Outside of OSGi you
typically have one war per application. So the config effort is only
once per application.
A typical OSGi application often consists of > 10 bundles (without
additional dependencies). So instead of one set of configs you have >
10. So this is considerably more effort.
Christian
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com