[Jboss-cvs] JBossAS SVN: r56556 - in branches/Branch_4_0/testsuite/src/resources/jmx/xmbean: . custom-attr-pers
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 5 07:51:55 EDT 2006
Author: dimitris at jboss.org
Date: 2006-09-05 07:51:53 -0400 (Tue, 05 Sep 2006)
New Revision: 56556
Added:
branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/
branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml
branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml
Log:
JBAS-3463, use the correct classloader when deserializing persisted custom mbean attributes
Added: branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml 2006-09-05 11:45:28 UTC (rev 56555)
+++ branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml 2006-09-05 11:51:53 UTC (rev 56556)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE server
+ PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
+
+<server>
+
+ <mbean code="org.jboss.test.jmx.xmbean.ServiceUsingCustomAttribute"
+ name="jboss.test:service=ServiceUsingCustomAttribute"
+ xmbean-dd="META-INF/jboss-xmbean.xml" />
+
+</server>
Added: branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml 2006-09-05 11:45:28 UTC (rev 56555)
+++ branches/Branch_4_0/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml 2006-09-05 11:51:53 UTC (rev 56556)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mbean PUBLIC
+ "-//JBoss//DTD JBOSS XMBEAN 1.2//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd">
+
+<mbean>
+ <description>Test of ServiceUsingCustomAttribute</description>
+ <descriptors>
+ <persistence persistPolicy="OnUpdate"/>
+ <persistence-manager value="org.jboss.mx.persistence.DelegatingPersistenceManager"/>
+ </descriptors>
+ <class>org.jboss.test.jmx.xmbean.ServiceUsingCustomAttribute</class>
+
+ <!-- Attributes -->
+ <attribute access="read-write" getMethod="getAttr" setMethod="setAttr">
+ <description>A custom attribute</description>
+ <name>Attr</name>
+ <type>org.jboss.test.jmx.xmbean.CustomType</type>
+ </attribute>
+
+ <!-- Operations -->
+ <operation>
+ <description>Set the custom attribute through the MBeanServer</description>
+ <name>selfTest</name>
+ </operation>
+
+ <operation>
+ <description>Print out the stored custom attribute</description>
+ <name>show</name>
+ <return-type>java.lang.String</return-type>
+ </operation>
+</mbean>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list