You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Meik Arends <me...@ffm.she.net> on 2001/12/18 08:17:45 UTC

Update portlets.xreg

Is there a possibility to refresh the portlets.xreg without waiting some
time until the RegistryWatcher does it ? I'm changing the xregs
with another application and after that, changes must be visible
immediately.

Regards

Meik




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Update portlets.xreg

Posted by Frans Thamura <ft...@yahoo.com>.
It will be refreshed in 1-2 minutes..

You can play arround it it,

try add new portlet tag there.. and see what going on..

or for easy, please cut and paste the portlet from portlet.xreg to
local-portlet.xreg..

and try to modify the local-portlet.xreg there..


Frans


----- Original Message -----
From: "Paul Spencer" <pa...@apache.org>
To: "Jetspeed Users List" <je...@jakarta.apache.org>
Sent: Wednesday, December 26, 2001 11:16 PM
Subject: Re: Update portlets.xreg


> Mark,
>  From
>
http://jakarta.apache.org/jetspeed/site/config_guide.html#Define%20portlets%
20in%20local-portlets
>    Any site specific portlets should be define in
>    <jetspeed_home>/WEB-INF/conf/local-portlets.xreg. because this file
>    will not be overwritten by upgrades.
>
> Paul Spencer
>
> Mark Orciuch wrote:
>
> > Frans,
> >
> > Could you be a little more specific in your suggestion. I've been also
> > trying to understand how the concept of "local-portlets.xreg" works and
> > every bit of information would be helpful. Thanks!
> >
> >
> > Best regards,
> >
> > Mark C. Orciuch
> > Next Generation Solutions, Ltd.
> > Voice: 219-365-0691
> > e-Mail: mark_orciuch@ngsltd.com
> > web: http://www.ngsltd.com
> >
> >
> > -----Original Message-----
> > From: Frans Thamura [mailto:fth4mura@yahoo.com]
> > Sent: Friday, December 21, 2001 7:07 PM
> > To: Jetspeed Users List
> > Subject: Re: Update portlets.xreg
> >
> >
> > try local-portlet.xreg
> >
> >
> > ----- Original Message -----
> > From: "Meik Arends" <me...@ffm.she.net>
> > To: <je...@jakarta.apache.org>
> > Sent: Tuesday, December 18, 2001 2:17 PM
> > Subject: Update portlets.xreg
> >
> >
> >
> >>Is there a possibility to refresh the portlets.xreg without waiting some
> >>time until the RegistryWatcher does it ? I'm changing the xregs
> >>with another application and after that, changes must be visible
> >>immediately.
> >>
> >>Regards
> >>
> >>Meik
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> > <ma...@jakarta.apache.org>
> >
> >>For additional commands, e-mail:
> >>
> > <ma...@jakarta.apache.org>
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Update portlets.xreg

Posted by Mark Orciuch <ma...@ngsltd.com>.
Paul,

I am aware of this. However, in reality, this does not appear to work as
advertised. Through my trials and errors, I uncovered some problems with
usage of local-portlets.xreg (see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5091). I've worked with
Chris (Kimpton) on this but we got hung up on how this functionality was
intended to work (I believe that he was waiting for some clarification from
Raphael). I know that this is not a high priority item but it's documented
in Bugzilla for whenever someone decides to pick it back up.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
Voice: 219-365-0691
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com

-----Original Message-----
From: Paul Spencer [mailto:paulsp@apache.org]
Sent: Wednesday, December 26, 2001 8:16 AM
To: Jetspeed Users List
Subject: Re: Update portlets.xreg


Mark,
 From
http://jakarta.apache.org/jetspeed/site/config_guide.html#Define%20portlets%
20in%20local-portlets
   Any site specific portlets should be define in
   <jetspeed_home>/WEB-INF/conf/local-portlets.xreg. because this file
   will not be overwritten by upgrades.

Paul Spencer

Mark Orciuch wrote:

