Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Session - > DAO - > CMP

Subject: Session - > DAO - > CMP

2004-06-09       - By Andrew Law

 Back
Reply:     1     2     3     4     5     6     7     8  

Hi Koala,

An interesting answer to your question can be found at:

http://www.onjava.com/pub/a/onjava/2002/04/10/j2eedesign.html

HTH,

Cheers, Andrew

Koala wrote:

> Hi,
>
> I would like to know if it makes sense have DAO in front of an entity
> bean CMP. For example:
>
> Client   --> Session Facade --> DAO --> EntityBean
>
> Probably this scheme could have some advantages:
>
> 1) the back end (DB or XML file) is abstracted. (I can abstract an XML
> file behind a CMP bean?)
> 2) I can move my application written in DAO quicly in EJB without
> changing client code.
>
> and so on.
>
> But, if I am writing a new application, does it make sense use this
> schema? If so, what are the advantages?
> Thanks for your help in advance.
>
> PS
>
> if you have links talking about this use of DAO please let me know.
> (Do not send me mail of sites talking about general use of DAO).
>
> ====================================================================
> Companion Site: http://www.corej2eepatterns.com
> J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
> List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected)


--

Sun Microsystems <http://www.sun.com>

Andrew Law
Technical Account Manager

Telephone: 01506 672677
Mobile: 07796 337 826
Facsimile: 01506 672672

Sun Microsystems UK Ltd

Springfield
Linlithgow
West Lothian
Scotland
EH49 7LR

We make the network. <http://www.sun.com>









====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <title></title>
</head>
<body>
Hi Koala,<br>
<br>
An interesting answer to your question can be found at:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.onjava.com/pub/a/onjava/2002
/04/10/j2eedesign.html">http://www.onjava.com/pub/a/onjava/2002/04/10/j2eedesign
.html</a><br>
<br>
HTH,<br>
<br>
Cheers, Andrew<br>
<br>
Koala wrote:<br>
<blockquote type="cite" cite="mid40C6C943.2080909@(protected)">Hi, <br>
<br>
I would like to know if it makes sense have DAO in front of an entity <br>
bean CMP. For example: <br>
<br>
Client&nbsp;&nbsp; --&gt; Session Facade --&gt; DAO --&gt; EntityBean <br>
<br>
Probably this scheme could have some advantages: <br>
<br>
1) the back end (DB or XML file) is abstracted. (I can abstract an XML <br>
file behind a CMP bean?) <br>
2) I can move my application written in DAO quicly in EJB without <br>
changing client code. <br>
<br>
and so on. <br>
<br>
But, if I am writing a new application, does it make sense use this <br>
schema? If so, what are the advantages? <br>
Thanks for your help in advance. <br>
<br>
PS <br>
<br>
if you have links talking about this use of DAO please let me know. <br>
(Do not send me mail of sites talking about general use of DAO). <br>
<br>
==================================================================== <br>
Companion Site: <a class="moz-txt-link-freetext" href="http://www
.corej2eepatterns.com">http://www.corej2eepatterns.com</a> <br>
J2EE BluePrints: <a class="moz-txt-link-freetext" href="http://java.sun.com
/blueprints/corej2eepatterns">http://java.sun.com/blueprints/corej2eepatterns</a
> <br>
List Archive: <a class="moz-txt-link-freetext" href="http://archives.java.sun
.com/archives/j2eepatterns-interest.html">http://archives.java.sun.com/archives
/j2eepatterns-interest.html</a>
 <br>
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to <a class="moz-txt-link
-abbreviated" href="mailto:listserv@(protected)">listserv@(protected)</a>
 <br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>sig.html</title>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1">
      <br>

<div class="moz-signature">

<table cellpadding="5" cellspacing="2" border="0" width="750">
                 <tbody>
                   <tr>
                     <td valign="top" bgcolor="#594fbf" width="175"
align="left" colspan="2" nowrap="nowrap"><a href="http://www.sun.com"><img
src="http://www.sun.com/im/sun_logo.gif" alt="Sun Microsystems"
width="90" height="45" border="0">
                    </a>       <br>
                     <br>
                     <small><font color="#ffffff"><b><big>Andrew Law</big><br>
               Technical Account Manager</b><br>
                     <br>
               Telephone: 01506 672677<br>
               Mobile: 07796 337 826<br>
               Facsimile: 01506 672672</font></small><br>
                     </td>
                     <td valign="top" width="2"><small><small><br>
                     </small></small></td>
                     <td valign="top" bgcolor="#fbe249" nowrap="nowrap"><small
><small><big><font
color="#594fbf"><big><b>Sun Microsystems UK Ltd</b></big><br>
                            <br>
               Springfield<br>
               Linlithgow<br>
               West Lothian <br>
         Scotland <br>
      EH49 7LR<br>
        </font></big><br>
                     <a href="http://www.sun.com"><img
src="http://www.sun.com/im/home/masthead_slogan.gif"
alt="We make the network." width="200" height="41" border="0">
                    </a>       <br>
                     </small></small></td>
                   </tr>

 </tbody>
</table>
               <br>
               <br>
              </div>
                     <br>
     <br>
  <br>
 <br>
</div>
<br>
</body>
</html>
====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.