I created a simple application:
public class Application {
public static void main(String[] args) {
IDXAuthenticationWrapper idxWrapper = new IDXAuthenticationWrapper();
AuthenticationResponse response = idxWrapper.begin();
}
}
The main method exits right exits as expected, but the JVM does not consistently stop due to something in OK HTTP. Switching to HTTP client resolves this problem.
Possibly we need to add a listener to the JVM to clean up the thread pool (or whatever thread is active)