Jump to content

Recommended Posts

Posted

Hello,

           Is there a way I can look up the JDBC datasources created on JASPER server from java program in a JAR file ? The JAR file will reside inside of jasper server. I connect to database using below code. Bu the issue is I dont want to hard code the password and username in the code. So If I can look up the datasource from jasper server itself that would be great. My program will not need multiple urls for different environements. 

 

 

 Class.forName("oracle.jdbc.driver.OracleDriver");     [/code]
 con = DriverManager.getConnection( "jdbc:oracle:thin:@test:1521:test", userId, password);[/code]

          

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...