This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
I did not understand your question. Are you asking how to deploy a servlet in JBoss? Or are you asking how to deploy a servlet in Tomcat?
In JBoss, all you have to do is package your application as a .war file and place it in the deploy folder (usually in the %JBOSS_HOME%/server/default/deploy folder). Then you start the server using the run.bat file (for linux, use run.sh) present in %JBOSS_HOME%/bin folder. Your application will be picked up by JBoss and deployed.