[Asterisk-java-users] Who is firing the propertyChange?
Brought to you by:
srt
From: CHUCK S. <CSY...@DU...> - 2007-07-19 12:05:08
|
I am sorry this may be a simple questions but I am stuggling to figure it = out. I have a multi threaded app that is using the live classes. It = makes new calls and then monitors thier progress towards completion. The = problem is when the propertyChange event fires how can I identify which = channel or for example which Channel the ChannelState "propertyChange" is = refering too? Below is a piece of code to show what I am talking about. = =20 Thanks again, this list has been very helpful! Each thread that runs has this method, but it seems that the events for = all calls broadcast to all propertyChange functions. public void propertyChange(PropertyChangeEvent propertyChangeEvent)= { try { if ( propertyChangeEvent.getNewValue() instanceof = ChannelState ) { ChannelState c =3D (ChannelState)(propertyC= hangeEvent.getNewValue()); handleStateChange( c ); } =09 } catch( Exception e ) { lg( e.getMessage() ); e.printStackTrace() ; } } Thanks, Chuck Syperski |