-->
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.  [ 4 posts ] 
Author Message
 Post subject: Doubts in configuring Hibernate
PostPosted: Sun May 16, 2004 4:04 pm 
Beginner
Beginner

Joined: Sun May 16, 2004 3:53 pm
Posts: 47
Location: Belo Horizonte, Brazil
Hi,
i'm a total beginner with hibernate, then i'm trying to config my app following the under

Using the JBoss MBean with Hibernate 2.1, JBoss 3.2.X and XDoclet (at http://hibernate.org/66.html)

However, i'm a little confused as i'm not that good with ant.
Here goes my question.

On the page i described above have the following pieces of code
Code:
    <copy todir="${build.resources}/sar/hibernate">
        <fileset dir="${src.dir}">
            <include name="**/hibernate/hibernate-properties-*.xml"/>
        </fileset>
        <fileset dir="${resources}/sar/hibernate">
            <include name="jboss-service-custom.xdt"/>
        </fileset>
    </copy>


Question 1:
- What is this jboss-service-custom.xdt? Where is it at?



Code:
        <jbossservice
            destdir="${build.resources}/sar/hibernate"
            serviceName="Hibernate"
            jndiName="${hibernate.jndi.name}"
            dataSource="${hibernate.datasource.name}"
            dialect="${hibernate.dialect}"
            useOuterJoin="true"
transactionManagerStrategy="net.sf.hibernate.transaction.JBossTransactionManagerLookup"
          transactionStrategy="net.sf.hibernate.transaction.JTATransactionFactory"
            userTransactionName="UserTransaction"
        />

    </hibernatedoclet>


Question 2:
- All these variables ($hibernate.jndi.name, $hibernate.datasource.name) are the ones from the file hibernate-properties-*.xml (described in the first piece of code) rigth? Where and how exactly should i set these variables???


Any kinda of help is welcome.
Thanks,
ltcmelo


Top
 Profile  
 
 Post subject: Doubts in configuring Hibernate with jboss
PostPosted: Sun May 16, 2004 8:27 pm 
Beginner
Beginner

Joined: Sun May 16, 2004 3:53 pm
Posts: 47
Location: Belo Horizonte, Brazil
Just clearing my question 2.
I have some other variables set in build.properties, but the ones i mentioned ($hibernate.jndi.name, $hibernate.xxx) are already described in hibernate.properties.
So, should i...
just set the $hibernate.xxx variables in build.properties like the other variables?

Thanks,
ltcmelo

p.s.: i took a look at the other forums and realize that the integration forum might be better for this question, so if the moderators want to move the message...


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 16, 2004 9:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
1) jboss-service-custom.xdt is the XDoclet generation script which XDoclect employs for building the jboss service file for deployment of the MBean.

2) These are properties that you can setup in the Ant script. Alternatively, you can just place the real values instead (better to use the properties if you have them used in other placed of the script - eg, Middlegen task etc).


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 16, 2004 9:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can reference the hibernate.properites file from Ant aswell (Use the build.properties as an example).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.