This content has been marked as final.
Show 3 replies
-
1. Re: Put a file on jboss 4.0.2 with out bundling it in a jar,
jaikiran Jun 14, 2009 4:31 AM (in response to shsharma79)You can place those files in JBOSS_HOME/server/< servername>/conf folder and they will be by default made available in the classpath of the applications deployed on the server.
-
2. Re: Put a file on jboss 4.0.2 with out bundling it in a jar,
shsharma79 Jun 14, 2009 4:24 PM (in response to shsharma79)"jaikiran" wrote:
You can place those files in JBOSS_HOME/server/< servername>/conf folder and they will be by default made available in the classpath of the applications deployed on the server.
Thanks for your response. Yes, it will be available on the server's classpath but how would I expose this common properties file to all other servers? I want to expose the common properties as a common browsable property file. If I put it in the conf directory it can not be accessed by other servers.
Am I missing something? -
3. Re: Put a file on jboss 4.0.2 with out bundling it in a jar,
shsharma79 Jun 15, 2009 12:43 PM (in response to shsharma79)I have found a solution to my query. It might not be a clean solution but I thought I will publish it here so that other might benefit if they have similar need.
Solution: Create a directory my-app.war in the "deploy" folder and put the file in there. JBoss will throw a warning saying that it could not find web.xml but your file will be available with the context-root "my-app".
Thanks
Shal