Reputation: 1570
I am using Open JPA 2.0 - IBM implementation on WebSphere V8. I need to set query timeout at individual query level. How this can be achieved?
Using below hint will set timeout for all queries, but I need to control this for specific queries
javax.persistence.query.timeout
Upvotes: 0
Views: 2859
Reputation: 15577
Errm, perhaps ...
query.setHint("javax.persistence.query.timeout", timeout);
Upvotes: 1