RE: Database access design question

2002-06-10 Thread Vikram Goyal01
What exactly is your question? The samples given with Struts do not necessarily following the best practices, they are more like proof of concepts than anything else. Rgs Vikram -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 1:45 PM To:

Re: Database access design question

2002-06-10 Thread rainer juenger
I want to accesss the database from a business logic bean that should not emplement *.servelet.* classes. But how can I then initialize the DataSource? like: dataSource = servlet.findDataSource(null); ?? Thanks Rainer What exactly is your question? The samples given with Struts do not

RE: Database access design question

2002-06-10 Thread Vikram Goyal01
a connection pool (which you should really), get the connection object out of the pool and use it to access the database. HTH Vikram -Original Message- From: rainer juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 2:04 PM To: Struts Users Mailing List Subject: Re: Database access

Re: Database access design question

2002-06-10 Thread rainer juenger
juenger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 2:04 PM To: Struts Users Mailing List Subject: Re: Database access design question I want to accesss the database from a business logic bean that should not emplement *.servelet.* classes. But how can I then initialize

RE: Database access design question

2002-06-10 Thread Jerry Jalenak
Mailing List Subject: RE: Database access design question 1. Do not use the session bean to access the datasource... create a data access object which locates the datasource. 2. Lookup the datasource using a jndi name not a servlet. Register your datasource with the jndi server. (Does the servlet

RE: Database access design question

2002-06-10 Thread wbchmura
To: struts-user Subject: Re: Database access design question I want to accesss the database from a business logic bean that should not emplement *.servelet.* classes. But how can I then initialize the DataSource? like: dataSource = servlet.findDataSource(null); ?? Thanks Rainer What exactly is your

RE: Database access design question

2002-06-10 Thread Robert Taylor
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: RE: Database access design question I did something and I have been wondering if it is right... So this may be a good time. I have three levels in my

RE: Database access design question

2002-06-10 Thread wbchmura
. robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:39 AM To: [EMAIL PROTECTED] Subject: RE: Database access design question I did something and I have been wondering if it is right... So this may be a good time. I have three

RE: Database access design question

2002-06-10 Thread Robert Taylor
]] Sent: Monday, June 10, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: Database access design question Thanks for the feedback on that one. No matter how I sliced that one I always had some kind of problem with how I was seperating everything up... I think the part that really confused me

Re: Database access design question

2002-06-10 Thread rainer juenger
pageContext, sessions or what so ever. There must be a way! thanks 1000 times for a hint! Rainer - Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 10, 2002 3:17 PM Subject: RE: Database access design question I'm

Re: Database access design question

2002-06-10 Thread Ted Husted
- Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, June 10, 2002 3:17 PM Subject: RE: Database access design question I'm needing to move my data access from my Actions to a 'pure' business bean. Does anyone

RE: Database access design question

2002-06-10 Thread wbchmura
); } -Original Message- From: jakarta.rainer [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 11:47 AM To: struts-user Subject: Re: Database access design question Sorry but I am in another galaxy as you guys are. My problems are not that complex yet and my knowledge isn't