Topic
  • 2 replies
  • Latest Post - ‏2012-11-21T16:57:04Z by SystemAdmin
SystemAdmin
SystemAdmin
9029 Posts

Pinned topic Profileset modification in a cluster

‏2012-11-19T16:58:20Z |
All,

We have a portlet, in which some variables are profiled. What we want to do is to set these profile values at runtime via API. This is similar to the "Configure/Edit shared settings" feature that portal provides, but due to some constraints, we are having to implement this functionality inside the portlet.
Our environment is clustered with multiple nodes. If I update the profileset at runtime, will it be reflected across nodes?
Thanks.

Regards,
Sameer
Updated on 2012-11-21T16:57:04Z at 2012-11-21T16:57:04Z by SystemAdmin
  • mburati
    mburati
    2568 Posts

    Re: Profileset modification in a cluster

    ‏2012-11-19T21:22:39Z  
    When you expose a profile set for use with Portal's edit/configure modes, it then uses the portal's support for portlet preferences set in one of those modes, and the portal manages those preferences for you. The original profile set in the WAR is just a file in the WAR, so no it won't be reflected across nodes on different servers if you update one of them.

    If you must set profile values within a portlet itself to customize the portlet (instead of in one of the portlet modes made for that use), then you may want to look into the Web Experience Factory's custom value handler support for profile values (eg, to build one to read profile set value settings out of a DB during regen).

    Here are a couple of WEF product documentation pages on profile selection value handlers:
    http://www.lotus.com/ldd/pfwiki.nsf/xpDocViewer.xsp?lookupName=Web+Experience+Factory+8+Documentation#action=openDocument&res_title=Specifying_a_value_setter_for_the_profile_set_wef8&content=pdcontent

    http://www.lotus.com/ldd/pfwiki.nsf/xpDocViewer.xsp?lookupName=Web+Experience+Factory+8+Documentation#action=openDocument&res_title=Example_custom_value_class_implementation_wef8&content=pdcontent

    I hope that info helps,
    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
  • SystemAdmin
    SystemAdmin
    9029 Posts

    Re: Profileset modification in a cluster

    ‏2012-11-21T16:57:04Z  
    • mburati
    • ‏2012-11-19T21:22:39Z
    When you expose a profile set for use with Portal's edit/configure modes, it then uses the portal's support for portlet preferences set in one of those modes, and the portal manages those preferences for you. The original profile set in the WAR is just a file in the WAR, so no it won't be reflected across nodes on different servers if you update one of them.

    If you must set profile values within a portlet itself to customize the portlet (instead of in one of the portlet modes made for that use), then you may want to look into the Web Experience Factory's custom value handler support for profile values (eg, to build one to read profile set value settings out of a DB during regen).

    Here are a couple of WEF product documentation pages on profile selection value handlers:
    http://www.lotus.com/ldd/pfwiki.nsf/xpDocViewer.xsp?lookupName=Web+Experience+Factory+8+Documentation#action=openDocument&res_title=Specifying_a_value_setter_for_the_profile_set_wef8&content=pdcontent

    http://www.lotus.com/ldd/pfwiki.nsf/xpDocViewer.xsp?lookupName=Web+Experience+Factory+8+Documentation#action=openDocument&res_title=Example_custom_value_class_implementation_wef8&content=pdcontent

    I hope that info helps,
    ..Mike Burati
    http://www-10.lotus.com/ldd/pfwiki.nsf/
    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM.
    Mike,

    Thanks for the information. Using the custom value setter seems to be a feasible solution, as we can read the values from a centralized DB. I was just curious as to how Portal handles the preferences across nodes.

    Regards,
    Sameer