Hi, On Tue, Jan 6, 2009 at 1:28 PM, Vinicius Carvalho <[email protected]> wrote: > ...I was imagining putting the Felix inside a servlet context, much like > Spring > app do. And my servlets would consume services provided by the Felix, I > would create some special servlets front ends to install bundles, list them, > update, and the application would only consume the services....
Apache Sling does something similar, you can have a look at the code under [1] to see how Felix is started. Sling allows you to register servlets using SCR annotations, see [2] for example, loading a bundle that contains that JsonQueryServlet is enough to have it process URLs ending in ".query.json". See http://incubator.apache.org/sling for general info about Sling. -Bertrand [1] http://svn.apache.org/repos/asf/incubator/sling/trunk/launchpad/base/src/main/java/org/apache/sling/launcher [2] http://svn.apache.org/repos/asf/incubator/sling/trunk/servlets/get/src/main/java/org/apache/sling/servlets/get/JsonQueryServlet.java --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

