facebook

Hibernate Datasource Configuration (MySQL)?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268978 Reply

    jcorbin4607
    Member

    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>

    #269051 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate Datasource Configuration (MySQL)?

You must be logged in to post in the forum log in