Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Java EE on tomcat? Date: Thu, 22 Sep 2011 13:38:00 -0700 (PDT) Organization: http://groups.google.com Lines: 44 Message-ID: <18581278.1150.1316723880309.JavaMail.geo-discussion-forums@prfp13> References: <4e69368f$0$303$14726298@news.sunsite.dk> <4e7a82d8$0$288$14726298@news.sunsite.dk> <174d3864-bc37-4edc-bcfd-af475c11b906@k7g2000vbd.googlegroups.com> Reply-To: comp.lang.java.programmer@googlegroups.com NNTP-Posting-Host: 2620:0:1000:fd42:224:d7ff:fe69:5838 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1316723881 855 127.0.0.1 (22 Sep 2011 20:38:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 22 Sep 2011 20:38:01 +0000 (UTC) In-Reply-To: <174d3864-bc37-4edc-bcfd-af475c11b906@k7g2000vbd.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:fd42:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8216 nroberts wrote: > Arne Vajh=F8j wrote: >> You should do: >> >> requirements =3D> technologies =3D> infrastructure >> >> not the other way around. >=20 > Yes. >=20 >> >> Start by finding out whether you need EJB or not. >=20 > Which is impossible if you don't know what EJB does and what it > provides extra to additional or alternative technologies. As I explained upthread, EJB (Enterprise Java Beans) are middleware compone= nts that implement business logic, typically to be shared as services by mu= ltiple applications. =20 >>> What is it that EJB offers me that I don't get with these other >>> standard technologies? =A0I thought it was things like SessionBeans and >>> such, but if I use the CDI and JSF bits it seems like I get a lot of >>> the same behavior because I've got @ManagedBean or @Named. =A0I'm >>> finding this confusing. >> >> I would consider: >> - session beans and CDI orthogonal >> - session beans and managed beans different >=20 > In what way though? Session beans are orthogonal to CDI in that you can use session beans with = or without dependency injection, and dependency injection with or without s= ession beans. Session beans and managed beans differ, once again as already answered upth= read (perhaps you missed that post?), in that session beans are a business = logic, middleware component that serves the "Model" part of the MVC archite= cture, and JSF managed beans are front-end components that serve the "Contr= oller" part of the MVC architecture. --=20 Lew