Yes Jim, I'm agree with you. Maybe you have misinterpreted my last sentence
or maybe I've expressed the concept in the wrong way or both.
I want just to say that I'm using OJB+Struts using directly the persistence
broker instead of ODMG/OJB and I'm not implementig the DAO (yet).
Because liooil asked for how to connect ODMG/OJB to his DAO pattern, while
my solution avoid it, I thought to give him some hints even though not
specific for his situation but I specified that it works so he could start
from my way and then he could evolve to the pattern (as he can see at
http://www.reumann.net/struts/lesson1/step5.do).

I know that if my application works now, it continue to work if I add a
level of indirection and obviously it becomes more flexible and reusable.
I'm a big supporter of the pattern movement but I'm also new with struts,
ojb and all related things, so I prefer to procede taking one step at a
time. The next iteration on my application contemplate the introduction of
the DAO.

Anyway, thanks for your specification.

----- Original Message ----- 
From: "Jim Barrows" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 2004 9:24 PM
Subject: RE: OJB && struts


No big surprise that it works.   The DAO pattern is for abstracting out
implementation details of how you actually talk to your DB.  If you know
that you will always use OJB for your data access, then you don't need the
DAO layer.
If you know that you will never use anything but struts for your front end,
then you don't even need a Business Object layer.  You can do it all in your
action classes.
HOWEVER, even if you think you know these things.... the future is
unpredictable.  Which is why you implement the patterns, to accomodate not
only radical changes, but minor ones as well.


> -----Original Message-----
> From: aris [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 9:46 AM
> To: Struts Users Mailing List
> Subject: Re: OJB && struts
>
>
> Hi liooil,
> I'm using OJB in my struts application.
>
> At the beginning I used Druid to create the package with the beans
> (BusinessObjects? or DTO as explained in
> http://www.reumann.net/struts/lesson1/step4.do) and the
> repository.xml file.
>
> Here you can find Druid: http://druid.sourceforge.net/index.html
>
> Then I've created a package of BusinessObjectsService that I
> can call from
> my Action (as explained in
http://www.reumann.net/struts/lesson1/step5.do).

I use the class of this package to store and retrieve data from the db using
the PersistenceBroker as explained in the related OJB tutorial.

I don't use the DAO pattern but it works...

Hoping this help,
aris.




----- Original Message ----- 
From: "liooil " <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 15, 2004 10:41 AM
Subject: OJB && struts


Hello world,

I'm trying to connect my web to my db through OJB ...
I found many threads relative to this topic (persistence, ...,
whatever, ...)
And after that, i feel fuzzy about all mentioned patterns :
DAO, Broker, Business Delagate, and so on ...

At this moment, i'm stuck with my ODMG/OJB Struts plugIn (like in
Cavaness's Beer4all) and i don't how i could connect that to my
DAO pattern.

Code Exemples on topice are not numerous. Or they just ignore the
whole chain needed for reliable production web.


Any comments, links are welcome

thx,


liooil,


___[ Pub ]____________________________________________________________
Inscrivez-vous gratuitement sur Tandaime, Le site de rencontres !
http://rencontre.rencontres.com/index.php?origine=4



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to