How is your application packaged? EAR, WAR or JAR? And which version of JBoss are you using? Please provide more details about your application. That might help in understanding what you are trying to do.
P.S: Looks like you are in the wrong forum. You should have posted this in the Installation and Configuration forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=61