[SNMP4J] SNMPv3 problem
torm at torm.be
torm at torm.be
Tue Dec 27 10:03:20 CET 2005
Hello dear members of SNMP4j mailing list,
First, I want to wish you a merry Christmas, and a happy new year 2006.
Now, I come to see you because Ive a problem. Since 3 month now, Ive started
to make a SNMP Resources adapter (Specification JCA 1.5 (J2EE 1.4)). Ive
divided my work in 2 parts, first is the manager part (get/set/getnext,
getbulk/walk request), and the second part is the asynchronous receive of
trap/informs.
Im proud to say that the 2 part works!
but not together. I mean, the 2 parts
are using the same JVM, and the Ive a problem with SNMPv3 USM.
Ive seen that there is a static class, Security Model, witch seems to contains
USM data. My problem is that I cannot have 2 instance of this class in the same
JVM. When I deploy my listener, I created a security model, and then Im able to
retrieve trap and informs. But, when I make a new request, the security model of
the listener is override and Im not able to receive traps/informs.
Ive identify the problem, it seems that I havent the problem if I withdraw the
line SecurityModels.getInstance().addSecurityModel(usm);
But in this case, my listener has to be started or I get a null pointer when I
make a snmp.getUSM() (when I try to make a request)
Ive search many times, trying to find a solution, but Im desperate.
If anyone can help me, plz, dont keep the answer for you
Thx for the help.
GDE
More information about the SNMP4J
mailing list