> Frans,
>
> Could you be a little more specific in your suggestion. I've been also
> trying to understand how the concept of "local-portlets.xreg" works and
> every bit of information would be helpful. Thanks!
>
>
> Best regards,
>
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> Voice: 219-365-0691
> e-Mail: mark_orciuch@ngsltd.com
> web: http://www.ngsltd.com
>
>
> -----Original Message-----
> From: Frans Thamura [mailto:fth4mura@yahoo.com]
> Sent: Friday, December 21, 2001 7:07 PM
> To: Jetspeed Users List
> Subject: Re: Update portlets.xreg
>
>
> try local-portlet.xreg
>
>
> ----- Original Message -----
> From: "Meik Arends" <me...@ffm.she.net>
> To: <je...@jakarta.apache.org>
> Sent: Tuesday, December 18, 2001 2:17 PM
> Subject: Update portlets.xreg
>
>
>
>>Is there a possibility to refresh the portlets.xreg without waiting some
>>time until the RegistryWatcher does it ? I'm changing the xregs
>>with another application and after that, changes must be visible
>>immediately.
>>
>>Regards
>>
>>Meik
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
> <ma...@jakarta.apache.org>
>
>>For additional commands, e-mail:
>>
> <ma...@jakarta.apache.org>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Update portlets.xreg

Posted by Paul Spencer <pa...@apache.org>.
Mark,
 From 
http://jakarta.apache.org/jetspeed/site/config_guide.html#Define%20portlets%20in%20local-portlets
   Any site specific portlets should be define in
   <jetspeed_home>/WEB-INF/conf/local-portlets.xreg. because this file
   will not be overwritten by upgrades.

Paul Spencer

Mark Orciuch wrote:

> Frans,
> 
> Could you be a little more specific in your suggestion. I've been also
> trying to understand how the concept of "local-portlets.xreg" works and
> every bit of information would be helpful. Thanks!
> 
> 
> Best regards,
> 
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> Voice: 219-365-0691
> e-Mail: mark_orciuch@ngsltd.com
> web: http://www.ngsltd.com
> 
> 
> -----Original Message-----
> From: Frans Thamura [mailto:fth4mura@yahoo.com]
> Sent: Friday, December 21, 2001 7:07 PM
> To: Jetspeed Users List
> Subject: Re: Update portlets.xreg
> 
> 
> try local-portlet.xreg
> 
> 
> ----- Original Message -----
> From: "Meik Arends" <me...@ffm.she.net>
> To: <je...@jakarta.apache.org>
> Sent: Tuesday, December 18, 2001 2:17 PM
> Subject: Update portlets.xreg
> 
> 
> 
>>Is there a possibility to refresh the portlets.xreg without waiting some
>>time until the RegistryWatcher does it ? I'm changing the xregs
>>with another application and after that, changes must be visible
>>immediately.
>>
>>Regards
>>
>>Meik
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
> <ma...@jakarta.apache.org>
> 
>>For additional commands, e-mail:
>>
> <ma...@jakarta.apache.org>
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Update portlets.xreg

Posted by Mark Orciuch <ma...@ngsltd.com>.
Frans,

Could you be a little more specific in your suggestion. I've been also
trying to understand how the concept of "local-portlets.xreg" works and
every bit of information would be helpful. Thanks!


Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
Voice: 219-365-0691
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


-----Original Message-----
From: Frans Thamura [mailto:fth4mura@yahoo.com]
Sent: Friday, December 21, 2001 7:07 PM
To: Jetspeed Users List
Subject: Re: Update portlets.xreg


try local-portlet.xreg


----- Original Message -----
From: "Meik Arends" <me...@ffm.she.net>
To: <je...@jakarta.apache.org>
Sent: Tuesday, December 18, 2001 2:17 PM
Subject: Update portlets.xreg


> Is there a possibility to refresh the portlets.xreg without waiting some
> time until the RegistryWatcher does it ? I'm changing the xregs
> with another application and after that, changes must be visible
> immediately.
>
> Regards
>
> Meik
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Update portlets.xreg

Posted by Frans Thamura <ft...@yahoo.com>.
try local-portlet.xreg


----- Original Message -----
From: "Meik Arends" <me...@ffm.she.net>
To: <je...@jakarta.apache.org>
Sent: Tuesday, December 18, 2001 2:17 PM
Subject: Update portlets.xreg


