jboss.home.dir is the correct system property, but we do not currently resolve property references in arguments to mbean constructors. We do resolve property references in attribute values, so this will not work:

<server>
  <mbean code="..." name="..." >
  <constructor>
    <arg  type="..." value="${jboss.home.dir}/server/..."/>
 </constructor>
 </mbean>
</server>

<server>
  <mbean code="..." name="..." >
  <constructor>
    <arg  type="..." value="server/..."/>
 </constructor>
 <attribute name="HomeDir">${jboss.home.dir}</attribute>
 </mbean>
</server>

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Snell Nguyen wrote:

Hi Everybody,
In file jboss-service.xml, I want to refer to JBoss home, for example
<server>
<mbean code="..." name="..." >
<constructor>
   <arg  type="..." value="[JBOSS HOME]/server/..."/>
</constructor>
</mbean>
</server>
But I donot know how to replace JBOSS HOME automatically by jboss.
Please show me.
Snell Nguyen



------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to