I'm experimenting XA transactions with Ehcache. Currently I'm using Spring transaction management and Bitronix as transaction manager. I create, configure and fill up a cache using the method below:
@Transactional public void createCache() ...