If a Bean component A invokes another Bean component B in transactional way, how to specify a rollback logic in Bean B implementation?
You may want to take a look at policy-transaction demo: switchyard/quickstarts/demos/policy-transaction at master · jboss-switchyard/switchyard · GitHub
In this quickstart it retrieves a Transaction from TransactionManager, but it just intended to get working on both of EAP and karaf. You can simply lookup UserTransaction from JNDI or use CDI @Inject.
Retrieving data ...