Maria Helena, a servlet is just a piece of code tied to a http address.
Of course it can show traps, but:

a) trap handling mechanics shoud be implemented in an inner layer of
your application. A solution would be to write a java application as a
trap listener and make the servlet talk to it using rmi. Be aware your
servlet will only handle request and presentation logic.

b) You have no means to tell browsers about an event. There are two
simple ways to solve it, writing an applet able to pool the servlet or
placing a META tag in your page, telling the browse to refresh it
periodically. I am using this second option to diplay syslog events and
it work fairly well.

*Saran


"Maria Elena Christensen (DXD)" wrote:
>
> Hi all
>
>  I have a question regarding if servlets could work for snmp managment, i have the 
>api for snmp, but i don't know if the servlets can show traps for example (meaning 
>that  can check if a trap have arrive and refresh browser to show it or something 
>similar)
>
> Have someone try to do something like this?
>
> Thanks,
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to