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
-
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
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
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
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
: 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
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
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
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
(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
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
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
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
/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
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
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
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
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
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
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
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
-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
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
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
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
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
://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
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
:
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
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]
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
31 matches
Mail list logo