cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Innes" <>
Subject RE: Portal Block - Profile Cacheing?
Date Mon, 29 Nov 2004 09:02:49 GMT

Thanks - this is just what I needed.  I don't need it to be
instantaneous, I just don't want to restart Tomcat as part of my
test/debug cycle, and your suggestion works fine.

Kind regards,

Matt Innes, UTB Consulting

-----Original Message-----
From: Nick Goupinets [] 
Sent: 25 November 2004 15:50
Subject: Re: Portal Block - Profile Cacheing?

Hi Matt,

I do not know if it will help, but I think that the profile is cached 
once for every successful log in. So normally, it should not be 
necessary to restart tomcat or reload cocoon just to get the latest 
profile available.

In case the changes to the profile were made while a user is still 
logged in, they should appear after the user logs out and logs in again.

If it's necessary to avoid this "re login" process, you can go directly 
to the PortalService and invalidate the cached profile (or a part of it)

by clearing up the corresponding profile attribute.

For example, in case portal layout needs to be reloaded, this will get 
it done:

PortalService service = (PortalService) 



Matt Innes wrote:
> Hi,
> I am building an intranet using Cocoon running in Tomcat
> on XP.  I have structured my project identically to the sample (with
> coplets, profiles, resources subdirectories).  I have noticed that
> Cocoon caches the profile files (portal.xml) by default i.e. you need
> restart Tomcat to pick up any changes to these files. Is there an easy
> way to switch this off? 
> Thanks,
> Matt
> Matt Innes, UTB Consulting
> 07795 300 735
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message