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]