-
1. Re: Is there a way to change/configure directory names in JBoss tmp directory
sfcoy Jun 4, 2012 8:31 PM (in response to balind7)You might want to consider adding a javax.servlet.ServletContextListener to your web app that explicitly copies the required resources from the WAR (using javax.servlet.ServletContext#getResourceAsStream(java.lang.String) ) to a specific directory location and using that for your cgi scripts.
This will be less "hacky" and reasonably portable moving forwards.
-
2. Re: Is there a way to change/configure directory names in JBoss tmp directory
jaikiran Jun 5, 2012 2:23 AM (in response to sfcoy)What are those CGI scripts looking for in the tmp directory? Like Stephen says, a better way to do this is to have a specific non-tmp location where the scripts can find whatever they are looking for.
-
3. Re: Is there a way to change/configure directory names in JBoss tmp directory
balind7 Jun 5, 2012 12:10 PM (in response to jaikiran)Stephen, Jaikiran: Many thanks for your proposals.
I agree that it would be less "hacky" to move all needed information in a non tmp-war location. Some of our needed resources are already outside the tmp location.
But we plan to replace those cgi scripts with servlets and web services. Therefore we don't want to make larger efforts in changing these old cgi files.
The renaming of the last part of the tmp directory structure would be a very simple solution for the meantime, but it seems that this is not configurable.