We have numerous Tomcat containers hosting different web applications. All these applications use a shared library. We need an ability to trigger actions by this shared library.
This could be done through a servlet that all applications would specify in their web.xml file. Actions could then be triggered by a URL. However, that approach does not appear to be very elegant.
I have also looked into MBeans, but not sure if this is a kind of problem they are meant to solve.
Any best practice approaches for doing this are appreciated. Detailed discussion of options to help me think through this would be great.
Thank you.