[jboss-svn-commits] JBL Code SVN: r19107 - labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/services/registry.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Mar 19 07:24:21 EDT 2008
Author: tfennelly
Date: 2008-03-19 07:24:20 -0400 (Wed, 19 Mar 2008)
New Revision: 19107
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/services/registry/RegistryFactory.java
Log:
Rolling back change to initialise singleton where RegistryService is not in play to initialise it.
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/services/registry/RegistryFactory.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/services/registry/RegistryFactory.java 2008-03-19 10:57:27 UTC (rev 19106)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/rosetta/src/org/jboss/soa/esb/services/registry/RegistryFactory.java 2008-03-19 11:24:20 UTC (rev 19107)
@@ -50,17 +50,7 @@
return singleton;
}
- // The factory hasn't been intialised via the RegistryService e.g.
- // when used in tests?? Create and set the singleton...
- synchronized(RegistryFactory.class) {
- // Check the instance again in case a second thread was blocked on
- // the sync - prevent it from creating the Registry again...
- if(singleton == null) {
- singleton = createRegistry();
- }
- }
-
- return singleton;
+ return createRegistry();
}
public static Registry createRegistry()
More information about the jboss-svn-commits
mailing list