Hi,
I am setting up Hibernate programmatically, so that I can supply a secure password to the database in the code, rather than have it hardcoded in a file.
I am attempting to add connection pooling (everything is working fine without it for our demos) . I have read the how-tos in the wiki, searched the web and documents, and from what I can tell, the following code *should* be working.
Code:
Configuration cfg = new Configuration();
cfg.setProperty("hibernate.proxool.properties", path + "/conf/pool.properties");
cfg.setProperty("hibernate.proxool.pool_alias", "jdbc-0");
cfg.setProperty("hibernate.connection.password", pwdClear);
cfg.setProperty("hibernate.connection.dialect", dialect);
cfg.setProperty("hibernate.show_sql", showsql);
cfg.setProperty("hibernate.order_updates", "true");
//load the entity hbm file
path += "/conf/";
File f = new File(path + db + ".hbm.xml");
cfg.addFile(f);
//get the sessionFactory
sessionFactory = cfg.buildSessionFactory();
However, on JBoss startup, I am still getting the message:
Code:
11:31:23,421 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!).
So, clearly I have something configured incorrectly, but I can't figure it out. Also, would Apache dbcp be a better choice than proxool?
Thanks,
Jreifsnyder
Hibernate version: 3.2.1 GA
Name and version of the database you are using: Oracle 10g
JBoss version: 4.0.5