Re: config database in Tomcat

2009-11-24 Thread dishmily
) ResourceLink name=jdbc/mysql global=jdbc/mysql type=javax.sql.DataSource/ Pid Ster wrote: On 23/11/2009 16:03, dishmily wrote: i have made few changes, but it didn't work. (my project uses tomcat and hibernate.) You didn't mention that before. You need to configure Hibernate

Re: config database in Tomcat

2009-11-24 Thread dishmily
=hibernate.current_session_context_classthread/property property name=hibernate.cache.provider_classorg.hibernate.cache.NoCacheProvider/property /session-factory /hibernate-configuration dishmily schrieb: thank you, it works! there are two factor need to mention: 1) as i used hibernate to create

config database in Tomcat

2009-11-23 Thread dishmily
i use 3 tomcats in one PC, in each tomcat i have a webservice, for each webservice i use a mysql database. my question is: how can i write a config file in each tomcat to let tomcat1 load DB1, tomcat2 load DB2 and tomcat3 load DB3. thanks. -- View this message in context:

Re: config database in Tomcat

2009-11-23 Thread dishmily
thanks. the tomcat i use is Tomcat 6.0. i will have a look at the URL. Pid Ster wrote: On 23/11/2009 13:00, dishmily wrote: i use 3 tomcats in one PC, in each tomcat i have a webservice, for each webservice i use a mysql database. my question is: how can i write a config file in each

Re: config database in Tomcat

2009-11-23 Thread dishmily
(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Pid Ster wrote: On 23/11/2009 13:00, dishmily wrote: i use 3 tomcats in one PC, in each tomcat i have a webservice, for each webservice i use a mysql database