[ http://jira.jboss.com/jira/browse/JBAS-1325?page=history ]
Scott M Stark updated JBAS-1325: -------------------------------- type: Feature Request (was: Bug) > String property replacement is not working for constructors. > ------------------------------------------------------------ > > Key: JBAS-1325 > URL: http://jira.jboss.com/jira/browse/JBAS-1325 > Project: JBoss Application Server > Type: Feature Request > Versions: JBossAS-4.0.1 Final > Reporter: Roland Rïz > Assignee: Scott M Stark > Priority: Minor > > Original Estimate: 5 minutes > Remaining: 5 minutes > > In the following sample of an MBean the StringPropertyReplacer is not applied > for the > values needed in the constructor. > <mbean code="org.jboss.security.plugins.JaasSecurityDomain" > name="jboss.security:service=JaasSecurityDomain,domain=RMI+SSL"> > <constructor> > <arg type="java.lang.String" value="${my.domain.name}" > /> > </constructor> > <attribute name="KeyStoreURL">myKeys.ks</attribute> > <attribute name="KeyStorePass">tryIt</attribute> > </mbean> > In this sample JaasSecurityDomain would be creaded with "${my.domain.name}" > as argument > instead of the corresponding SystemProperty. > The fix is very simple: > in org.jboss.system.ServiceCreator.ConstructorInfo#create (around line 287): > Element arg = (Element)list.item(j); > // String signature = arg.getAttribute("type"); > String signature = > StringPropertyReplacer.replaceProperties(arg.getAttribute("type")); > // String value = arg.getAttribute("value"); > String value = > StringPropertyReplacer.replaceProperties(arg.getAttribute("value")); > Object realValue = value; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development