Re: Design Advice - Relational Databases Java Objects

2002-06-06 Thread Robert Taylor
thread that join the transaction. HTH, robert -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:33 AM To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects Aha, ThreadLocal. Sounds

Re: Design Advice - Relational Databases Java Objects

2002-06-06 Thread Roy Truelove
- From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 4:19 PM Subject: Re: Design Advice - Relational Databases Java Objects ... (still being dim) ... but how do the DAOs see the Transaction object? Robert Taylor wrote: The DAOs

Re: Design Advice - Relational Databases Java Objects

2002-06-06 Thread @Basebeans.com
Subject: Re: Design Advice - Relational Databases Java Objects From: Jeff Duska [EMAIL PROTECTED] === I think this is the point that Vic was making. The transaction that you will thinking of in the application might not nicely map to simple DAO objects. While I might have Order and Order

Re: Design Advice - Relational Databases Java Objects

2002-06-05 Thread Adam Hardy
PROTECTED]] Sent: Wednesday, June 05, 2002 2:33 AM To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects Aha, ThreadLocal. Sounds good, but I still have problems working out how the DAOs get there. OK, I'm possibly being a bit dim here - how does the DAO

Re: Design Advice - Relational Databases Java Objects

2002-06-05 Thread Adam Hardy
thread by storing it in a ThreadLocal variable, so I don't have to pass the transaction around. robert -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 4:46 PM To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java

RE: Design Advice - Relational Databases Java Objects

2002-06-05 Thread Robert Taylor
: Design Advice - Relational Databases Java Objects Aha, ThreadLocal. Sounds good, but I still have problems working out how the DAOs get there. OK, I'm possibly being a bit dim here - how does the DAO access the ThreadLocal holding your connection? Robert Taylor wrote: Transaction makes

Re: Design Advice - Relational Databases Java Objects

2002-06-04 Thread Robert Taylor
If the data access objects completely encapsulate the connection stuff, how does the business object wrap two calls to the data access layer in one transaction? Take for example the well-worn credit and debit financial transaction. Would you wrap that up into one data access object and

Re: Design Advice - Relational Databases Java Objects

2002-06-04 Thread Adam Hardy
Hi Robert, that is more or less what I am aiming to do. I see you don't pass connections around - at least not across your business to DAO interface. So from your code snippet, I guess your transaction object gets the connection and puts it somewhere that the DAOs can find it? Or do you pass

RE: Design Advice - Relational Databases Java Objects

2002-06-04 Thread Robert Taylor
To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects Hi Robert, that is more or less what I am aiming to do. I see you don't pass connections around - at least not across your business to DAO interface. So from your code snippet, I guess your transaction

Re: Design Advice - Relational Databases Java Objects

2002-06-03 Thread Ted Husted
(1) Is it best for the data access layer to throw exceptions on error to be picked up by the business objects then struts actions, or would it be good to use a struts-type message object and use strings in the application resources file (I'm just worried my exceptions' text would not be

Re: Design Advice - Relational Databases Java Objects

2002-06-03 Thread Adam Hardy
As mentioned elsewhere, getting a database connection from the web tier is not a good practice. The Struts framework does try to encourage best practice but sometimes takes a dip in the pool of pragmatism. The Generic Connection pool is one example of this. The data access objects should take

Re: Design Advice - Relational Databases Java Objects

2002-06-03 Thread Kevin . Bedell
As mentioned elsewhere, getting a database connection from the web tier is not a good practice. The Struts framework does try to encourage best practice but sometimes takes a dip in the pool of pragmatism. The Generic Connection pool is one example of this. The data access objects should

Re: Design Advice - Relational Databases Java Objects

2002-06-02 Thread @Basebeans.com
Subject: Re: Design Advice - Relational Databases Java Objects From: Vic C [EMAIL PROTECTED] === Somone someplace need to know how the DB layer talks to DB. No magic in computers, and a common applied practice is roll your own beans. The beans need to logicaly map to the presentation

Re: Design Advice - Relational Databases Java Objects

2002-05-31 Thread Adam Hardy
/products/jdev/htdocs/j2ee_bc4j.html Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 6:44 PM Subject: Re: Design Advice - Relational Databases Java Objects

R: Design Advice - Relational Databases Java Objects

2002-05-31 Thread daniele rizzi
Mailing List Oggetto: Re: Design Advice - Relational Databases Java Objects There's still one question I've got about using object - relational mapping DB access packages: what happens when I want to pull out a COUNT(*) on a grouping in the database? For instance when I want to show the number

Re: R: Design Advice - Relational Databases Java Objects

2002-05-31 Thread Adam Hardy
for this sort of questions and SELECT COUNT(*) FROM MY_TABLE straight to the db? d.rizzi -Messaggio originale- Da: Adam Hardy [mailto:[EMAIL PROTECTED]] Inviato: venerdi 31 maggio 2002 10.01 A: Struts Users Mailing List Oggetto: Re: Design Advice - Relational Databases Java Objects There's

R: R: Design Advice - Relational Databases Java Objects

2002-05-31 Thread daniele rizzi
PROTECTED]] Inviato: venerdi 31 maggio 2002 11.06 A: Struts Users Mailing List Oggetto: Re: R: Design Advice - Relational Databases Java Objects Yes sure but where would I do that? If I've got a complete DB access object-relation mapping package between my business classes and my database, then I

