Dear Team,
I try with below code to login agent
jtapiPeer = JtapiPeerFactory.getJtapiPeer(isNull(data.getPeer()) ? null : data.getPeer());
provider = jtapiPeer.getProvider(providerString);
terminal = provider.getTerminal(stationId);
terminal.addCallListener(listener);
after execution of above code. App created below threads. when next agent login, again 5 threads got created.
Daemon Thread [GetEventThread] (Running)
Daemon Thread [ShutdownThread] (Running)
Daemon Thread [DistributeCSTAEvent] (Running)
Daemon Thread [AuditThread] (Running)
Daemon Thread [TsapiProReader] (Running)
when i do the log-off properly with below code. The above 5 threads got closed. but the agent accidently closed the browser or vpn disconnect or shut down the machine (with out log-out) then How can i close these threads. please help me on this issue.
//log-out
provider.getTerminal(stationId).getCallListeners()
terminal.removeCallListener(callListener[i]);
provider.shutdown();
one more final question
How can i close all connection? ( why i am asking is 12 hours one I will clean up atleast)
|