Atomikos Forum |
|
I am getting Broken Pipe exception when records are greater than 1000.
For less then 1000, i do not get broken pipe in between the process but in end of process. Following is my configuration, may anyone suggest what to add? <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceXmlLocation" value="classpath:${persistencexml.location:Resource/persistence.xml}" /> <property name="persistenceUnitName" value="persistenceUnit1" /> <property name="dataSource" ref="dataSource" /> <property name="loadTimeWeaver"> <bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" /> </property> <property name="jpaProperties"> <props> <prop key="hibernate.search.default.directory_provider">${hibernate.directoryProvider}</prop> <prop key="hibernate.search.worker.thread_pool.size">${hibernate.threadsForIndexWriter}</prop> <prop key="hibernate.search.default.indexBase">${hibernate.indexBase}</prop> <prop key="hibernate.search.default.indexwriter.ram_buffer_size">64</prop> <prop key="hibernate.show_sql">${hibernate.sql.show_sql}</prop> <prop key="hibernate.discriminator.ignore_explicit_for_joined">true</prop> <prop key="hibernate.dialect">${hibernate.mysql.dialect}</prop> <prop key="hibernate.default_batch_fetch_size">201</prop> </props> </property> </bean> <bean id="dataSource" class="com.atomikos.jdbc.nonxa.AtomikosNonXADataSourceBean"> <property name="uniqueResourceName"><value>NONXADBMS</value></property> <property name="url" value="${hibernate.dbUrl}" /> <property name="driverClassName" value="${hibernate.dbDriver}" /> <property name="minPoolSize"><value>7</value></property> <property name="maxPoolSize"><value>60</value></property> <property name="borrowConnectionTimeout"><value>62</value></property> <property name="user" value="${hibernate.databaseUser}" /> <property name="password" value="${hibernate.databasePassword}" /> <property name="testQuery" value="SELECT 1"></property> </bean> <persistence-unit name="persistenceUnit1" transaction-type="JTA"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.archive.autodetection" value="class" /> <property name="hibernate.dialect" value="${hibernate.mysql.dialect}" /> <property name="hibernate.show_sql" value="true" /> <property name="hibernate.max_fetch_depth" value="4" /> <property name="org.hibernate.service.jta.platform.spi.JtaPlatform" value="com.parts.jta.platform.atomikos.AtomikosJtaPlatform"/> <property name="hibernate.transaction.manager_lookup_class" value="com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup"/> </properties> </persistence-unit> |