[Jboss-cvs] JBossAS SVN: r56568 - in branches/JBoss_4_0_4_GA_JBAS-3623/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 10:10:14 EDT 2006


Author: dimitris at jboss.org
Date: 2006-09-05 10:10:11 -0400 (Tue, 05 Sep 2006)
New Revision: 56568

Added:
   branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/
   branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml
   branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml
Log:
JBAS-3623, Backport JBAS-3463 to 4.0.4.GA

Added: branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml
===================================================================
--- branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml	2006-09-05 14:09:03 UTC (rev 56567)
+++ branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-service.xml	2006-09-05 14:10:11 UTC (rev 56568)
@@ -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/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml
===================================================================
--- branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml	2006-09-05 14:09:03 UTC (rev 56567)
+++ branches/JBoss_4_0_4_GA_JBAS-3623/testsuite/src/resources/jmx/xmbean/custom-attr-pers/jboss-xmbean.xml	2006-09-05 14:10:11 UTC (rev 56568)
@@ -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