taylor 2004/07/21 17:24:37
Modified: src/java/org/apache/jetspeed/services/registry
HybridRegistryService.java
Log:
setInit(true) so we don't hang on re-entry
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.9 +11 -3
jakarta-jetspeed/src/java/org/apache/jetspeed/services/registry/HybridRegistryService.java
Index: HybridRegistryService.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/registry/HybridRegistryService.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- HybridRegistryService.java 21 Jul 2004 18:54:35 -0000 1.8
+++ HybridRegistryService.java 22 Jul 2004 00:24:37 -0000 1.9
@@ -70,7 +70,7 @@
try
{
- setInit(false);
+ setInit(true);
replaceImportedEntries =
getConfiguration().getBoolean("replace.imported.entries");
@@ -87,6 +87,8 @@
}
catch (Throwable t)
{
+ setInit(false);
+ t.printStackTrace();
throw new InitializationException("Unable to initialize
HybridRegistryService: " + t.toString());
}
setInit(true);
@@ -114,12 +116,18 @@
}
else if
(registryName.equals(org.apache.jetspeed.services.Registry.PORTLET))
{
+ System.out.println("Portlet: Loading cache for " + registryName);
+
Iterator extent = PortletDbEntryPeer.fetchExtent().iterator();
while (extent.hasNext())
{
PortletEntry pe = (PortletEntry)extent.next();
+ System.out.println("Portlet: Loading cache for " +
pe.getName());
+
local.addLocalEntry((RegistryEntry)pe);
- }
+ }
+ System.out.println("Portlet: done Loading cache for " +
registryName);
+
}
}
catch (Throwable t)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]