i am using the Jboss application server. For monitoring the mailid, i am looking forward to use JMX, but not sure that these functionalities could be performed using JMX.
JMX is not the issue. Of course, JMX can monitor, and triggering actions. It is just a container that runs MBeans.
The issue is does JBoss provide a mail monitoring MBean? That does what you want? To do that you need to check out the JBoss documentation -- and of course, also figure out how to do it.
BTW, the last time that I checked, JBoss had an incredible amount of MBeans running in the MBean server. Around 300, if I had to estimate. The hard part may be to sort through that pile, to find the one MBean that does what you want.
Henry
[ December 29, 2006: Message edited by: Henry Wong ]