Hello all,
I have the following programs using Asterisk-JAVA's ManagerAPI. I want to run 2 threads, along with the handling of the asterisk events. The code follows and the question, below the code.
SeamlessMobility.java (main class)
----------------------------------
------------------
SnmpThread.java (another class)
------------------
To run the SnmpThread
thread, I use snmp.start() in the run() method of the main class(SeamlessMobility.java). This also invokes the run() method of the snmp thread. But the events are not handled and they do not get displayed on the
java output console, unless I explicitly specify snmp.run() in the registerOnStart() method of the main class (shown in bold).
But since this is not the right way to go about it, can you plz guide me on how do I make the events get displayed on the console, and tell me kindly where I am going wrong?
I am a newbie to Java and thank all much in advance.
Regards,
Aparna