Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8183

Re: Java EE on tomcat?

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Java EE on tomcat?
Date 2011-09-21 14:26 -0700
Organization http://groups.google.com
Message-ID <1685941.150.1316640384178.JavaMail.geo-discussion-forums@prfb12> (permalink)
References (4 earlier) <j58f7c$4up$1@speranza.aioe.org> <utYdq.12449$Ol1.5245@newsfe07.iad> <ee7db784-e370-40c7-954e-bfa2977c49a9@u20g2000yqj.googlegroups.com> <12076840.62.1316629181108.JavaMail.geo-discussion-forums@vbac9> <10813ad1-ff1d-4da3-a43b-11c96663c6f1@1g2000yqm.googlegroups.com>

Show all headers | View raw


nroberts wrote:
> Lew wrote:
> > ManagedBean and SessionBean are not the same thing.
> 
> Which would be why I was asking the diff.

Here is part of that answer as already given:
>> JSF is a front-end technology.  EJB is a middleware technology.  Different layers with different purposes.
>>
>> That the behaviors are similar is a help to learning them, but do not make the mistake of thinking that that makes them the same thing.  They are not.

Managed beans in JSF are the "Controller" components of the model-view-controller (MVC) pattern that JSF embodies.  They are close to the screens, often aware of what is in the view and what model components they should orchestrate.  They do not embody deeper logic, if properly designed, rather they forward the high-level requests from the view to deeper-level components to 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:
<http://lmgtfy.com/?q=what+is+the+difference+between+JSF+managed+beans+and+enterprise+Java+beans+EJBs>

>> That said, you should avoid EJBs at first anyway.  Write web apps for a while until you know what you are doing.
> 
> 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 other 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 interfere 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 here.

Don't get edgy with us for trying to help you, hm-k?  We know you have a lot 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 messengers.  Hm-k?

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-08 10:53 -0700
  Re: Java EE on tomcat? Lew <lewbloch@gmail.com> - 2011-09-08 11:22 -0700
    Re: Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-08 12:08 -0700
      Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-08 17:48 -0400
    Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-08 17:56 -0400
  Re: Java EE on tomcat? markspace <-@.> - 2011-09-08 12:36 -0700
  Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-08 17:41 -0400
    Re: Java EE on tomcat? Torsten Kirschner <torsten.kirschner@gmail.com> - 2011-09-19 00:30 +0200
      Re: Java EE on tomcat? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-18 20:44 -0300
        Re: Java EE on tomcat? Torsten Kirschner <torsten.kirschner@gmail.com> - 2011-09-20 00:20 +0200
          Re: Java EE on tomcat? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-20 05:50 -0300
            Re: Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-21 08:45 -0700
              Re: Java EE on tomcat? Lew <lewbloch@gmail.com> - 2011-09-21 11:19 -0700
                Re: Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-21 11:31 -0700
                Re: Java EE on tomcat? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-21 17:37 -0300
                Re: Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-21 11:29 -0700
                Re: Java EE on tomcat? Lew <lewbloch@gmail.com> - 2011-09-21 14:26 -0700
                Re: Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-22 10:27 -0700
                Re: Java EE on tomcat? Lew <lewbloch@gmail.com> - 2011-09-22 13:30 -0700
                Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-21 20:40 -0400
              Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-21 20:35 -0400
                Re: Java EE on tomcat? nroberts <roberts.noah@gmail.com> - 2011-09-22 10:23 -0700
                Re: Java EE on tomcat? Lew <lewbloch@gmail.com> - 2011-09-22 13:38 -0700
                Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-22 21:15 -0400
      Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-19 21:55 -0400
        Re: Java EE on tomcat? eric@invalid.com (EricF) - 2011-09-21 04:38 +0000
          Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-21 20:29 -0400
            Re: Java EE on tomcat? eric@invalid.com (EricF) - 2011-09-22 02:41 +0000
              Re: Java EE on tomcat? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-22 06:08 -0300
                Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-22 21:18 -0400
              Re: Java EE on tomcat? Lew <lewbloch@gmail.com> - 2011-09-22 08:39 -0700
                Re: Java EE on tomcat? Robert Klemme <shortcutter@googlemail.com> - 2011-09-22 22:58 +0200
              Re: Java EE on tomcat? Arne Vajhøj <arne@vajhoej.dk> - 2011-09-22 18:47 -0400
                Re: Java EE on tomcat? eric@invalid.com (EricF) - 2011-09-24 04:45 +0000

csiph-web