[snmp] Context Listeners and Enterprise Beans

Andrew Chandler andy at riftware.com
Wed Mar 5 12:57:01 GMT 2008


Sounds like that is exactly what they needed to know! Thanks as always
Birgit. 

-----Original Message-----
From: snmp-bounces at snmp.westhawk.co.uk
[mailto:snmp-bounces at snmp.westhawk.co.uk] On Behalf Of Birgit Arkesteijn
Sent: Wednesday, March 05, 2008 12:06 PM
To: List for discussion of the Westhawk SNMP stack
Cc: Andrew Maxwell
Subject: Re: [snmp] Context Listeners and Enterprise Beans

Hi Andy,

I assume they add the trap listener to the context?

So:
SnmpContextX context = new SnmpContextX(..); context.addTrapListener(this,
ListeningContextPool.DEFAULT_TRAP_PORT);

They should call:
context.removeTrapListener(this, ListeningContextPool.DEFAULT_TRAP_PORT);

Port 162 will remain open as long as there is a single listener.
In order to remove all listeners, use
ListeningContextPool.destroyPool()

There was a bug in earlier versions with the listener object.
Version 4.14 solved:
- Destroying a context no longer creates a listener object that listens for
incoming traps (or PDUs in general).

We haven't had report of new bugs regarding to the ListenerContext(Pool).

Hope the above helps.

Cheers, Birgit


On 05/03/08 17:05, Andrew Chandler wrote:
> Hi folks - one of our other development groups has had to create a trap
> listener which is a part of the stack I haven't really used much.    What
> they have run into is that the trap listener is in the J2EE Bean and when
> they go to redeploy the port 162 isn't being relinquished.     They do
have
> code on deploy that says if the context isn't null they should call 
> destroy on it but I can't remember what circumstances could cause that 
> port to be locked open even temporarily - is there anything we should 
> be watching out for?
>  
> 

--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
snmp mailing list
snmp at snmp.westhawk.co.uk
http://snmp.westhawk.co.uk/mailman/listinfo/snmp

--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the snmp mailing list