> Is there a possibility to refresh the portlets.xreg without waiting some
> time until the RegistryWatcher does it ? I'm changing the xregs
> with another application and after that, changes must be visible
> immediately.
>
> Regards
>
> Meik
>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Update portlets.xreg

Posted by Paul Spencer <pa...@apache.org>.
Meik,
Currently the registry is file based.  On Windows the timestamp on the 
file has a one minute granularity.  Thus, if you change the file in the 
first 10 seconds of the minute and Jetspeed reads it, then any 
additional changes in during the same minute will not update the 
timestamp of the file and Jetspeed will not re-read the file.  Also 
Jetspeed will write the .xreg files at shutdown using the entries it has 
  in memory.  If you make a change that is not read by Jetspeed BEFORE 
shutdown, then the change will be overwritten at shutdown.

The parameter "services.Registry.refreshRate" in JR.p that controls the 
refresh rate. Since Jetspeed uses the timestamp of the file to determine 
if the file has change, any setting below the granularity of the 
timestamp just wastes resources.

Their have been some requests to allow direct population of the 
registry, but I have not seen an implementation.

Paul Spencer


Meik Arends wrote:

> Is there a possibility to refresh the portlets.xreg without waiting some
> time until the RegistryWatcher does it ? I'm changing the xregs
> with another application and after that, changes must be visible
> immediately.
> 
> Regards
> 
> Meik
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: 
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Update portlets.xreg

Posted by Mark Orciuch <ma...@ngsltd.com>.
The patch for addEntry method is available here:

http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=830

As far as the remove problem is concerned, when I remove a portlet registry
entry, am I not removing it from registry stored in memory? I can actually
query the registry immediately after removal and entry is not there.
However, when I restart, it comes back. It's been a while since I played
with this. When I get some time, I'll try to verify whether the workaround I
suggested even works. If you do it sooner, I wouldn't mind knowing the
result.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
Voice: 219-365-0691
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


-----Original Message-----
From: Meik Arends [mailto:meik@arends.info]
Sent: Tuesday, December 18, 2001 8:36 AM
To: Jetspeed Users List
Subject: Re: Update portlets.xreg


Mark Orciuch wrote:

>Meik,
>
>Be aware of some outstanding problems with the current
CastorRegistryService
>when registry is changed programatically. I also have an application which
>manipulates portlet registry entries at runtime. It was orignally developed
>using 1.3a1 code but when ported to 1.3a2, I started experiencing some
>problems. One of the problems has to do with adding new entries (see
>Bugzilla Bug 5091). I sumbitted a patch but the fix seems to be a lower
>priority right now. Another problem that I ran into has to do with removing
>registry entries - they seem to mysteriously come back after the portal is
>restarted.
>
OK. I'm not alone :-) Can you send me your patch ?
I think your other problem is related to the things Paul Spencer
explains in his reply to my question.
 He said:

"Also Jetspeed will write the .xreg files at shutdown using the entries
it has  in memory.  If you make a change that is not read by Jetspeed
BEFORE shutdown, then the change will be overwritten at shutdown. "

>I have inquired about registry refresh capability as well. If I remember
>correctly, calling existing refresh method will make any programatic
changes
>disappear. Quick workaround to your problem would be to work with specific
>fragments and explicitly call saveFragment and then refresh immediately.
>However, this approach is not recommened by Raphael Luta since the
>implementation may change and could become database-based.
>
I have to try it, because there is no time to wait for DB-support ;-)

>
>
>I'd like to get involved in getting these problems or shortcomings resolved
>but there's a lot of questions I have about how this stuff is intended to
>work.
>
>Hope this is related to your issue. Otherwise, kindly disregard it.
>
>Best regards,
>
Regards

Meik

--
----------------------------------------------------------------
			  Meik Arends
                        meik@arends.info
     WAP-Mail: wap@arends.info ( für wirklich dringendes ;-)
 		         ICQ: 42486557
----------------------------------------------------------------




--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Update portlets.xreg

Posted by Meik Arends <me...@arends.info>.
Mark Orciuch wrote:

