[Asterisk-java-devel] ServiceLevelTimer problem
Brought to you by:
srt
From: Videanu A. <vid...@ya...> - 2012-10-11 05:17:22
|
Hi all, I develop a application using asteriskJava, running on glassfish and i encountered some issues related to the number of threads opened every time i connect to asterisk server. So, my setup is as follows: 1. i connect to the asterisk server using the live class AsteriskServer asteriskServer = new DefaultAsteriskServer(user,pass....) 2. after the connection is done I observed a number of threads equal to the number of my queues (from asterisk) opened, with names like ServiceLevelTimer-QueueName I thought that when i access asteriskServer.shutdown() these threads will be closed automatically, but this is not happening. Is this the expected behavior or this a bug ? I have to mention that i do not have any class that implements AsteriskQueueListener. PS. my situation is even more complicated because i perform a lot of connect/disconnect cycles and i end up with a lot of threads with status waiting. Regards, Adrian Videanu |