@@ -97,6 +97,7 @@ class ToolkitService
97
97
'sbmjobCommand ' => '' , // optional complete override of SBMJOB command when new toolkit job is submitted
98
98
'prestart ' => false ,
99
99
'stateless ' => false , // overriden by value in toolkit.ini if it is present (system section)
100
+ 'xmlstateless ' => true , // add new stateless flag for XML toolkit
100
101
'performance ' => false , // whether to enable performance collection (not fully implemented)
101
102
'idleTimeout ' => '' , // created for Compat. Wrapper (CW)
102
103
'cdata ' => true , // whether to ask XMLSERVICE to wrap its output in CDATA to protect reserved XML characters
@@ -225,7 +226,7 @@ protected function __construct($databaseNameOrResource, $userOrI5NamingFlag = '0
225
226
}
226
227
227
228
// Optional params. Don't specify if not given in INI.
228
- $ this ->getOptionalParams ('system ' , array ('stateless ' ,'v5r4 ' , 'ccsidBefore ' , 'ccsidAfter ' , 'useHex ' , 'paseCcsid ' , 'trace ' , 'dataStructureIntegrity ' , 'arrayIntegrity ' ));
229
+ $ this ->getOptionalParams ('system ' , array ('xmlstateless ' , ' stateless ' ,'v5r4 ' , 'ccsidBefore ' , 'ccsidAfter ' , 'useHex ' , 'paseCcsid ' , 'trace ' , 'dataStructureIntegrity ' , 'arrayIntegrity ' ));
229
230
$ this ->getOptionalParams ('transport ' , array ('httpTransportUrl ' , 'plugSize ' ));
230
231
231
232
// populate serviceParams with $transport, or get it from INI
@@ -1749,7 +1750,12 @@ public function getInternalKey()
1749
1750
*/
1750
1751
public function isStateless ()
1751
1752
{
1752
- return $ this ->getOption ('stateless ' );
1753
+ if ($ this ->getIsCw ()){
1754
+ return $ this ->getOption ('stateless ' );
1755
+ }
1756
+ else {
1757
+ return $ this ->getOption ('xmlstateless ' );
1758
+ }
1753
1759
}
1754
1760
1755
1761
/**
0 commit comments