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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
18 matches
Mail list logo