Dashboard > blojsom 3.0 > ... > Configuration Files > blojsom-helper-beans-include.xml
  blojsom 3.0 Log In   View a printable version of the current page.  
  blojsom-helper-beans-include.xml
Added by David Czarnecki, last edited by David Czarnecki on Jul 11, 2007  (view change)
Labels: 
(None)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
        "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

    <description>Bean definition file for blojsom</description>

    <!-- START: Helper beans -->
    <bean id="servletConfigFactoryBean" class="org.blojsom.servlet.ServletConfigFactoryBean">
    </bean>

    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
        <property name="url" value="jdbc:mysql://localhost:3306/blojsom?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8"/>
        <property name="username" value="blojsom"/>
        <property name="password" value="blojsom"/>
    </bean>

    <bean id="hibernateSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="mappingResources">
            <list>
                <value>Blog.hbm.xml</value>
                <value>Entry.hbm.xml</value>
                <value>Category.hbm.xml</value>
                <value>Comment.hbm.xml</value>
                <value>Trackback.hbm.xml</value>
                <value>Pingback.hbm.xml</value>
                <value>User.hbm.xml</value>
            </list>
        </property>
        <property name="hibernateProperties">
            <props>
                <prop key="c3p0.min_size">10</prop>
                <prop key="c3p0.max_size">50</prop>
                <prop key="c3p0.timeout">1800</prop>
                <prop key="c3p0.max_statements">100</prop>
                <prop key="show_sql">false</prop>
                <prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop>
                <!-- <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop> -->
            </props>
        </property>
    </bean>
    <!-- END: Helper beans -->

</beans>

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators