-
1. Re: Using Narayana with Hibernate + Spring Boot
zhfeng Apr 8, 2018 10:08 PM (in response to mauriclaudio)Hi mauriclaudio,
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.
Amos
-
2. Re: Using Narayana with Hibernate + Spring Boot
mauriclaudio Apr 9, 2018 2:27 AM (in response to zhfeng)Amos,
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.
Regards,
Claudio