If an application calls DataSource.getConnection multiple times in the same thread and transaction, will WebLogic Server handle giving me the same connection and transaction?
A. A common scenario might be to have multiple methods that are called within a transaction (begin/commit) that do something like the following:Context ctx = new InitialContext(); DataSource ds = (javax.sql.DataSource) ctx.lookup(“connpoll”); // work using Connection In this case, all of the work will be done within the transaction and the same underlying JDBC connection will be used as long as the DataSource ds is a tx data source.
Related Questions
- If an application calls DataSource.getConnection multiple times in the same thread and transaction, will WebLogic Server handle giving me the same connection and transaction?
- What are the transaction response times for the different communication methods?
- What is the application process for a potential transaction?