gopal1008 Posted April 2, 2015 Posted April 2, 2015 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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now