: Re: How find DataSource?
e-denton Java Programmer wrote:
Has anyone set up a connection pool using web.xml? Steps? Examples?
Tips?
No one has, it can't be done. You can declare it in web.xml,
that's all. Read Rick Reumans tutorial on ibatis dao and
ibatis petstore 3
the one time setup code, and where to save
the DataSource object reference (in the application?).
Thanks again,
Will
- Original Message -
From: Vic Cekvenich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 12:14 PM
Subject: Re: How find DataSource?
See sample
Hi,
How about a plugIn?
Regards
marco
-Original Message-
From: e-denton Java Programmer [mailto:[EMAIL PROTECTED]
Sent: 22 December 2003 14:11
To: Struts Users Mailing List
Subject: Re: How find DataSource?
Merry Christmas,
Wow, I finally connected to my data source
: Vic Cekvenich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 12:14 PM
Subject: Re: How find DataSource?
See sample source code section here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
Ex:
Context ctx = new InitialContext
how about putting it into DynaActionForm::initialize which initialises the
beans anyhow..
-Martin
this way your connections are
- Original Message -
From: Vic Cekvenich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 22, 2003 9:31 AM
Subject: Re: How find DataSource?
I
repost (news error?)
Martin Gainty wrote:
how about putting it into DynaActionForm::initialize which
initialises the
beans anyhow..
-Martin
A DAO in a form or a bean hmmm. If that is what you want to do in
an MVC framework.
I don't do data source in formbeans.
Take a peak at PetStore
: Re: How find DataSource?
I put mine in a static block of the base DAO. (static as in once per
class, and all DAO's extend my base DAO).
.V
e-denton Java Programmer wrote:
Merry Christmas,
Wow, I finally connected to my data source! Now, I want to put the code
somewhere
, December 20, 2003 12:14 PM
Subject: Re: How find DataSource?
See sample source code section here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
Ex:
Context ctx = new InitialContext();
if(ctx == null )
throw new Exception(Boom
- Original Message -
From: Vic Cekvenich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 22, 2003 8:31 AM
Subject: Re: How find DataSource?
I put mine in a static block of the base DAO. (static as in once per
class, and all DAO's extend my base DAO).
.V
e
]
Sent: Monday, December 22, 2003 1:41 PM
Subject: Re: How find DataSource?
how about putting it into DynaActionForm::initialize which initialises the
beans anyhow..
-Martin
this way your connections are
- Original Message -
From: Vic Cekvenich [EMAIL PROTECTED]
To: [EMAIL PROTECTED
e-denton Java Programmer wrote:
Has anyone set up a connection pool using web.xml? Steps? Examples? Tips?
No one has, it can't be done. You can declare it in web.xml, that's all.
Read Rick Reumans tutorial on ibatis dao and ibatis petstore 3 example
and do that, and you will be in a good
See sample source code section here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
Ex:
Context ctx = new InitialContext();
if(ctx == null )
throw new Exception(Boom - No Context);
DataSource ds =
(DataSource)ctx.lookup(
12 matches
Mail list logo