Add support for JBossXB to the service deployment layer
-------------------------------------------------------
Key: JBAS-1461
URL: http://jira.jboss.com/jira/browse/JBAS-1461
Project: JBoss Application Server
Type: Task
Components: MicroContainer bus, JMX
Versions: JBossAS-4.0.1 Final, JBossAS-3.2.7 Final
Reporter: Scott M Stark
Priority: Critical
Fix For: JBossAS-4.0.2 Final
We need to add support for use of the JBossXB framework for the processing of
non-trivial service attribute specifications using pluggable object factories.
One prototype document illustrating different forms of externalized attribute
parsing is:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Tell JBossXB about the namespace to factory mappings in this doc -->
<?jbossxb ns="urn:schema:ns1:jbossxb"
factory="org.jboss.test.jmx.complexattrs.JavaBeanObjectModelFactory"?>
<!-- Tests of unmarshalling complex attributes
-->
<server>
<!-- Set the prop3.systemProperty system property -->
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="test:name=ComplexAttrTests,action=SystemProperties">
<attribute name="Properties">prop3.systemProperty=value3</attribute>
</mbean>
<!-- Test the javaBean attribute data type syntax -->
<mbean code="org.jboss.test.jmx.complexattrs.ComplexAttrTests"
name="test:name=ComplexAttrTests,case=#1">
<attribute name="Bean1"
attributeClass="org.jboss.test.jmx.complexattrs.JavaBean1"
serialDataType="javaBean">
<property name="bindAddress">127.0.0.1</property>
<property name="someDate">Sun Jan 2 23:26:49 PST 2005</property>
<property name="props">
prop1=value1
prop2=value2
prop3=${prop3.systemProperty}
</property>
<property name="names">name1,name2,name3</property>
<property name="someURL">http://www.jboss.org</property>
</attribute>
<attribute name="Bean2"
attributeClass="org.jboss.test.jmx.complexattrs.JavaBean2"
serialDataType="javaBean">
<property name="i">12345678</property>
<property name="f">1.23456</property>
<property name="d">3.14159265358979323846</property>
<property name="l">1234567890</property>
</attribute>
</mbean>
<!-- Test the jbossxb attribute data type syntax -->
<mbean code="org.jboss.test.jmx.complexattrs.ComplexAttrTests"
name="test:name=ComplexAttrTests,case=#2">
<attribute name="Bean1"
attributeClass="org.jboss.test.jmx.complexattrs.JavaBean1"
serialDataType="jbossxb"
xmlns:ns1="urn:schema:ns1:jbossxb">
<ns1:javabean1>
<property name="bindAddress">127.0.0.1</property>
<property name="someDate">Sun Jan 2 23:26:49 PST 2005</property>
<property name="props">
prop1=value1
prop2=value2
prop3=${prop3.systemProperty}
</property>
<property name="names">name1,name2,name3</property>
<property name="someURL">http://www.jboss.org</property>
</ns1:javabean1>
</attribute>
<attribute name="Bean2"
attributeClass="org.jboss.test.jmx.complexattrs.JavaBean2"
serialDataType="javaBean">
<property name="i">12345678</property>
<property name="f">1.23456</property>
<property name="d">3.14159265358979323846</property>
<property name="l">1234567890</property>
</attribute>
</mbean>
</server>
--
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development