||EJB 2 and J2EE Packaging|
|Subject:||Sharing a singleton class within same EAR|
I want to use ReadWriteLock Singleton class b(etween a Servlet and a MDB in the same EAR application. Components are deployed within the same EAR appliction and lib.jar file is refered in MANIFEST.MF file appropriately. So can I assume these components are sharing the same singleton object?
(There happens a Reader Writer problem between Servlet and MDB that are accessing the same table)