3 Replies Latest reply on Jun 15, 2009 12:43 PM by Shalandra Sharma

    Put a file on jboss 4.0.2 with out bundling it in a jar, war

    Shalandra Sharma Newbie

      Hi, I have multiple applications running on multiple servers. There are some system properties which are common across all these applications. I want to put all these common properties in one common file on one of the servers and then want to load these properties from all other servers using org.jboss.varia.property.SystemPropertiesService as defined at http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch10.html using URLList attribute.

      I don't want to bundle this common properties file in a jar, war or ear file because I want to give sys-admins ability to modify the file without going through a build-test-deploy cycle. But I want to put this file on the jboss 4.0.2 server, so that other servers can read this file using a URL as described in the article above.

      Can someone please help me out with following:

      1. Is it possible to expose a static file without bundling it in a jar, war or ear file as a browsable/readable URL?

      2. If yes, please tell me how i.e. where should I put the file on jboss instance? What will be the context-root or URL to access this plain text file?

      Thanks in advance,
      Shal