You are right to use the NarayanaDataSourceBean as the wrapper for the resource. And the Narayana transactional driver supports the pooling with [JBTM-2972] Add connection pooling facilities to transactionaldriver such that it will allow close to return the connect… , but I think it can not be set by the application.properties in the spring-boot currently. The other way is to use the common DBCP2 with the Narayana, we had a quickstart https://github.com/jbosstm/quickstart/tree/master/spring/narayana-spring-boot
and hope it is helpful.
thanks a lot for your quick reply! I will investigate further using DBCP2
Only as suggestion, I think it would be nice if NarayanaDataSourceBean would allow programmer to directly configure both datasource settings and other details, more or less what Atomikos or other provider allow users to do already.