Reputation: 623
I have following environment:
EAR application on WebSphere 9, container managed transactions using XA datasource for Oracle 19c database (let's name it database "A").
The problem is that datasource (in some transactions), i.e. database "A" is calling database "B" via database link (database "B" is also Oracle 19c).
Connection pool gets "Too many database links in use" error message because of 2 phase commit. Let's say max. number of database links in use is 4, if i refresh screen 5th time i get SQL exception.
Setting maximum database links in use parameter in database properties only delays the problem.
I am in no control (from application perspective) of closing database links.
ATM we've set datasource to non-XA and everything works fine, but in some time we'll need to manualy handle transaction that include one datasource and WebSphere MQ.
Anyone got any ideas or experience with this setup?
EDIT: I'm trying to get this working with JPA 2.0.
Upvotes: 0
Views: 430
Reputation: 6094
You have two options:
This article describes the fixes/workarounds in greater detail.
Upvotes: 1