Hi,

is it possible to somehow get additional <depends> tags automatically
written in to the jboss-service.xml file that is generated using the
<jbossservice> subtask of the <hibernatedoclet> task?

If I use a jboss-service-custom.xdt simply containing a
<depends>asdfasdf</depends> tag, and specify its directory as the mergeDir
property of the <jbossservice>, the extra tag gets included in the
jboss-service.xml, but *outside* of the auto-generated <mbean> tag, which is
no good :(

After many futile attempts to get this working, I have tried tinkering with
the file jboss-service-template.xdt, that is stored in the
xdoclet-jboss-module-1.2b4.jar, but have been unable to change anything (not
much doc on the tags really to help...)

Has anyone got any ideas?

Cheers,

Ben

======
My hibernatedoclet task:

        <hibernatedoclet
            destdir="${gen-src.dir}"
            mergedir="${java.dir}"
            excludedtags="@version,@author,@todo,@see"
            addedtags="@xdoclet-generated at ${TODAY},${copy.right},@author
XDoclet,@version ${version}"
            verbose="false">

            <fileset dir="${java.dir}">
                <include name="**/*.java"/>
            </fileset>

            <hibernate/>

            <jbossservice
                destdir="${meta-inf.dir}"
                jndiname="java:/hibernate/amergin"
                servicename="HibernateAmergin"
                dialect="cirrus.hibernate.sql.MySQLDialect"
                datasource="java:/${database.name}"
                username="${database.username}"
                password="${database.password}"
                showSql="true"
                prefixWithPackageStructure="false"
                mergeDir="${etc.dir}"
            />
        </hibernatedoclet>

=====
My jboss-service-custom.xdt:

       <depends>jboss.jca.service=LocalTxCM,name=amergin</depends>

=====
The generated jboss-service.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>

<!--
   automatically generated by xdoclet. do not edit
-->
<server>
   <mbean code="cirrus.hibernate.jmx.HibernateService"
name="jboss.jca:service=HibernateAmergin">
       <depends>jboss.jca:service=RARDeployer</depends>
       <attribute
name="MapResources">com/blahblah/amergin/hibernate/ExceptionReport.hbm.xml</
attribute>
       <attribute name="JndiName">java:/hibernate/amergin</attribute>
       <attribute name="Datasource">java:/amergin</attribute>
       <attribute
name="Dialect">cirrus.hibernate.sql.MySQLDialect</attribute>
           <attribute name="UserName">amergin</attribute>
           <attribute name="Password">amergin</attribute>
           <attribute name="UseOuterJoin">false</attribute>
           <attribute name="ShowSql">true</attribute>
   </mbean>

       <depends>jboss.jca.service=LocalTxCM,name=amergin</depends>

</server>






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to