FWIW... I personally agree that DataSource should always be used with the caveat that we all understand that DataSource is an interface and can easily be implemented for non-EE uses backed by anything really (Proxool, C3P0, HikariCP, BoneCP, etc). The complexity of EE and XA only really comes to bear in implementing XAResource which I am specifically not including in that statement. |