I'm trying to configure an MBean that has an attribute that requires a value 
in XML format.

The MBean is defined in jboss-service.xml in the conf directory something 
like...

<mbean code="a.b.c.d" name="jboss.deployment:service=abcd">
  <attribute name="DepInfo"> <![CDATA[
<depinfo>
  <value name="abc">A Value</value>
</depinfo>]]
  </attribute>
</mbean>

but in my mbean setDepInfo() method I get an empty string as the value. If I 
define it like so...

<mbean code="a.b.c.d" name="jboss.deployment:service=abcd">
  <attribute name="DepInfo">
&lt;depinfo>
  &lt;value name="abc">A Value&lt;/value>
&lt;/depinfo>]]
  </attribute>
</mbean>

then it works. I also tried just the raw XML as the value but that breaks as 
well with the empty string (not surprising, as there isn't any actual 
character data, the parser would parse the elements.

So, Why doesn't the CDATA work? (maybe this is a dumb XML question?)

brian wallis...


-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to