Closed GoogleCodeExporter closed 8 years ago
Hi
I also think it makes sense to use the JBoss datadir when running on JBoss.
Are there any problems with the code suggested above, or do you not want to
include this in javamelody ?
One can of course use the storage-directory parameter to achieve the same thing.
Maybe the storage-directory parameter was added after this issue was created ?
Regards
Alf Høgemark
Original comment by alf.hoge...@gmail.com
on 9 Aug 2014 at 12:54
Using JBoss data dir may cause several problems:
- Adding specific code and behavior for JBoss is not great. For example,
JBoss/RedHat or WildFly may choose to change "jboss.server.data.dir" to
something else anytime. (I have already seen changes such as Hudson/Jenkins,
Sybase / ASE, Sun JSAS / Glassfish, JBoss then "Undertow" then "WildFly".)
- When some users ask where data is stored, it's not great to say
${java.io.tmpdir}/javamelody, but not if they are using JBoss or WildFly or
anything using them.
- The storage-directory parameter exists to configure that.
- Current users of javamelody on JBoss/WildFly may be surprised when upgrading
javamelody, about why data is not stored anymore where it always was or why
historical data was lost in the reports.
So JBoss data dir is specific to JBoss and probably can't be used as a
standard: I think that this issue could be Won't fix.
Do you agree?
By the way, issue 240 has suggested to use the standard
"javax.servlet.context.tempdir" (ServletContext.TEMPDIR), which in fact is not
a good idea at least in Tomcat.
Original comment by evernat@free.fr
on 19 Dec 2014 at 5:38
[Triage] Resolving as won't fix for the reasons given above.
Original comment by evernat@free.fr
on 6 Apr 2015 at 2:53
Original issue reported on code.google.com by
derj...@googlemail.com
on 21 Aug 2013 at 12:27