If your application meets any of the following criteria, you should use a TxDataSource
in WebLogic Server:
Uses the Java Transaction API (JTA)
Uses the WebLogic Server EJB container to manage transactions
Includes multiple database updates during a single transaction.
以上摘自bea的文档,如果没有以上情况就使用Data Source