[SNMP4J] Serializing a session

Frank Fock fock at agentpp.com
Wed Mar 23 20:30:22 CET 2005


Hi Kevin,

Are you thinking about a RMI-TransportMapping? A SNMP4J Snmp instance
cannot be serialized because the contained TransportMappings use local 
resources
like UDP or TCP ports. But you may implement a RMITransportMapping
that sends/receives SNMP messages across a RMI over TCP tunnel.
But I do not see why this could be advantageous 
<se?lp=ende&p=/Mn4k.&search=advantageous>?

Best regards,
Frank

Kevin J. Schmidt wrote:

>I've written an application which sends SNMP notifications and traps.
>I have created various unit tests (via JUnit) which create mock SNMP
>listeners (using SNMP4j)  to wait for traps to come in from my
>application code.
>
>Instead of having one or more receivers sitting on a port (both sender
>and receiver are on the same box), can I some how serialize the Snmp
>session from the sender and hand it off (via synchronization and
>shared data struct) to the receiver and let it "replay" the serialized
>object?
>
>Thanks,
>  
>





More information about the SNMP4J mailing list