configuring Stored Procedure
I need to use stored procedure, using Spring JDBC template, but in the spring document i have seen the configurations are hardcoded in the code ie getting connection and all other stuffs,
PHP Code:
DriverManagerDataSource ds = new DriverManagerDataSource();
ds.setDriverClassName("oracle.jdbc.OracleDriver");
ds.setUrl("jdbc:oracle:thin:@localhost:1521:mydb");
ds.setUsername("scott");
ds.setPassword("tiger");
MyStoredProcedure sproc = new MyStoredProcedure(ds);
Map results = sproc.execute();
printMap(results);
Is this examples shows that SP's, DB connection need to be hard coded?
Here i dont want to hard code the clasname, url, i need to do configure in my Springdao.xml and inject the values?