Can you explain what are the ways to avoid ResourceExceptions when sending requests for databaseconnections?
Submitted by: AdministratorThe problem with the servers is to have few resources or the database connection in the connection pool to decrease the work load. The servers need to increase the maximum number of connections in the connection pool and utilize it to balance the overall load on the server. The server needs to be optimally designed to allow the connection pool to execute few threads and get the work done. The application should be designed to find out whether there are connections available or not. If there are connections available then it shows the message of NoResourceException. This is shown by the example:
try{
// your statement
} catch(Exception handleEx) {
// your statement
} finally {
try{ conn.close();
}catch (Exception ignore){} // this returns the connection pool
}
Submitted by: Administrator
try{
// your statement
} catch(Exception handleEx) {
// your statement
} finally {
try{ conn.close();
}catch (Exception ignore){} // this returns the connection pool
}
Submitted by: Administrator
Read Online Web Logic Server Job Interview Questions And Answers
Top Web Logic Server Questions
☺ | Do you know what is the local interface used by web logic server? |
☺ | Explain where are the files placed while deploying the resource adapter in web logic server? |
☺ | Explain what is the purpose of stub in web-logic server cluster? |
☺ | Tell me how are the notifications generated when a server is added to a cluster? |
☺ | Explain what are the transaction isolation levels supported by WebLogic jDriver? |
Top Servers (Computing) Categories
☺ | Windows Server 2008 Interview Questions. |
☺ | Exchange Server 2007 Interview Questions. |
☺ | MS Exchange Server 2003 Interview Questions. |
☺ | Windows Server 2003 Interview Questions. |
☺ | ATL Server Interview Questions. |