Question is very similar to this, sadly the answer is not Jboss specific.
This recent post, and this question have lead me to the conclusion that there are 3 ways of achieving this in Jboss AS 7:
Which are the pros/cons of each one?
The specific purpose is to serve images stored in the file system that were previously uploaded by users.