Re: Design Advice - Relational Databases Java Objects

2002-05-31 Thread Steve Muench
Subject: Re: Design Advice - Relational Databases Java Objects | There's still one question I've got about using object - relational | mapping DB access packages: | | what happens when I want to pull out a COUNT(*) on a grouping in the | database? For instance when I want to show the number

Re: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Adam Hardy
layer. FWIW - Kevin Adam Hardy [EMAIL PROTECTED] on 05/29/2002 12:44:28 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Kevin Bedell/Systems/USHO/SunLife) Subject: Design Advice - Relational Databases Java

Re: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Adam Hardy
depends on the capabilities of the data-access layer you are using. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 12:44 PM To: Struts Users Mailing List Subject: Design Advice - Relational Databases Java Objects Hi All, I saw this thread

RE: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Michael Mok
like to share my experience. Michael -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Thursday, 30 May 2002 17:33 To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects Hello Jerome, I'm not sure why I'm so bad at searching

Re: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Adam Hardy
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: Thursday, 30 May 2002 17:33 To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects Hello Jerome, I'm not sure why I'm so bad at searching the net not finding things like this. ObjectBridge

Re: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Michael Mok
www.teatimej.com - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, May 30, 2002 7:06 PM Subject: Re: Design Advice - Relational Databases Java Objects Michael, I missed Sun's JDO as well. Were you involved in the decision to go

Re: Design Advice - Relational Databases Java Objects

2002-05-30 Thread Adam Hardy
PROTECTED] Sent: Wednesday, May 29, 2002 6:44 PM Subject: Re: Design Advice - Relational Databases Java Objects | | | | Adam - | | Have you looked at Torque from the Jakarta Tubine project? | | I haven't used it but have heard good things about it. It provides an | ability to perform O/R mapping

Re: Design Advice - Relational Databases Java Objects

2002-05-29 Thread Jin Bal
Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 5:44 PM Subject: Design Advice - Relational Databases Java Objects Hi All, I saw this thread in the archives and I thought I'd pinch the title. I've spent this afternoon

RE: Design Advice - Relational Databases Java Objects

2002-05-29 Thread Jerome Jacobsen
List Subject: Design Advice - Relational Databases Java Objects Hi All, I saw this thread in the archives and I thought I'd pinch the title. I've spent this afternoon surfing the web looking at stuff on Sun, Jakarta and lots of smaller sites looking for a ready-made data access layer package

RE: Design Advice - Relational Databases Java Objects.

2002-04-30 Thread Scott Abel
://www.object-relational.com/object-relational.html -Original Message- From: Francisco Hernandez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 11:38 AM To: Struts Users Mailing List Subject: Re: Design Advice - Relational Databases Java Objects. excellent explanation, this should

RE: Design Advice - Relational Databases Java Objects.

2002-04-17 Thread David . A . Ventimiglia
To: [EMAIL PROTECTED] Subject: Design Advice - Relational Databases Java Objects. I'm hoping that as many people as possible will contribute their own personal experience and methods to this post. I have a relational database that contains information used to build java objects during runtime, I'm

RE: Design Advice - Relational Databases Java Objects.

2002-04-17 Thread Kyle Brown
: Subject:RE: Design Advice - Relational Databases Java Objects. I'm sure you've got many useful replies already, but let me add my two cents: I'm using Torque as an Object-Relational persistence mechanism, and am getting a lot of mileage out of it. It's *part* of the Jakarta Turbine project

RE: Design Advice - Relational Databases Java Objects.

2002-04-17 Thread Sandra Cann
For a O-R mapping patterns solution that is integrated with Struts, have a look at the open source Expresso Framework at www.jcorporate.com. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Design Advice - Relational Databases Java Objects.

2002-04-17 Thread Francisco Hernandez
to actual EJBs and nothing in the web tier has to change and both DAOs and DTOs can be reused. -Original Message- From: rob [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 6:31 AM To: [EMAIL PROTECTED] Subject: Design Advice - Relational Databases Java Objects