1 Reply Latest reply on Oct 2, 2010 12:23 PM by Joao Cunha

    Seam Spring hibernate integration problem

    Joao Cunha Newbie

      Hello everyone,


      I'd like to ask you your help. 
      I'm facing a huge problem and I'm starting to loose faith in resolving it.
      We are developing a seam project ( our first one ) that communicates with a legacy application written in Spring/hibernate. We don't have much flexibility  in changing existing code but it's possible though.
      The problem is that although we are flushing the session manually in seam the changes are only persisted when application is undeployed. We are using Seam 2.2.1CR2 and we are deploying it in websphere 10.3.3


      Components.xml:
      
       <persistence:managed-hibernate-session 
        name="hibernateSession" 
        auto-create="true" 
        session-factory="#{sessionFactorySpring}"/> 
        
      <spring:spring-transaction platform-transaction-manager="#{transactionManager}" join-transaction="true" />
      
      spring/hibernate config:
      
      <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
                  <property name="sessionFactory" ref="sessionFactory" />
       </bean>
      
      <bean id="sessionFactory" class="org.jboss.seam.ioc.spring.SeamManagedSessionFactoryBean"> 
                  <property name="sessionName" value="hibernateSession"/> 
      </bean> 
      
      <!-- Session Factory config -->
      <bean id="sessionFactorySpring"
                class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
      



      thanks in advanced ...


      Joao Cunha
      llluomo@gmail.com