JBoss Context

I deployed my test web applicaion in Jboss at jboss/jboss-4.0.2/server/default/deploy/test.war.

I want to deploy the application as a folder instead of war file. Like instead of test.war I want to create a folder called test and place all the files under test folder. How to create the context for this folder? Will Jboss only take war file as context?

just call your directory test.war and extract your files directly in there. the DeployerScanner will pick it up and deploy it just as if you had droped the archive test.war directly in the deploy directory. Notice the other directories already there in your default/deploy directory. Like Tomcat for instance, instead of there being a file called Tomcatxxxx.sar, it is a folder with that name and all the wars are subfolders in that folder.