B
Bob Rivers
Hi,
I'm doing some experiences with JOESNMP. It's very good. Guided by the
examples I was able to build a listener that receives snmp traps. It's
working fine (when running through console).
So I decided to start it automatically, together with my web
application (that is running under tomcat).
I have a servlet that is executed when tomcat starts (using
<load-on-startup>). So I did a call to my new class.
The problem is that this class is actually a listener. When it starts,
it hangs the other procedures, including tomcat initilization.
I tryed to put it under a thread, but it also hangs as soon it starts
to listen for snmp traps.
How do I ran a listner without blocking other processes? I am looking
for a solution that should work both on linux and windows.
I don't know if I made myself understood. Sorry my poor english.
TIA,
Bob
I'm doing some experiences with JOESNMP. It's very good. Guided by the
examples I was able to build a listener that receives snmp traps. It's
working fine (when running through console).
So I decided to start it automatically, together with my web
application (that is running under tomcat).
I have a servlet that is executed when tomcat starts (using
<load-on-startup>). So I did a call to my new class.
The problem is that this class is actually a listener. When it starts,
it hangs the other procedures, including tomcat initilization.
I tryed to put it under a thread, but it also hangs as soon it starts
to listen for snmp traps.
How do I ran a listner without blocking other processes? I am looking
for a solution that should work both on linux and windows.
I don't know if I made myself understood. Sorry my poor english.
TIA,
Bob