4.5.3 Using Threads for Asynchronous Behavior
You can use threads in Jolt to get asynchronous behavior that is
analogous to the tpacall()
function in Oracle Tuxedo.
With this capability, you do not need an asynchronous service
request function. You can get this functionality because Jolt is
thread-safe. For example, the Jolt client application can start one
thread that sends a request to an Oracle Tuxedo service function
and then immediately start another thread that sends another
request to an Oracle Tuxedo service function. So even though the
Jolt tpacall()
is synchronous, the application is
asynchronous because the two threads are running at the same
time.
Parent topic: Multithreaded Applications