I am not sure whether i am posting this in the correct forum. We are using SLSB(CMT) and Hibernate in our application. One of our SLSB interacts with the database for database operations. We are trying to find a way through which we can show the user a message whenever the Database is locked(may be for backup).
Here's our scenario:
- User through
jsp does some operation, which results in the invocation of the SLSB
- The SLSB(with CMT) then does a database operation
- Consider a scenario in which the database is locked. In such a case the SLSB just waits(even after the transaction timeout). As a result the application just hangs.
The scenario occurs very rarely, but we would like to show a message to the user the database is currently locked. Is this possible? Any suggestions are welcome.
Thank you