1. 29 3月, 2013 8 次提交
  2. 28 3月, 2013 3 次提交
  3. 27 3月, 2013 2 次提交
    • J
      JPA 2.1 support, in particular for SynchronizationType.UNSYNCHRONIZED · ff160f9a
      Juergen Hoeller 提交于
      In the course of this effort, our joinTransaction() support has been overhauled to work for shared EntityManagers as well, since an unsynchronized shared EntityManager will nevertheless be scoped for the current transaction but not automatically join it (as per the JPA 2.1 spec). In the JTA case, we'll simply create an unsynchronized target EntityManager and will upgrade it to a synchronized one (later in the same transaction, if necessary) through an implicit joinTransaction() call. In the JpaTransactionManager case, we'll unbind the primary target EntityManager and will expose an unsynchronized EntityManager instead, upgrading it the same way as with JTA, with the primary EntityManager in that case just serving as a vehicle for transaction begin/commit/rollback calls.
      
      For extended EntityManagers, we've just added further combinations to the existing variants: application-managed EntityManagers which may nevertheless auto-join transactions (EntityManagerFactory.createEntityManager with SynchronizationType.SYNCHRONIZED), and container-managed EntityManagers which might opt for not auto-joining transactions (@PersistenceContext with synchronizationType=UNSYNCHRONIZED).
      
      Issue: SPR-8194
      ff160f9a
    • J
      First pass completed, with support for the standard JMS 2.0 API in our... · a3d7dc09
      Juergen Hoeller 提交于
      First pass completed, with support for the standard JMS 2.0 API in our CachingConnectionFactory and support for a delivery delay setting in JmsTemplate. Note that none of this has been tested against an actual JMS 2.0 provider yet, due to no such provider being available yet.
      
      Known limitations:
      * Spring's SingleConnectionFactory and CachingConnectionFactory do not support createContext calls for JMSContext creation at this point. Note that the JMSContext model bypasses the point of a Connection/Session pool anyway; this will only really work with a native JMS 2.0 ConnectionFactory and provider-specific pooling such as in an EE environment.
      * JmsTemplate has no out-of-the-box support for send calls with an async completion listener. Note that a CompletionListener can be specified in a custom ProducerCallback implementation if really necessary.
      
      There is no special support for the simplified JMSContext API, and likely never will be: JMSContext can be used from a native ConnectionFactory directly. @Inject JMSContext isn't supported due to rather involved rules for defining and scoping the injected context which are quite at odds with the Spring way of doing these things. We strongly recommend JmsTemplate instead, or @resource ConnectionFactory with a createContext call within a Java 7 try-with-resources clause (as shown in the specification). After all, JMSContext has primarily been designed with EE's one-session-per-connection model and JTA transactions in mind, not with Spring-style use of a native JMS provider and native JMS transactions.
      
      Issue: SPR-8197
      a3d7dc09
  4. 26 3月, 2013 1 次提交
    • S
      Remove warning suppression in mocks · 41737e82
      Sam Brannen 提交于
      This commit removes the suppression of warnings in Servlet and Portlet
      mocks since such suppression is no longer necessary with the upgrade to
      version 3.0 of the Servlet specification.
      41737e82
  5. 21 3月, 2013 3 次提交
  6. 20 3月, 2013 13 次提交
  7. 19 3月, 2013 10 次提交