Hello,
I’m trying to setup my config file to use a datasource I’ve created in JBOSS. I hoped that somebody had already done this and could review my settings for accuracy. I’m not sure I’m missing anything. Also, I’m not sure if there is anything else I need to do in JBOSS. I created the xml configuration for the datasource in JBOSS per information I found on the JBOSS newsgroup.
Below is my configuration file as it stands today.
<hibernate-configuration>
<session-factory>
<property name=”connection.datasource”>java:comp/env/jdbc/DefaultDS</property>
<property name=”jndi.url”></property>
<property name=”jndi.class”></property>
<property name=”dialect”>
org.hibernate.dialect.MySQLInnoDBDialect
</property>
<property name=”transaction.auto_close_session”>true</property>
<property name=”transaction.flush_before_completion”>true</property>
<property name=”transaction.manager_lookup_class”>
org.hibernate.transaction.JBossTransactionManagerLookup
</property>
<property name=”transaction.factory_class”>
org.hibernate.transaction.JTATransactionFactory
</property>
<property name=”connection.provider_class”>
org.hibernate.connection.DatasourceConnectionProvider
</property>
<mapping resource=”com/receptrix/hibernate/Customer.hbm.xml” />
<mapping resource=”com/receptrix/hibernate/Address.hbm.xml” />
<mapping resource=”com/receptrix/hibernate/CustAddr.hbm.xml” />
</session-factory>
</hibernate-configuration>