[Asterisk-java-users] Concurrent access to ManagerConnection instance
Brought to you by:
srt
From: Maciek T. <mlo...@gm...> - 2008-04-16 16:15:53
|
Hey all, I'm trying to build multithread app. Architecture is as follows: -one main Thread, that does creation of ManagerConnection and login stuff -several "satellite" threads that should have access to previously initialized ManagerConnection object (they have to send some events to Asterisk box) ManagerConnection object is passed to "satellite" threads in constructor and reference to it is assigned to satellite-class member. When I'm trying to send event (I'm doing it in synchronized way) by eg. invoking sendEvent method- application totally hangs up (main thread and child threads). What is the reason and what can be solution. Regards, Maciek |