# A service method that writes to both databases, then throws --- @Transactional (no name): Spring picks the @Primary manager, customersTransactionManager --- thrown: java.lang.IllegalStateException: boom after both writes rows after the rollback: customers.customer=0 orders.purchase_order=1 --- @Transactional("ordersTransactionManager"): the other database is now the one that rolls back --- thrown: java.lang.IllegalStateException: boom after both writes rows after the rollback: customers.customer=1 orders.purchase_order=0