title: Transaction Manager don't assume the transaction
body: <p>i'm facing a problem i really dunno how to catch the cat tail (if you hollow me the joke :o))</p>
  
  <p>i have a webapp in war, deploy in tomcat. the war contains 4 Jars. 
  4 jars have 4 applicationContext, with 4 entityManager, and 4 TransactionManager.</p>
  
  <p>declare like this (change the number 1..): </p>
  
  <pre><code>      &lt;bean id="entityManagerFactory1" 
      class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" 
      p:dataSource-ref="dataSource1"
      p:persistence-unit-name="com.xxxxxx.domain"     &gt;
  
      &lt;property name="jpaVendorAdapter"&gt;
          &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" 
          p:databasePlatform="${ds1.dbdialect}" p:generate-ddl="false"
              p:showSql="${ds1.showsql}"  /&gt;
      &lt;/property&gt;
      &lt;property name="loadTimeWeaver"&gt;
          &lt;bean class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" /&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
    &lt;bean id="transactionManager1" class="org.springframework.orm.jpa.JpaTransactionManager"
      p:entityManagerFactory-ref="entityManagerFactory1"&gt;
      depends-on="entityManagerFactory1" name="transactionManager1"/&gt;
  
  
     &lt;tx:annotation-driven  transaction-manager="transactionManager1" /&gt;
  </code></pre>
  
  <p>the context is load like this : 
      
      
      
      </p>
  
  <p>my problem i discover that when i'm using a BO of 3, the transaction is open with the datasource of 2.</p>
  
  <p>moreover, if i do a persist i have the message : </p>
  
  <p>AbstractSaveEventListener - delaying identity-insert due to no transaction in progress</p>
  
  <p>BUT if i launch the jar 1 alone (for example), everything is working perfectly.</p>
  
  <p>thanks a lot for your enlightement.</p>