1 of 1 people found this helpful
What is the purpose for different timeouts? If both are in the same transaction the Tx fails if you reach the smallest timeout
When I set timeout in transaction-jboss-beans.xml and transaction reach the timeout fail. However I want a specific less timeout for one of both xa-datasource. In transaction-jboss-beans.xml there are a timeout for 300 seconds (5 minutes) but in xa-datasource I need less timeout like 100 seconds because it is an external database and I want to prevent malfunctions or it has too much data. I can't change timeout in transaction-jboss-beans.xml because other datasource need 300 seconds.
Thanks for your reply.
I have a similar scenary, I read data from different data bases and one of them belongs to a third party. The reads from this database must be fast and we would like to set a short timeout when we read from it, if it is possible to configure this instead of setting it using code (maybe with some jpa property) it would be wonderful.
Did you find a solution for this?
Thanks in advance
Thanks for your interest but I haven't found a solution yet. All my attemps fail