That documentation is for JBoss Web, which is a repackaged Tomcat; it is not for JBossAS.
But if you grab the source you can see the basics of how to do the same for JBossAS.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181948#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...