[SNMP4J] Snmp Async Thread Pool

Gibbons, Sean Sean.Gibbons at trueposition.com
Mon Jul 16 20:51:23 CEST 2007


Just to append to what I said earlier, since I noticed something.  If
you are using a multi threaded dispatcher, you have to pass the thread
pool as part of the constructor.  So I guess you are responsible for
cancelling it. 

I know you're not using the multi threaded dispatcher.  But my previous
statement was sorta wrong.  I still don't see where that thread pool is
coming from.  According to eclipse, a threadpool object is created in
the SNMP4j api only in the listen() method of the SnmpRequest class.  

If you are using eclipse or something, I'd run a query to see where the
threadpool object is being created in your code.  And make sure that
pool gets closed on exit.

-----Original Message-----
From: Smith, Ryan [mailto:rsmith at shsolutions.com] 
Sent: Monday, July 16, 2007 2:39 PM
To: Gibbons, Sean
Cc: snmp4j at agentpp.org
Subject: RE: [SNMP4J] Snmp Async Thread Pool

Sean,
Thanks for the heads up, that's good to know.  As far as I know though,
I'm not using MultiThreadedMessageDispatcher.  I just sent out my
example on the mailing list taken straight from the SNMP.html javadoc
example: http://www.snmp4j.org/doc/org/snmp4j/Snmp.html
With some slight modifications to get it to run.

Ill keep digging around, I wish this example was using the threadPool,
so I could call .shutdown() on it.

Thanks,
-Ryan

Confidentiality Notice
This e-mail (including any attachments) is intended only for the recipients named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please notify the sender of that fact and delete the e-mail from your system.





More information about the SNMP4J mailing list