Giter Site home page Giter Site logo

State full XMLSERVICE calls about python-itoolkit HOT 3 CLOSED

ibm avatar ibm commented on May 30, 2024
State full XMLSERVICE calls

from python-itoolkit.

Comments (3)

kadler avatar kadler commented on May 30, 2024

Yes, using the ipc and ctl keywords, it is possible to run stateful. This is the same regardless of the transport. Running stateful is quite an advanced technique and requires quite a deal of understanding about how XMLSERVICE works. When you use ctl='*here', XMLSERVICE runs your requested actions from the job in which you called XMLSERVICE (for idb2call, this is a QSQSRVR job). When you use ctl='*sbmjob', XMLSERVICE submits a new job and associates that with the ipc key specified. That job stays running until explicitly shut down (I think you can set a timeout somehow).

Running stateful and calling CL commands won't be of any use however, due to the way XMLSERVICE calls CL commands. It does so by calling through the PASE system command, which means a new job is spawned to call the CL command, regardless of statefulness.

from python-itoolkit.

deliego avatar deliego commented on May 30, 2024

Ohh i'm learning :-). Thanks for the prompt input, much appreciated!

from python-itoolkit.

kadler avatar kadler commented on May 30, 2024

Also, as long as you keep the database connection open, you can make repeated calls to XMLSERVICE through it using ctl='*here' and everything should be stateful. You only need stateful XMLSERVICE when you use the REST transport or when you're using it from a web application and need statefulness across multiple requests.

from python-itoolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.