Rod Anderson
Member
OE 11.6 SP1
Redhat Linux
I'm beginning a project to port client server code to be used on the Pacific App Server to support web services. The programs make heavy use of everything "shared". There are over 50 shared variables and multiple shared temp tables. I would prefer to migrate most of it to OO classes and was considering creating a singleton class to house all the formal shared variables.
My question is when a request is made and returned via PAS will the class be considered out of scope and destroyed or will the values still be sitting there when a second request is made and potentially creating a data collision? Maybe the better question should be is there a better approach to removing that many shared variables (i.e. passing as a temp table/PDS by reference)?
Thanks in advance,
Rod
Redhat Linux
I'm beginning a project to port client server code to be used on the Pacific App Server to support web services. The programs make heavy use of everything "shared". There are over 50 shared variables and multiple shared temp tables. I would prefer to migrate most of it to OO classes and was considering creating a singleton class to house all the formal shared variables.
My question is when a request is made and returned via PAS will the class be considered out of scope and destroyed or will the values still be sitting there when a second request is made and potentially creating a data collision? Maybe the better question should be is there a better approach to removing that many shared variables (i.e. passing as a temp table/PDS by reference)?
Thanks in advance,
Rod