i have multi module project with 3 modules .
project a
project b
project c
a,b are web application.
c is a jar that is used by a,b.
the problem is that i deploy a,b to tomcat and i want only 1 instance of the jar to be active .
more specific : i have in that jar listeners to a change in some file and i want to have one instance of each listener , not 2 instances - 1 in each web application.
how can i make project a,b use the same instance of jar .
i understood that put the jar to $tomcat_home/lib is not a real solution.