Class ServiceCommandTransactionProxy


  • public class ServiceCommandTransactionProxy
    extends Object
    Proxy for wrapping service commands in Spring-managed transactions. Each of the "do stuff" methods on the service command (isAuthorized, isValid and execute) are wrapped in their own transactions.

    This means that if you run a service command the multi-method-call way without an additional containing transaction that the command can join, you run the risk of Hibernate errors. If you are running a service without a containing transaction, use the single method "execute and catch exceptions" method.

    See Also:
    ServiceCommand
    • Constructor Detail

      • ServiceCommandTransactionProxy

        public ServiceCommandTransactionProxy​(org.springframework.transaction.PlatformTransactionManager transactionManager)
      • ServiceCommandTransactionProxy

        public ServiceCommandTransactionProxy​(org.springframework.transaction.PlatformTransactionManager transactionManager,
                                              String isolationLevel,
                                              String propagation)