[SNMP4J] Creation of Snmp and Target question

Kevin J. Schmidt kjschmidt at gmail.com
Thu Mar 17 15:19:17 CET 2005


I'm writing an application using SNMP4J which will simply be sending
notifications to one or more destinations. Is it alright to create the
Snmp session and Target objects once (cache them, let's say) and then
simply create a new PDU everytime I want to send a new trap (with new
variable bindings, of course) using the cached Snmp and Target
objects? Is there any problem with doing this or should a new Snmp
session and Target be created each time a trap needs to be sent?

Thanks,
-- 
Kevin J. Schmidt
<kjschmidt at gmail.com>



More information about the SNMP4J mailing list