Re: Database Access

2006-01-19 Thread Larry Meadors
Interesting note: iBATIS was in the top 3 for JDJ's "Best Java Persistence Architecture". http://jdj.sys-con.com/read/171303_3.htm Larry On 1/19/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > Asad Habib wrote the following on 1/19/2006 10:10 AM: > > What are the different ways in designing the p

RE: [OT] Re: Database Access

2006-01-19 Thread Frank W. Zammetti
t > http://idiacomputing.com/moin/JdbcPersistence > > - George > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] >> Sent: Thursday, January 19, 2006 10:17 AM >> To: Struts Users Mailing List >> Subject: [OT] Re: Dat

RE: [OT] Re: Database Access

2006-01-19 Thread George.Dinwiddie
[mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 10:17 AM > To: Struts Users Mailing List > Subject: [OT] Re: Database Access > > > It appears that you're still a student and you've asked for a > "...simple > way to access a database."

[OT] Re: Database Access

2006-01-19 Thread DGraham
It appears that you're still a student and you've asked for a "...simple way to access a database." My suggestion, start with JDBC. From there, you can investigate other options including, but not limited to, DbUtils, iBatis, Hibernate, EJB entity beans, etc. Scott Ambler has a nice article y

Re: Database Access

2006-01-19 Thread Rick Reumann
Asad Habib wrote the following on 1/19/2006 10:10 AM: What are the different ways in designing the persistence layer so that it works with a Struts application? Most either recommend Hibernate or iBATIS. I like iBATIS. I have a lesson on it using it with Struts that should be pretty easy to f

Re: Database Access

2005-02-02 Thread Larry Meadors
I have tried jdbc, hibernate, and iBATIS for data access. For me, it was a matter of finding a balance between simplicity (low-level jdbc resouce management sucks), power (how can I optimize this SQL statement?), flexibilty (do not dictate to me how to write applications), and testability (mocking

Re: Database Access

2005-02-02 Thread Ben Taylor
So you use one approach or the other? On Tue, 01 Feb 2005 18:43:41 -0600, Vic <[EMAIL PROTECTED]> wrote: > See if this helps: > > http://wiki.apache.org/struts/DaoRelated > > .V > > Ben Taylor wrote: > > >Can anyone tell me the best way to setup / manage database connections > >using Struts?

Re: Database Access

2005-02-01 Thread Vic
See if this helps: http://wiki.apache.org/struts/DaoRelated .V Ben Taylor wrote: Can anyone tell me the best way to setup / manage database connections using Struts? I've read a couple of books on Struts and they talk about using a processbean though I am unsure how this is linked with things like

Re: Database access in contextInitialized

2004-05-02 Thread Richard Yee
Craig, When I put logging statements in the ServletContextInitializer class, I see that the ServletContextInitializer.contextInitialized() method is actually called after the servlet init() methods for servlets that load at startup. Is this correct? You say that the contextInitialized() gets cal

Re: Database access in contextInitialized

2004-05-02 Thread Samuel Rochas
Hello Craig, Indeed, the recommended pattern today is for you to acquire your DataSource instances from the JNDI naming context Thanks for your advise. I was the way I handled it before using struts, so I will continue that way. Sincerly Samuel --- andinasoft SA - Software y Consulting --- Ma

Re: Database access in contextInitialized

2004-05-01 Thread Craig R. McClanahan
Samuel Rochas wrote: Hello Struts Gurus, I am starting with struts. I used to make some initialization in my Servlets using the init() method. With struts, I just implemented the contextInitialized method of ServletContextListener Interface, and I have a place for such initializations. Fine.