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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a 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?



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.