0

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:

  1. A custom servlet.
  2. Add a Jboss Module.
  3. Just install another webserver like Apache/Nginx.

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.

Community
  • 1
  • 1
jacktrades
  • 7,224
  • 13
  • 56
  • 83
  • Where's **your** question here? Just a bunch of links up there – kolossus Jan 12 '13 at 05:37
  • @jacktrades: I am the author of jojovedder.blogspot. In Jboss 7 the module was the only configurable method, instead of coding anything like a custom servlet – JoseK Jan 12 '13 at 11:39
  • @JoseK: I've read your blog, but it seems to only configure external folders to be available in the runtime classpath (by `ClassLoader#getResource()` and so on), not by a public web URL (which is ultimately what the OP is asking for and what "serve static resources" stands for). Or are they really available by a public web URL? – BalusC Jan 12 '13 at 11:44
  • @JoseK edited it to make it clearer – jacktrades Jan 12 '13 at 11:50
  • @BalusC: Nope - not via direct web URL – JoseK Jan 12 '13 at 11:51

0 Answers0