|
Hi there, I am new to xDoclet
(1.2) and JBoss (3.2.3) and I have the following
questions based upon the generated <jboss-service.xml>
snippet below. I am attempting to use xDoclet to generate my *-xmbean.xml for class <JMXServiceLocator>
based upon the following class header tags: /** * @jmx.mbean * name="com.panacya.monitoring:service=ServiceLocator" * * @jboss.service * servicefile="jboss" * * @jboss.xmbean * */ After xDoclet has
run the following jboss-service.xml is generated: <?xml
version="1.0" encoding="UTF-8"?> <service> <mbean
code="com.panacya.jmxadaptors.JMXServiceLocator"
name="com.panacya.monitoring:service=ServiceLocator"
xmbean-dd="com/panacya/jmxadaptors/JMXServiceLocator.xml"> </mbean> <!-- Other
mbeans from my jboss-service.ent --> </service> The <service> element is generated
yet the jboss 3.2.3 dtd
states that the outer-element is a <server> tag, is this ok ? The xmbean-dd
attribute of the <mbean> element uses the fully
qualified class name, can this value be controlled by an attribute on the
‘@jboss.xmbean’ tag ?
e.g can I achieve … xmbean-dd=”META-INF/servicelocator-xmbean.xml” The following is the ant build file
<target> which invokes the generation: <!-- Generation of the JBoss
xmBeans --> <target
name="generate-xmbeans" description="generate
the xmbeans for the project" depends="prepare"> <taskdef
name="jmxdoclet" classname="xdoclet.modules.jmx.JMXDocletTask" classpathref="xdoclet.classpath"
/> <jmxdoclet destdir="${gen.src.dir}/java" mergeDir="${merge.src.dir}/java" verbose="false" excludedtags="@version,@author"> <fileset
dir="${src.dir}/java"> <include
name="**/JMX*.java" /> </fileset> <jbossxmlservicetemplate subTaskName="generate the jboss-service.xml template" destDir="${gen.src.dir}/conf" mergeDir="${merge.src.dir}/conf" servicefile="jboss"/> <jbossxmbean
destdir="${gen.src.dir}/conf" prefixWithPackageStructure="false"
/> </jmxdoclet> </target> I have tried a couple of variations by
introducing an edited jboss-service-template.xdt
however this was not picked up and I tried using the ‘packageSubstitutions’
attribute however this was not supported. All and any suggestions are welcome. Thanks for all and any help! sinclair sinclair bain panacya inc. 8825 stanford boulevard, (410) 910-3444 |
- [Xdoclet-user] xDoclet JBoss xmbean and service descriptor ... Bain, Sinclair
- [Xdoclet-user] xDoclet JBoss xmbean and service descri... Bain, Sinclair
