3

Okay, so I am very hopeful that this is possible. Many libraries offer implementations of javax.naming.spi.ObjectFactory (MongoDB, HikariCP). I am trying to take these examples, aimed at Tomcat, and code them in TomEE's resources.xml.

TomEE veteran Romain has a fantastic explanation on how the resources.xml works. Unfortunately, without a provider for javax.naming.spi.ObjectFactory, creating a custom datasource is quite difficult for this interface.

I am hoping a TomEE dev can chime in on the possibility of javax.naming.spi.ObjectFactory's in resources.xml, or the possibility of it in another TomEE configuration file, or perhaps a future feature if this is not currently possible.

James
  • 329
  • 2
  • 12

0 Answers0