I wouldn't even say that Struts and EJBs are on the opposite end of a scale. They can't be compared because they aren't the same thing (apples and oranges comes to mind).
Struts is a Java implementation of the MVC (Model 2) pattern. It gives you a nice framework with a controller and a bunch or really nice utilities (tags, validation, etc) to build with. It's meant to be used on your presentation tier. I know, some developers choose to put business logic and persistence code in their Action classes but in my opinion that's not a good practice since you're coupling your model to your presentation tier. Change your presentation framework (Struts) and you now have to change all of your business classes. EJB provides a framework for your model (business) and persistence tiers. It gives you nice things like declarative transaction and security management, object pooling, etc. It's usually too complex for anything other than large enterprise applications though. I'd go with Hibernate or IBATIS. On 6/15/05, Daniel Perry <[EMAIL PROTECTED]> wrote: > I took one look at ejbs and ran a mile. > > Struts and EJBs seem to be at the opposite end of a scale. > Struts is sensible, nice to work with, efficient, and generally everything > that EJBs arnt! > > I personally use it with OJB (made that decision 1.5 yrs ago). Hibernate > seems to be more popular, and if i was to make the decision now, i'd > probably go with hibernate. I'm sticking with OJB in the systems i have > because refactoring the whole lot would be such a chore, and OJB works fine > (though i have had to deal with some really annoying intermittent bugs). > > Daniel. > > > -----Original Message----- > > From: Pierre Thibault [mailto:[EMAIL PROTECTED] > > Sent: 14 June 2005 19:53 > > To: Struts Users Mailing List > > Subject: Re: [To sum it up] Re: Confused > > > > > > Le 14 juin 2005 à 04:59, Stéphane Zuckerman a écrit : > > > > Hello Stéphane, > > > > > > > ... > > > Anyway, this little presentation is far from complete, and I > > > suggest you read some doc about J2EE applications before going > > > further with struts (java.sun.com is a good start). > > > > > > -- > > > Stéphane Zuckerman > > .... > > > > The difficulty here is that there is lot of pieces that go together. > > There is a lot of choices and it is not clear for the new developers > > which path to fellow. I decided to buy the book 'Struts The Complete > > Reference' and I am only at the beginning. I'll continue to dig on > > the subject. I'm happy to see that there is community here for > > helping me. I fell already a lot more comfortable. > > > > Thank you. > > > > A+ > > > > ---------------------- > > Pierre > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Virtually, Andre Van Klaveren Architect III, SCP Enterprise Transformation Services Unisys Corporation --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]