Oracle WebLogic Server 12c: Administration I — Question 40
Consider a WebLogic Java EE application that uses a JDBC data source.
Which three steps would the application developer typically write code to perform? (Choose three.)
Answer options
- A. Test the connection to verify the database's availability
- B. Add a new connection to the data source if none are available
- C. Close the connection to return the connection to the data source
- D. Request a connection from the data source
- E. Look up the data source using the JNDI name
Correct answer: A, D, E
Explanation
The correct answers are A, D, and E because these steps are essential in managing connections to a JDBC data source. Testing the connection ensures the database is reachable, obtaining a connection is necessary for database operations, and looking up the data source via JNDI is crucial for establishing the connection. Options B and C are incorrect as adding a connection and closing a connection are typically managed by the connection pool rather than being explicitly coded by the developer.