I would try removing all of the following - AppFuse already defines these for you.

On Jan 11, 2008, at 10:53 AM, mschipperheyn wrote:

                <bean id="sessionFactory"
                
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
                <property name="configLocation">
                        <value>classpath:hibernate.cfg.xml</value>
                </property>
                <property name="hibernateProperties">
                        <ref bean="hibernateProperties" />
                </property>
                <property name="dataSource">
                        <ref bean="MyDataSource" />
                </property>
                <property name="configurationClass">
                        <value>org.hibernate.cfg.AnnotationConfiguration</value>
                </property>
        </bean>

        <bean id="hibernateProperties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean" >
                <property name="properties">
                        <props>
                                <prop key="hibernate.hbm2ddl.auto">update</prop>
                                <prop key="hibernate.dialect">
                                        org.hibernate.dialect.MySQLDialect
                                </prop>
                                <prop key="hibernate.show_sql">true</prop>
                                <prop key="hibernate.c3p0.minPoolSize">5</prop>
                                <prop key="hibernate.c3p0.maxPoolSize">20</prop>
                                <prop key="hibernate.c3p0.timeout">600</prop>
                                <prop 
key="hibernate.c3p0.max_statement">50</prop>
                                <prop 
key="hibernate.c3p0.testConnectionOnCheckout">
                                        false
                                </prop>
                        </props>
                </property>
        </bean>

        <bean id="propertyConfigurer"
        
class="org.springframework.beans.factory.config.PropertyPlaceholderCon figurer">
                <property name="locations">
                        <list>
                                <value>classpath:jdbc.properties</value>
                                <value>classpath:mail.properties</value>
                        </list>
                </property>
        </bean>

        <bean id="MyDataSource"
                
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
                <property name="driverClassName"
                        value="${jdbc.driverClassName}" />
                <property name="url" value="${jdbc.url}" />
                <property name="username" value="${jdbc.username}" />
                <property name="password" value="${jdbc.password}" />
        </bean>

        <bean id="hibernateTemplate"
                class="org.springframework.orm.hibernate3.HibernateTemplate">
                <property name="sessionFactory">
                        <ref bean="sessionFactory" />
                </property>
        </bean>

        <bean id="hibernateInterceptor"
                class="org.springframework.orm.hibernate3.HibernateInterceptor">
                <property name="sessionFactory">
                        <ref bean="sessionFactory" />
                </property>
        </bean>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to