SlingServletResolver registers OSGi services from synchronized blocks
---------------------------------------------------------------------
Key: SLING-1580
URL: https://issues.apache.org/jira/browse/SLING-1580
Project: Sling
Issue Type: Bug
Components: Servlets
Affects Versions: Servlets Resolver 2.0.8
Reporter: Bertrand Delacretaz
Priority: Minor
The synchronized bindServlet method calls createServlet which in turns calls
context.getBundleContext().registerService(...).
This means OSGi framework calls are done from a synchronized method, which can
lead to deadlocks.
I think we can synchronize much less, it's probably just the changes to the
servletsByReference and pendingServlets collections that need to be
synchronized.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.