I'm creating a db connection with Oracle using JDBC in a JSP page.
Is it safe to call connection every time before querying, as pages contains server side pagination and also some insert/delete queries too? Or Is there any better approach to handle connection instead of calling every time getConnection(...)?
DriverManager.getConnection(url, user, password);
 
     
    