Re: [SNMP4J] SNMP4J Correct Multi-thread Design for use it (under Linux) ?

2016-09-26 Thread TESSALONIKOS, THIERRY
Hi Franck, Think you for your help. Yes my factory method is not thread safe, but in my implementation, only the main create one instance of the singleton, and the threads call the static method getSnmp() that return the only one instance of snmp class. But, yes, I can add synchronized for the

Re: [SNMP4J] SNMP4J Correct Multi-thread Design for use it (under Linux) ?

2016-09-24 Thread Frank Fock
Hi Thierry, Your singleton factory method is NOT thread safe. This could create issues and need to be fixed. Anything else does not seem to be a real issue with SNMP. The notInTimeWindow report is normal when two SNMPv3 entities exchange messages for the first time (the time needs to be synchron

[SNMP4J] SNMP4J Correct Multi-thread Design for use it (under Linux) ?

2016-09-23 Thread TESSALONIKOS, THIERRY
Hi, I need to use SNMP4J API in multi-threading design, because I must send 2 snmp set in parallel toward 2 Network Elements for sending them a parameters... So, I have a main thread that initialize the SNMP4J API, with a singleton like this : public class SNMP4JInitialize implements SNMPEngi