Re: [Asterisk-java-users] Concurrent access to ManagerConnectioninstance
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-04-16 17:22:10
|
We might need an example of your code to explain why it doesn't work. Also, the Live API does pretty much what you're describing, including the threading problems. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Maciek Tokarski Sent: Wednesday, April 16, 2008 11:38 AM To: ast...@li... Subject: [Asterisk-java-users] Concurrent access to ManagerConnectioninstance 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 |