Hi Wei, You might want to consider JMX http://java.sun.com/products/JavaManagement/
Your SNMP products need to be JMX "aware" or you will have to write your own JMX extensions. There are plenty of others ways of raising SNMP alerts, it depends on what and how your platform is configured. You could for example raise an SNMP alert when something gets written to the syslog for a UNIX box or send an email somewhere that will indirectly trigger a SNMP alert. Or you can call the native implementation of SNMP for your OS. JMX is probably the most portable and "Enterprise Java" friendly... Regards, Doran Kangwai On Mon, 11 Oct 2004 12:34:02 +0800, Wei Cheng <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I've got a servlet application where i need to know in real time when it > fails. > > The first thing that poped into my mind was using SNMP trap messages. > How do i send a SNMP trap from my servlet ? > > Thanks in advance > ___________________________________________________________________________ > 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