This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am having trouble gaining connection to two different pools in the same method. I need to query two tables which reside in different data sources. The output from one query is the input for the second query. The second query gets executed for as many times as there are rows in the output of first query.
I am getting this exception when trying to access different connection pools using two different connection objects -->
"java.sql.SQLException: Connection has already been created in this tx context for pool named myPool. Illegal attempt to create connection from another pool: ccPool"