-
Sep 7th, 2012, 01:48 AM
#1
Spring Webflow2 with Jpa for Jboss Cluster
Hi,
I am using Spring webflow2 and jpa. I am trying jboss clustering i got success in replication of session. But the flow continuation is not happening when i use JpaFlowExecutionListener. find the following configuration tags.
======================================
<flow-executor id="flowExecutor">
<flow-execution-listeners>
<listener ref="jpaFlowExecutionListener"/>
</flow-execution-listeners>
<flow-execution-attributes>
<always-redirect-on-pause value="true"/>
</flow-execution-attributes
</flow-executor>
<beans:bean id="jpaFlowExecutionListener"
class="org.springframework.webflow.persistence.Jpa FlowExecutionListener">
<beans:constructor-arg ref="entityManagerFactory" />
<beans:constructor-arg ref="transactionManager" />
</beans:bean>
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean"
p:dataSource-ref="dataSource"
persistenceUnitName="paymentPU"
p:jpaVendorAdapter-ref="hibernateJpaVendorAdapter"
persistence-xml-location="classpath:META-INF/persistence-spring.xml"
p:jpaProperties-ref="jpaProperties">
</bean>
<bean id="hibernateJpaVendorAdapter" class="org.springframework.orm.jpa.vendor.Hibernat eJpaVendorAdapter" />
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionM anager"
p:entityManagerFactory-ref="entityManagerFactory">
</bean>
================================
Please advice me.
With Regards,
T Mahesh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules