RE: Struts , hibernate, and DBCP

2005-03-30 Thread David G. Friedman
sed to it before you jump into the added, but useful, complications of caches, proxying, ThreadLocals, etc. Regards, David -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 8:53 AM To: Struts Users Mailing List Subject: RE: Struts , hibernate

RE: Struts , hibernate, and DBCP

2005-03-30 Thread Brian McGovern
ay, March 29, 2005 6:37 PM To: Struts Users Mailing List Subject: RE: Struts , hibernate, and DBCP Brian, If you use a Tomcat resource reference to initialize your DB pool, be careful where you put it: the location you place that init reference makes the difference between YOUR webapp using the hi

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
Great tips. Exactly what I was lookin for. Thanks David. -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:37 PM To: Struts Users Mailing List Subject: RE: Struts , hibernate, and DBCP Brian, If you use a Tomcat resource reference to

RE: Struts , hibernate, and DBCP

2005-03-29 Thread David G. Friedman
Brian, If you use a Tomcat resource reference to initialize your DB pool, be careful where you put it: the location you place that init reference makes the difference between YOUR webapp using the hibernate pool and ANY webapp being able to use your hibernate pool. Now, since someone posted about

Re: Struts , hibernate, and DBCP

2005-03-29 Thread N G
ian McGovern <[EMAIL PROTECTED]> wrote: > Ok.. Im not to sure how that works. Can you explain a little more? > > -Original Message- > From: N G [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 29, 2005 4:34 PM > To: Struts Users Mailing List > Subject: Re: Strut

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
Ok.. Im not to sure how that works. Can you explain a little more? -Original Message- From: N G [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 4:34 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP Oh... I didn't know that DBCP doesn't init

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
ARRG>... but someone beat me to it! hahhahaha -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 4:38 PM To: Struts Users Mailing List Subject: RE: Struts , hibernate, and DBCP This is the first time i actually get to help someone in t

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
ver URL Syntax looks like jdbc:jtds:sqlserver://:/ -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 4:00 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP If you are using SQL Server, I would say, watch out for the driv

Re: Struts , hibernate, and DBCP

2005-03-29 Thread Erik Weber
Kris Schneider wrote: Erik Weber wrote: If you are using SQL Server, I would say, watch out for the drivers as much as the DataSource implementation. I have read and heard many horror stories about the Microsoft drivers and have experienced problems myself (though pinpointing them is another ma

Re: Struts , hibernate, and DBCP

2005-03-29 Thread N G
Oh... I didn't know that DBCP doesn't initialize the pool on server startup and thus misunderstood your question. Truth is, if you want to go the easiest route, without having to make your own Controller, you can just configure your Hibernate SessionFactory in a listener (ServletContextListener.co

Re: Struts , hibernate, and DBCP

2005-03-29 Thread Kris Schneider
lto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:46 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP Interesting. Yeah, I was going to suggest writing some "trigger" code for startup, and it looks like that's what you have done. Also, you'

Re: Struts , hibernate, and DBCP

2005-03-29 Thread Erik Weber
Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP Interesting. Yeah, I was going to suggest writing some "trigger" code for startup, and it looks like that's what you have done. Also, you're not stuck with DBCP. There are many DataSource implementations ou

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
ive c3p0 a shot with and without my extended base class and see what happens there. -B -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 3:46 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP Interesting. Yeah, I was goin

Re: Struts , hibernate, and DBCP

2005-03-29 Thread Erik Weber
in order for the pool to be created. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 2:58 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP In my opinion, the question is on topic. I'm not sure whether by "insta

RE: Struts , hibernate, and DBCP

2005-03-29 Thread Brian McGovern
m the JNDI resource in order for the pool to be created. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 2:58 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP In my opinion, the question is on topic. I'm not su

Re: Struts , hibernate, and DBCP

2005-03-29 Thread Erik Weber
In my opinion, the question is on topic. I'm not sure whether by "instantiated" you mean the pool class or the connection class. If it's the former, I'm not sure of the answer, but I would assume that the pool class typically is instantiated at server startup. If not, wouldn't the JNDI lookup fa

RE: Struts , hibernate, and DBCP [solution] - but would like opinions on my approach

2005-03-29 Thread Brian McGovern
lace to instantiate a centralized logger too, etc. Thanks -B -Original Message- From: N G [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 2:36 PM To: Struts Users Mailing List Subject: Re: Struts , hibernate, and DBCP This has nothing to do with Struts: http://jakarta.apache.o

Re: Struts , hibernate, and DBCP

2005-03-29 Thread N G
This has nothing to do with Struts: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Good luck, NG. On Tue, 29 Mar 2005 13:40:56 -0500, Brian McGovern <[EMAIL PROTECTED]> wrote: > Im using struts, hibernate and dbcp connection pooling. Everything works > fine