Skip to Content
author's profile photo Former Member
Former Member

Are iViews Thread Safe?

This might seem like a strange question, but I cannot remember ever seeing a description of this. For example if I write a JSPDynPage component is the doProcessBeforeOutput method thread safe? Is one instance of the JSPDynPage created per user / per session, could multiple threads attempt to execute the code within that method at the same time? Therefore I would have to synchronize any code that I want to be thread safe. Also, I have the same question about using JCo Client Pool entries, do I have to syncronize code on the poolentry object?

Thanks in advance,


p.s. I have also posted this question on iViewStudio.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Oct 29, 2003 at 01:53 PM

    Hi Simon,

    "JSPDynPage component is the doProcessBeforeOutput method thread safe"

    No it is not. But this should not be a problem, because it is an object method and has an instance of its own for each requests. If you want ot use static objects here you have to synchronize.

    JCo Client Pool entries:

    Definetely not threadsafe. Thats why you should JCOclientservice in EP50 (ill put a tutorial about this on SDN, in iviewstudio is already one) or SAP Connector Framework in EP60.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Oliver,

      Simon's question about DynPages is something I've also been wondering about for a while.

      I'm probably missing something obvious - but if a new DynPage object is created for each request, how can it be multi-threaded and not threadsafe? In what situation would multiple concurrent threads execute it's methods?

      Or are you just warning that if any static attributes are placed in a DynPage-derived class these would need synchronised access?