[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: "Uh, what do I need this for" (was RE: XML.COM: How I LearnedtoLove

  • From: Leigh Dodds <ldodds@i...>
  • To: Michael Brennan <Michael_Brennan@a...>,'Nicolas LEHUEN' <nicolas.lehuen@u...>
  • Date: Thu, 23 Aug 2001 14:07:20 +0100

RE: "Uh

> -----Original Message-----
> From: Michael Brennan [mailto:Michael_Brennan@a...]
> Sent: 22 August 2001 21:35
> To: 'Nicolas LEHUEN'
> Cc: 'xml-dev'
> Subject: "Uh, what do I need this for" (was RE: XML.COM: How I Learned
> toLove daBomb)

[...comments on EJB DAO layers...]

> You'll also notice in Sun's J2EE Blueprints white papers, they
> encourage the notion of "value objects" that can encapsulate the state of
an entity bean
> in a lightweight object that permits interaction with EJBs at a more
> coarse-grained level. These objects are just data.

We use a separate DAO layer and immutable Value objects, and they work
very well. One advantage of a separate Data Access Object layer is that
if you're writing a non-EJB oriented application (e.g. batch
update/processing)
that doesn't need to run in a full application server, you can reuse this
code. In this way Entity beans become adapters to plug your business
logic into the DAO layer.

One side effect of immutable Value objects I noted recently when
adding a SOAP interface to one of our components, was that I couldn't
take advantage of the Apache SOAP support for automated (de-)serialisation
of JavaBeans. Value objects aren't JavaBeans because everything is
done in the constructor, and there are no set methods.

No great loss, but it did mitigate one of the possible benefits of using
the Apache SOAP framework: I still had to write Serializers and
Deserializers
the same as I would have had to do with a custom XML messaging
format.

Cheers,

L.


--
Leigh Dodds, Research Group, ingenta | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic |    sine necessitate"
http://www.xml.com/pub/xmldeviant    |     -- William of Ockham


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.