AW: [SNMP4J] SNMP4J on an application server like tomcat or jboss

Georg Ungerböck ungerboeck at ycn.com
Sun Jan 20 13:39:19 CET 2008


Hello Frank,

thanks for your anwser.

I just got it working on a JBOSS app server. It works exactly as you
described: I use a single SNMP instance and transportmapping in a
TimerService-Bean. The SNMP instance is created when the timer event occurs,
various SNMP requests / responses are sent and received, the SNMP instance
is destroyed just before the TimerService ends.

But I have another question, when using one SNMP instance for multiple sends
/ receives:
Now I use snmp.start() and snmp.stop() for every request / response which is
sent (this consumes a lot of resources). Is it possible to use the listener
thread for multiple messages to different target devices?

Best regards,
Georg

-----Ursprüngliche Nachricht-----
Von: Frank Fock [mailto:fock at agentpp.com] 
Gesendet: Sonntag, 20. Jänner 2008 13:10
An: Georg Ungerböck
Cc: snmp4j at agentpp.org
Betreff: Re: [SNMP4J] SNMP4J on an application server like tomcat or jboss

Hello Georg,

The next release of SNMP4J (1.9 RC3/final) will support
custom thread factories compatible with the J2EE
WorkerManager.

Although the current release creates its own thread
it works very well in a J2EE environment as long as
a single Snmp instance and a defined number of transport
mappings are used. Then the created threads are constant
and do not interfere with the agents resource management.

Hope this helps.

Best regards,
Frank


Georg Ungerböck wrote:
> Hello,
> 
> I am looking for information if it is possible to use the SNMP4j library
in
> an environment with an application server like tomcat or jboss.
> 
> Additionally threads (like the server thread of the SNMP4j to receive
> incoming SNMP messages) on such environments may cause problems.
> 
> Does anybody know if this will work?
> 
> Thanks,
> Georg
> 
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list