-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: jboss treecache and xdoclet
PostPosted: Wed Sep 08, 2004 10:03 am 
Newbie

Joined: Thu Feb 26, 2004 7:29 am
Posts: 17
hi all,
i'm trying to get the JBoss TreeCache working and am having problems getting the CacheProviderClass attribute included.

i'm using hibernate 2.1.2 release and xdoclet 1.2 release.

my xdoclet task is :
Code:
        <hibernatedoclet
            destdir="${gen-src.dir}"
            mergedir="${merge.dir}"
            excludedtags="@version,@author,@todo,@see,@desc"
            addedtags="@xdoclet-generated at ${TODAY},${copy.right},@author ${author},@version ${version}"
            verbose="false">

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

            <hibernate version="2.0"/>

            <jbossservice
                destdir="${gen-conf.dir}"
                servicename="HibernateGMMH"
                jndiname="java:/${hibernate.jndi.name}"
                datasource="java:/${cjdbc.database.jndi.name}"
                dialect="${database.dialect}"
                useOuterJoin="true"
                showSql="true"
                transactionManagerStrategy="net.sf.hibernate.transaction.JBossTransactionManagerLookup"
                transactionStrategy="net.sf.hibernate.transaction.JTATransactionFactory"
                userTransactionName="UserTransaction"
                cacheProvider="net.sf.hibernate.cache.TreeCacheProvider"
            >
                <configparam name="depends" value="jboss.jca:service=LocalTxCM,name=${cjdbc.database.jndi.name}"/>               
            </jbossservice>
        </hibernatedoclet>


however when i run xdoclet i get the error :

Class xdoclet.modules.hibernate.JBossServiceSubTask doesn't support the "cacheprovider" attribute.

has anybody got an example of this working with xdoclet???
would really appreciate some help with this.

cheers,
colum.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 10:27 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
You can use that attribute...
I put a file named "jboss-service-custom.xdt" in my build.xml directory with the line:

Code:
  <attribute name="CacheProvider">net.sf.ehcache.hibernate.Provider</attribute>


and i set the "mergedir" attribute of "hibernatedoclet" tag:

Code:
   <hibernatedoclet
        destdir="${hibernate}"
        excludedtags="@version,@author,@todo,@see,@desc"
        addedtags="@xdoclet-generated at ${TODAY}@copyright yourCompany,@author yourCompany,@version ${version}"
        force="${xdoclet.force}"
        mergedir="${hibernate}/META-INF"
        verbose="false">


So the "xdoclet parser" put my file in the hibernate configuration!
But you must open and modify the xdoclet-hibernate-module.jar and move the line
Quote:
<XDtMerge:merge file="jboss-service-custom.xdt"></XDtMerge:merge>

inside the <mbean> tag! (Take a look at http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-556


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 08, 2004 11:56 am 
Newbie

Joined: Thu Feb 26, 2004 7:29 am
Posts: 17
thanks gifor,

that fixed the problem :-)

much appreciated.
colum.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.