Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Java EE on tomcat? Date: Wed, 21 Sep 2011 14:26:23 -0700 (PDT) Organization: http://groups.google.com Lines: 58 Message-ID: <1685941.150.1316640384178.JavaMail.geo-discussion-forums@prfb12> References: <4e69368f$0$303$14726298@news.sunsite.dk> <12076840.62.1316629181108.JavaMail.geo-discussion-forums@vbac9> <10813ad1-ff1d-4da3-a43b-11c96663c6f1@1g2000yqm.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 1316640384 5107 127.0.0.1 (21 Sep 2011 21:26:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 21 Sep 2011 21:26:24 +0000 (UTC) In-Reply-To: <10813ad1-ff1d-4da3-a43b-11c96663c6f1@1g2000yqm.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:8183 nroberts wrote: > Lew wrote: > > ManagedBean and SessionBean are not the same thing. >=20 > Which would be why I was asking the diff. Here is part of that answer as already given: >> JSF is a front-end technology. =A0EJB is a middleware technology. =A0Dif= ferent layers with different purposes. >> >> That the behaviors are similar is a help to learning them, but do not ma= ke the mistake of thinking that that makes them the same thing. =A0They are= not. Managed beans in JSF are the "Controller" components of the model-view-cont= roller (MVC) pattern that JSF embodies. They are close to the screens, oft= en aware of what is in the view and what model components they should orche= strate. They do not embody deeper logic, if properly designed, rather they= forward the high-level requests from the view to deeper-level components t= o handle the business logic. Session beans are such deeper-level components, embodying business (and/or = persistence) logic as part of the "Model" component of the MVC pattern. See also: >> That said, you should avoid EJBs at first anyway. =A0Write web apps for = a while until you know what you are doing. >=20 > I don't have a choice in what to write. If I did I wouldn't be using So they are mandating that you write EJBs? That was not clear from your ot= her posts. If they mandate to write EJBs, it's especially strange that they require a = platform that doesn't support EJBs, and especially important that you push = back on that. > Java anyway; I've never been a fan. What I need to do is find out Java is perfectly fine for the purpose. Don't let your prejudices interfer= e with your effectiveness. > what technologies do what so that I can figure out what I need to > learn in order to accomplish the task given. Well, you certainly have gotten a lot of that information from the folks he= re. Don't get edgy with us for trying to help you, hm-k? We know you have a lo= t of stress at work, but we're the folks helping you, so don't take it out = on us. The advice you're getting here is good, so don't shoot the messenge= rs. Hm-k? --=20 Lew