RE: How find DataSource?

2003-12-23 Thread Edgar P Dollin
: 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

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
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

RE: How find DataSource?

2003-12-22 Thread Marco Mistroni
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

Re: How find DataSource?

2003-12-22 Thread Vic Cekvenich
: 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

Re: How find DataSource?

2003-12-22 Thread Martin Gainty
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

Re: How find DataSource?

2003-12-22 Thread Vic Cekvenich
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?

2003-12-22 Thread e-denton Java Programmer
: 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

Re: How find DataSource?

2003-12-22 Thread Craig R. McClanahan
, 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

Re: How find DataSource?

2003-12-22 Thread Craig R. McClanahan
- 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

Re: How find DataSource?

2003-12-22 Thread e-denton Java Programmer
] 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

Re: How find DataSource?

2003-12-22 Thread Vic Cekvenich
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

Re: How find DataSource?

2003-12-20 Thread Vic Cekvenich
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(