portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luta, Raphael (VUN)" <Raphael.L...@groupvu.Com>
Subject RE: Is there a way to make jetspeed aware of changes in the xreg filesa bit faster?
Date Tue, 03 Jun 2003 15:21:28 GMT

De : Stuart Belden [mailto:SBelden@bjc.org]
> 
> 2.  You can set the services.Registry.refreshRate in 
> JR.properties, which sets the xreg refresh rate in seconds.  
> AFAIK there is no way to say "OK, refresh xreg files right... NOW."
> 

Yes there is, but since this is implementation specific (ie it doesn't
work if your Registry is SQL based), you need to cast the service
to the org.apache.jetspeed.services.registry.FileRegistry interface:

RegistryService regService = (RegistryService)TurbineServices
                             .getInstance()
                             .getService(RegistryService.SERVICE_NAME);

if (regService instanceof FileRegistry)
{
	(FileRegistry)regService.refresh();
}

--
Raphaƫl Luta - raphael@apache.org
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/

**********************************************
Vivendi Universal - HTTP://www.vivendiUniversal.com: 
The information transmitted is intended only for the person or entity
to which it is addressed and may contain confidential and/or privileged
material of Vivendi Universal which is for the exclusive use of the
individual designated above as the recipient. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon, 
this information by persons or entities other than the intended recipient 
is prohibited. If you received this in error, please contact immediately 
the sender by returning e-mail and delete the material from any computer. 
If you are not the specified recipient, you are hereby notified that all 
disclosure, reproduction, distribution or action taken on the basis of this 
message is prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message