java.lang.IllegalStateException: No mvsCallbackThread active - callback can be set
My mistake, I guess -- started the application not via the batch launcher but from a shell script. But, shouldn't the error message read "callback cannot be set"?
Just to verify -- is it true that the callback thread can only be established when using the batch launcher? Or should it also work when running the app from USS? (If so, I must have done something else wrong.)
More generally, is batch launcher code ever invoked from the JVM, or only code that resides in shared libraries?
The batch launcher establishes the mvs console interaction thread when it initializes, shortly after it constructs the JVM. If you run with trace level logging (LOGLVL='+T') you'll see the call from the launcher to the JVM.
Tried that before but this causes an abend & LE dump when I am running under the batch launcher (see one of my previous posts), so, stuck betweeen a rock and a hard place...
Doesn't matter anyway since this was only a quick test, and I'll use the batch laucher from now on.