Nick, 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 Matt Innes, UTB Consulting matt.innes<at>utbconsulting.com -----Original Message----- From: Nick Goupinets [mailto:[EMAIL PROTECTED] Sent: 25 November 2004 15:50 To: [EMAIL PROTECTED] 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) this.manager.lookup(PortalService.ROLE); service.removeAttribute("Layout:portal"); Sincerely, Nick. Matt Innes wrote: > Hi, > > I am building an intranet using Cocoon 2.1.5.1 running in Tomcat 5.0.28 > 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 to > 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 > [EMAIL PROTECTED] > 07795 300 735 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
