Hey guys, here is one of the many key issues which I was facing in one the web based java application on which I am currently working on. Here is the development environment.
There is key entry which was missing from my "hibernate.cfg.xml". Adding this entry resolves this issue.
Along with the above I do have following properties in my application
I tested this setting and it works fine.
I just fixed my broken pipe !!! :)
- Java 1.6
- Struts 2
- Hibernate with C3p0
- Postgres
- Tomcat 6
There is key entry which was missing from my "hibernate.cfg.xml". Adding this entry resolves this issue.
<property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
Along with the above I do have following properties in my application
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">10</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.timeout">1800</property>
<property name="hibernate.c3p0.max_size">10</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.timeout">1800</property>
I tested this setting and it works fine.
I just fixed my broken pipe !!! :)
No comments:
Post a Comment