[jboss-jira] [JBoss JIRA] (AS7-5343) SAR MBean attribute whose string attribute uses ${} are not replaced with sysprop values
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Wed Aug 29 09:56:35 EDT 2012
[ https://issues.jboss.org/browse/AS7-5343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714565#comment-12714565 ]
RH Bugzilla Integration commented on AS7-5343:
----------------------------------------------
John Mazzitelli <mazz at redhat.com> made a comment on [bug 851268|https://bugzilla.redhat.com/show_bug.cgi?id=851268]
removing all the external bug tracking links - the bugzilla integration to jira is not good:
I will add "see also" links from this BZ to these:
https://issues.jboss.org/browse/AS7-5342
https://issues.jboss.org/browse/AS7-5336
https://issues.jboss.org/browse/AS7-5321
https://issues.jboss.org/browse/AS7-5177
https://issues.jboss.org/browse/AS7-887
https://issues.jboss.org/browse/AS7-3199
> SAR MBean attribute whose string attribute uses ${} are not replaced with sysprop values
> ----------------------------------------------------------------------------------------
>
> Key: AS7-5343
> URL: https://issues.jboss.org/browse/AS7-5343
> Project: Application Server 7
> Issue Type: Feature Request
> Components: JMX
> Reporter: John Mazzitelli
> Assignee: Eduardo Martins
> Labels: rhq
> Attachments: test.sar
>
>
> See the attached .sar as a test to replicate this - just deploy it in a 7.1.1.Final standalone/deployments directory and run it as explained below.
> This SAR has a String attribute. Its value is made up of some ${x} with some static text:
> <attribute name="MyStr">my.sys.prop=${my.sys.prop} jboss.home.dir=${jboss.home.dir} java.version=${java.version}</attribute>
> Start the AS7 server with the cmd line option "-Dmy.sys.prop=boo" (I also tried this with my.sys.prop=boo in a "my.properties" file and I passed in "-P my.properties" - same problem happens).
> When you look in the logs, the MBean will print out the value it gets in its setting method:
> 15:19:41,448 INFO [stdout] (MSC service thread 1-5) STR attribute being set to=my.sys.prop=${my.sys.prop} jboss.home.dir=${jboss.home.dir} java.version=${java.version}
> Notice none of the ${x} tokens are replaced. Not even the JVM sysprop "java.version" - nor the JBoss "jboss.home.dir" - nor the one I passed into AS7 (my.sys.prop).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list