1) If you want to serve only static content (no servlets or JSPs, only images, documents, files), you can set up an external directory. See http://wiki.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories
2) If you need the ability to run dynamic contents (JSPs, EJBs, ect), then you can
Thnx for the help ... It worked ... now i need to know how i give access to this repository only to users who are logged on my web application. I am using JBoss Seam.
I haven't used Seam, but if you use the method described in
then, as said by Tomcat here
this directory is like any other context you can deploy within the "predefined" in JBoss, so you can put WEB-INF/web.xml files there for authentication and so. If you need to use the same users for both web-apps (the one you developed and repo) you will need to either use single-sign-on http://wiki.jboss.org/wiki/Wiki.jsp?page=SingleSignOn or share session data between the two web-apps
Sorry for the line breaks, but in the preview everything was considered an URL if I didn't put these line breaks...
Thnx for the suggestions .. I will try them and post some feedbacks.