>Meik,
>
>Be aware of some outstanding problems with the current CastorRegistryService
>when registry is changed programatically. I also have an application which
>manipulates portlet registry entries at runtime. It was orignally developed
>using 1.3a1 code but when ported to 1.3a2, I started experiencing some
>problems. One of the problems has to do with adding new entries (see
>Bugzilla Bug 5091). I sumbitted a patch but the fix seems to be a lower
>priority right now. Another problem that I ran into has to do with removing
>registry entries - they seem to mysteriously come back after the portal is
>restarted.
>
OK. I'm not alone :-) Can you send me your patch ?
I think your other problem is related to the things Paul Spencer 
explains in his reply to my question.
 He said:

"Also Jetspeed will write the .xreg files at shutdown using the entries 
it has  in memory.  If you make a change that is not read by Jetspeed 
BEFORE shutdown, then the change will be overwritten at shutdown. "

>I have inquired about registry refresh capability as well. If I remember
>correctly, calling existing refresh method will make any programatic changes
>disappear. Quick workaround to your problem would be to work with specific
>fragments and explicitly call saveFragment and then refresh immediately.
>However, this approach is not recommened by Raphael Luta since the
>implementation may change and could become database-based.
>
I have to try it, because there is no time to wait for DB-support ;-)

>
>
>I'd like to get involved in getting these problems or shortcomings resolved
>but there's a lot of questions I have about how this stuff is intended to
>work.
>
>Hope this is related to your issue. Otherwise, kindly disregard it.
>
>Best regards,
>
Regards

Meik

-- 
----------------------------------------------------------------
			  Meik Arends  	  
                        meik@arends.info
     WAP-Mail: wap@arends.info ( für wirklich dringendes ;-)
 		         ICQ: 42486557
----------------------------------------------------------------




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Automatic content refresh (FileServerPortlet and WebPagePortlet)

Posted by Mark Orciuch <ma...@ngsltd.com>.
If FileServerPortlet is extending the FileWatchPortlet, then shouldn't it
also support the automatic content refresh when the underlying URL changes?
Was the original intention to have another portlet which would support file
watching capability? What about the WebPagePortlet - it is also extending
FileWatchPortlet yet it does not refresh itself when the underlying URL
changes.

I was able to pinpoint why FileServerPorlet does not refresh itself when
changed (I can provide a patch if it's appropriate). However, for the life
of me, I cannot figure out how to make WebPagePortlet work that way. I
understand that local URLs are treated differently than remote ones and that
remote URLs are refreshed at predefined intervals by the DiskCacheDaemon.
Could someone please comment on whether my observations are correct? Thanks!


Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
Voice: 219-365-0691
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Update portlets.xreg

Posted by Mark Orciuch <ma...@ngsltd.com>.
Meik,

Be aware of some outstanding problems with the current CastorRegistryService
when registry is changed programatically. I also have an application which
manipulates portlet registry entries at runtime. It was orignally developed
using 1.3a1 code but when ported to 1.3a2, I started experiencing some
problems. One of the problems has to do with adding new entries (see
Bugzilla Bug 5091). I sumbitted a patch but the fix seems to be a lower
priority right now. Another problem that I ran into has to do with removing
registry entries - they seem to mysteriously come back after the portal is
restarted.

I have inquired about registry refresh capability as well. If I remember
correctly, calling existing refresh method will make any programatic changes
disappear. Quick workaround to your problem would be to work with specific
fragments and explicitly call saveFragment and then refresh immediately.
However, this approach is not recommened by Raphael Luta since the
implementation may change and could become database-based.

I'd like to get involved in getting these problems or shortcomings resolved
but there's a lot of questions I have about how this stuff is intended to
work.

Hope this is related to your issue. Otherwise, kindly disregard it.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
Voice: 219-365-0691
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


-----Original Message-----
From: Meik Arends [mailto:meik.arends@ffm.she.net]
Sent: Monday, December 17, 2001 11:18 PM
To: jetspeed-user@jakarta.apache.org
Subject: Update portlets.xreg


Is there a possibility to refresh the portlets.xreg without waiting some
time until the RegistryWatcher does it ? I'm changing the xregs
with another application and after that, changes must be visible
immediately.

Regards

Meik




--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>