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