There is nothing special or different about QTEMP when used in a CGI thread. It's unique to the thread/job so nothing else can touch objects in there other than that thread. Obviously you cannot rely on storing a value in QTEMP on one request and retrieving it in another request because (unless you use persistent CGI) each request can go to a different thread (with a different instance of QTEMP).


[https://www.netcracker.com/assets/img/netcracker-social-final.png] ƕ
On 4 Mar 2017, at 05:58, Richard Schoen <Richard.Schoen@xxxxxxxxxxxxxxx> wrote:

We have an interesting scenario where a CGI job is using a data area in QTEMP for a temp value in a web app and there appears to be a random issue where that value gets clobbered by another job. (At least that's what we think is happening.)

My understanding is that each CGI call is synchronous and each thread/program active job instance has its own copy of QTEMP library so one call on a particular CGI job thread would have to complete before it can be re-used by another call. Or if there is only 1 CGI thread/job subsequent calls will block until the executing call has completed.

Is my understanding of this correct ?

Would there be any way for two CGI calls at the same time to overlap the QTEMP libs ?

Hope this makes sense.

Any thoughts appreciated.

Thanks.

Regards,

[http://static.helpsystems.com/hs/email/templates/signatures-final/images/hs-logo2.png]

Richard Schoen
Director of Document Management

e. richard.schoen@xxxxxxxxxxxxxxx<mailto:richard.schoen@xxxxxxxxxxxxxxx>
p. 952.486.6802
w. helpsystems.com<http://www.helpsystems.com/>
[cid:image002.jpg@01D1A545.4C2BF250]<http://www.linkedin.com/in/richardschoen>[cid:image003.jpg@01D1A545.4C2BF250]<http://www.twitter.com/richardschoen>




--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




________________________________
The information transmitted herein is intended only for the person or entity to which it is addressed and may contain confidential, proprietary and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.