Re: DAO with EOF

"Jerry W. Walker" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi, Anders,

How about using your WO application as the interface to your database  
through standard EOF and feeding results to your other application  
through Web Services.

If you took this approach, all of your persistence logic could be  
retained in the WO app using all the best O/R design approaches  
provided by EOF. Using the other approach basically forces you into a  
lowest common denominator approach which might prove quite frustrating.

The biggest downside to the Web Services approach that I can see is  
speed. If your other app accesses a great deal (particularly, large  
bursts) of data from the database, then the Web Services approach  
will probably not work.

Regards,
Jerry

On Nov 14, 2007, at 1:22 PM, Anders Peterson wrote:

> Daryl Thachuk wrote:
>
>> On 13-Nov-07, at 5:11 AM, Anders Peterson wrote:
>>> Hi,
>>>
>>> I'd like to make my business objects independent of EOF. Thinking  
>>> about doing doing this using the Data Access Object design  
>>> pattern where the EOs are the DAOs and the BOs are POJOs.
>>>
>>> http://java.sun.com/blueprints/corej2eepatterns/Patterns/ 
>>> DataAccessObject.html
>>>
>>> Is (something like) this commonly done? Has anyone done it?
>>>
>>> /Anders
>>>
>> Why would you want to do this?
>
> I've started thinking about this because I have two different  
> application in the same domain - one is a WebObjects app the other  
> one is not. Trying to figure a pattern that will allow me to share  
> as much code as possible between the two apps.
>
> /Anders
>
>> I think this pattern exists because of limitations in J2EE.  
>> Limitations which do not exist in EOF.
>> Of course I could be wrong :-)
>> -daryl
>> ------
>> Daryl Thachuk
>> Montage Technologies Inc.
>> http://www.montagetech.com
>> --------------------------------------------------------------------- 
>> ---




--
__ Jerry W. Walker,
    WebObjects Developer/Instructor for High Performance Industrial  
Strength Internet Enabled Systems

     [email protected]
     203 278-4085        office
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.