ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  EJB 2 and J2EE Packaging
Subject:   Sharing a singleton class within same EAR
Date:   2003-06-27 22:05:34
From:   anonymous2
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)