Using IDE Database Connections in Java code [message #668366] |
Mon, 19 February 2018 16:21 |
|
CMcKinstry
Messages: 3 Registered: February 2018
|
Junior Member |
|
|
I can find plenty of examples of how to create Database Connections in JDeveloper.
What I cannot find is how to make use of any connections in actual code.
Is it even possible?
E.g. I've created a connection called testConnection and I want to use it.
This certainly doesn't work:
Connection conn = DriverManager.getConnection(testConnection);
My basic underlying problem is I need to run a Java app once a day that communicates with a bunch of databases (Oracle and other types). This app is to be automated and run from Windows. I really do not to expose passwords for this, and these Database Connections looked like a clever way of getting around this problem. I potentially need to run it from several Window Servers.
If it is possible, how do I access these Database Connections?
Thanks,
|
|
|