Auto Response Servlet using Smack

Hi All,

i just want to create a servlet, and the servlet have an account that connect to the WildFire.

the idea is, I want to make the servlet do an autoresponse, when a message send from a messanger to an account which have servlet connected with

anyone can help me?