Multi Threaded Trap Receiver using SNMP4J
The entry briefly touched upon creating a multithreaded Trap receiver using SNMP4J. This is based on example shipped with SNMP4J
Pre-requisite
SNMP4J
Log4j
Structure
For complete source have a look at the class org.snmp4j.test. MultiThreadedTrapReceiver.java shipped with SNMP4J distribution
Logical structure of the program
Create Socket for accepting Traps
Create a Thread pool to process PDU’s
Process the Traps
Let’s get into the code
Lets address [...]
