Home » Developer & Programmer » JDeveloper, Java & XML » Using IDE Database Connections in Java code (JDeveloper, 12.2.1.2.0, Windows Server 2012)
Using IDE Database Connections in Java code [message #668366] Mon, 19 February 2018 16:21 Go to previous message
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,
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How Can I Call Rdf Report,and 11g form through Jsp Pages in Oracle Jdeveloper
Next Topic: Concat XML data in a loop
Goto Forum:
  


Current Time: Fri Apr 26 08:17:55 CDT 2024