-
1. Re: How to create msg listener and mdb listener by example
sappenin Sep 27, 2006 10:59 AM (in response to java_api1)Hey,
First, take a look at the NukesPosterJMSMailListener and NukesPosterJMSMailListenerMBean (org.jboss.mail.maillistener package). Those are MailListeners that "do something" with SMTP mail messages.
Also, download the ClamAV code that I wrote, and walk through the docs that I put together. It has a 2 different custom MBeans, one of which is a Listener. If a message is infected with a virus, its message bodies get deleted, and I change the subject line (you should be able to infer from there how to change the addresses). In addition, the instructions that I wrote up outline how to install everything into JBCS.
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=90638
You should be able to pattern whaterver you're trying to do off of what I did.
Thanks!
David -
2. Re: How to create msg listener and mdb listener by example
java_api1 Oct 8, 2006 4:22 PM (in response to java_api1)Thank you very much david. Let me go through it
Al