I am using hibernate 3.0 in spring with Mysql 5. I configured the JNDI data source in JBOSS and used it in the application context.
My problem is that Hibernate issues an average of 466.4 queries per second to the database, almost without loading the website.
Fragment ApplicationContext.xml -
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" scope="singleton"> <property name="jndiName" value="java:MyCustomDSName" /> <property name="resourceRef" value="true" /> </bean>
I am using a Java level JTA transaction. Any help is appreciated.
source share