Skip to Content
avatar image
Former Member

Separate iView runtime instance object for every user / iview Server cachin

Hello,

I implemented an iView but the stored data in the iView variables get overwritten with the values from another logged in portal user at another computer(!) when he also uses the iView!!!

EP 6.0 SP2

I tried to change in the portalapp.xml of the iView the values for CachingLevel & ValidityPeriod but no setting changed the behaviour (None, Shared, Session, User) 0, -1, etc.

<property name="CachingLevel" value="None"/>

<property name="ValidityPeriod" value="0"/>

I also changed these values Cache Level, Cache Validity in the iView properties via the Portal Content Administration with no success.

  1. I implemented the iView with the following lines

public class myiView extends AbstractPortalComponent implements ICachablePortalComponent {

  1. I save the internal data via +/- these lines

private MyDataObject myData = new MyDataObject();

myData.Firstname="aaaa"; // example line

How is it possible to create/config an iView to have a separate iView object instance for myiView at runtime for every user? (Is one instance of the iView created per user / per session, per browser?)

Do I need to use another component than e.g. ICachablePortalComponent, etc?

Thanks

juergen

PS I know the pdf document "Enhance Page Performance over the Network for SAP Enterprise Portal 6.0 SP2.pdf" but trying different settings did not help.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jul 23, 2004 at 10:48 AM

    Hi Jürgen,

    I think this is more a general problem, how class loading works in a servelt or in the portal dispatcher.

    It is not basically a caching problem.

    Maybe best is to read at sun the section about JSP/ beans and scopes and download and install PDK.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      Okay, to easier my question:

      How are iViews in general handled by the Portal when using ICachablePortalComponent?

      e.g.

      public class myiView extends AbstractPortalComponent implements ICachablePortalComponent {

      How is by default the instance creation of "myiView" shared/restricted on the portal-server to the users?

      - by all users

      - users session

      - users webbrowser instance

      - other

      How can this be changed?

      Thanks

      jürgen