What exactly are you confused on? You've picked a fairly wide topic with a lot of different ways to answer it. If you are confused on how to implement a web application from presentation through data, then that's a deep subject that's mostly off topic. If you're just not sure how it all fits together, then I would suggest looking at any of the java blueprints on the sun site. If you're just not sure how to implement the DAO pattern, and how it's used with OJB then this might help: This is the dao package structure I use: com.blah.dao <---- the dao interfaces go here com.blah.dao.ojb <-- the ojb implementation of those interfaces go here, com.blah.dao.jdbc <-- If I happen to have a legacy dao implementation, or otherwise have two implementations then the they would just fall under here. So how does that fit with a Business Object pattern and Struts? Struts talks to the Business Objects, the Business Objects talk to the DAO. While it seems complicated, you are correct. However what this complication does is make everything easier to test and modify. Modification and adaptation are key business requirements to any software. It's not if things change in business, but rather, when they change and how fast you have to change. So, struts figures out what the user wants to do, then tells the BusinessObjects to do it. The BusinessObjects then use the DAO to CRUD the database. However every method in a BO does not have to have a DAO. Each layer uses the interface, and asks some mechanism to give that layer an implementation of that interface. This way each layer is independant and knows as little as possible about the other layer.
> -----Original Message----- > From: liooil [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 15, 2004 2:42 AM > To: [EMAIL PROTECTED] > 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]