-->
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.  [ 1 post ] 
Author Message
 Post subject: An Example Weblogic specific Hibernate Configuration
PostPosted: Wed Sep 15, 2004 8:03 pm 
Regular
Regular

Joined: Sat Aug 28, 2004 4:15 pm
Posts: 61
I've noticed many different configurations for Weblogic. I've read through much of the e-docs for Weblogic and here is a configuration that is minimal and effective for CMT, JNDI bound session factory,...


Code:
<hibernate-configuration>
  <!-- a SessionFactory instance listed as /jndi/name -->
  <session-factory name="hibernate.HibernateFactory">
    <!-- Bind the SesssionFactory to JNDI -->

    <!-- JNDI DataSource Connection -->
    <property name="connection.datasource">hibernate.DataSource</property>

    <!-- Transaction Management Properties-->
    <property name="transaction.manager_lookup_class">
      net.sf.hibernate.transaction.WeblogicTransactionManagerLookup
    </property>
    <property name="transaction.factory_class">
      net.sf.hibernate.transaction.JTATransactionFactory
    </property>
   
    <!-- Miscellaneous Properties -->
    <property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
    <property name="show_sql">true</property>
    <property name="use_outer_join">true</property>
   
    <!-- mapping files -->
    <mapping resource="..."/>
   
  </session-factory>
</hibernate-configuration>


Surely, if someone sees something that can be improved please mention...


Thanks
Joe W

_________________
Joe W


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

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.