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


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

Re: Java EE on tomcat?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!postnews.google.com!u20g2000yqj.googlegroups.com!not-for-mail
From nroberts <roberts.noah@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Java EE on tomcat?
Date Wed, 21 Sep 2011 08:45:41 -0700 (PDT)
Organization http://groups.google.com
Lines 88
Message-ID <ee7db784-e370-40c7-954e-bfa2977c49a9@u20g2000yqj.googlegroups.com> (permalink)
References <ebbbce69-a30e-4d19-8626-73e3fab2038b@h7g2000yqm.googlegroups.com> <4e69368f$0$303$14726298@news.sunsite.dk> <j55rfb$9sg$1@speranza.aioe.org> <Hnvdq.23201$Ll3.5551@newsfe16.iad> <j58f7c$4up$1@speranza.aioe.org> <utYdq.12449$Ol1.5245@newsfe07.iad>
NNTP-Posting-Host 204.28.224.25
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1316619942 19149 127.0.0.1 (21 Sep 2011 15:45:42 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 21 Sep 2011 15:45:42 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info u20g2000yqj.googlegroups.com; posting-host=204.28.224.25; posting-account=yG8XEQkAAAAufx-VCHazgfIL-gE1KUVH
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HUALESNKRC
X-HTTP-UserAgent Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8178

Show key headers only | View raw


On Sep 20, 1:50 am, Arved Sandstrom <asandstrom3min...@eastlink.ca>
wrote:
> On 11-09-19 07:20 PM, Torsten Kirschner wrote:
>
>
>
>
>
>
>
>
>
> > Den 9/19/11 1:44 AM, skrev Arved Sandstrom:
> >> On 11-09-18 07:30 PM, Torsten Kirschner wrote:
> >>> Den 08.09.2011 23:41, skrev Arne Vajhøj:
> >>>> On 9/8/2011 1:53 PM, nroberts wrote:
> >>>>> If higher ups decided that I had to work with Tomcat...no JBoss or
> >>>>> glassfish or anything...what limitations am I looking at?  What parts
> >>>>> of Java EE become unavailable to me?
>
> >>>> Tomcat is a web container only (Java EE Web Profile in
> >>>> Java EE 6 terminology).
> >>> [...]
> >>>> You don't have EJB, JCA, JTA, JMS etc..
> >>> [...]
>
> >>> Using the Spring Framework (http://www.springsource.org/), one gets
> >>> most of the above, except EJB, I guess. Add Hibernate and you're set.
>
> > [... spherical cows in an EJB container ...]
> >> AHS
>
> > The OP's clearly stated premise was being limited to a given web container.
>
> Yes, and you've supplied a fairly decent chain of quoting. So, given
> that he asked what would be unavailable if he was stuck with Tomcat, and
> it was made clear that most of Java EE is unavailable (out of the box),
> why not leave it at that?
>
> The way I look at it is, if you shoehorn everything possible into
> Tomcat, including Spring, just to make it act like a crippled Java EE
> server, are you not subverting the point of sticking with Tomcat?
> Presumably there is a reason why the OP could be limited to that servlet
> container - suggesting ways in which it can be seriously modified (in a
> less than optimal fashion) to not be just a servlet container anymore is
> changing the premise.
>

Apparently the decision to move to Tomcat was simply one of
standardization.  I think perhaps the decision was made a while back.
At any rate it was made without me for reasons I do not know.  I was
told though, when I mentioned being worried that such limits could
increase development effort, that I can use whatever libraries or
extensions I need.  This includes things like OpenEJB etc...

After learning more about these buzzwords and what they actually
implement though I'm starting to wonder what is left for EJB.  I can
replace standard Java EE JPA with Hibernate as it implements it now.
I can pull in JSF with either the standard implementation or MyFaces
(and tobago or whatever looks pretty interesting).  I can get
dependency injection with CDI; I'm thinking this gives me all the
advances in unit testing that EJB 3.1 gave us.  I can get @WebService
with JAX-WS though I might not even want it.

Unfortunately, if I use OpenEJB I'm stuck with an older Tomcat as it
doesn't work with 7.0 yet.  I tried a patched version that someone
released and it kind of worked I thought, but yesterday I found that
webservices were bugging out...either that or need a totally different
way of setting them up that would likely be a nightmare to figure
out.  I spent a good day on it yesterday just trying to get the ejb
example webservices to work and the way I fixed it was to stop trying
to use a patched version and just downgrade Tomcat.

I'd rather not base a new project on old technology that's just going
to end up obsolete the next release if I can at all help it.

Another thing about the previous technologies I listed is that I can
put them in my app's WEB-INF folder; I don't have to install them in
Tomcat.  Perhaps OpenEJB is the same way but I've not seen clear
documentation on doing so.

What is it that EJB offers me that I don't get with these other
standard technologies?  I 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.  I'm
finding this confusing.

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