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


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

Re: Need to learn J2EE and friends

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Need to learn J2EE and friends
Date 2011-09-06 15:03 -0700
Organization http://groups.google.com
Message-ID <b29ea435-8896-4844-9420-e29cc1713750@glegroupsg2000goo.googlegroups.com> (permalink)
References <7e0c1e0d-c526-4ecf-af94-cc4e21eb54f6@x14g2000prn.googlegroups.com> <37050ee7-5ea7-4ed4-9d15-67a2d07913bd@glegroupsg2000goo.googlegroups.com> <5132233e-4c3e-4479-8945-c23c236f001f@n35g2000yqf.googlegroups.com>

Show all headers | View raw


nroberts wrote:
> Lew wrote:
>> When you say "J2EE" and "EJB", do you have any information on what versions of those you're working with?  Also, what specific implementation are you using (WebLogic, JBoss, Glassfish, ...)?  Or are you tasked with picking an implementation?
> 
> Looks like the current version is JBoss 4.0 - looks to me like this is

Current version of the project, you mean?  JBoss itself has more current versions, up to v. 7.

> J2EE 1.4?  I may have the ability to change this in the future but
> this is what the current view is.

I suggest you change this in the present.  It will save your bosses time and money, as has already been mentioned upthread.  Bear in mind that Java EE 5 is already over five years old, and 1.4 came out in 2003.  The differences are significant.  You will really, really want to push back on this.

>> Nowadays you have session beans - stateful and stateless - and management beans.  They are much easier to use in Java EE than they were in J2EE.  The old way involved a lot of fooferol around "home interface" and "remote interface" that were hard to use.  Nowadays we use annotations (syntactic elements identified by a leading "@" character such as "@Session") and things just sort of automagically happen in the application server.
> 
> I've seen the '@' element in a tutorial I'm working through:
> http://programming.manessinger.com/tutorials/an-eclipse-glassfish-java-ee-6-tutorial/

This is the standard notation for annotations, part of Java for quite a while now.
 
> In the code I see a lot of classes called 'XxxHome' that inherit from
> javax.ejb.EJBHome.  No use of '@'.  So I gather I need to learn the
> hard way too...

You need to upgrade the project.  It will cost your bosses too much to stay with the old way.

>> Download and install Glassfish - it's lightweight enough to run on any decent developer workstation (dual-core or better, 2 GB RAM or better, couple of hundred megs of disk or better).http://glassfish.java.net/
> 
> Got it installed both from the EE Jdk and with Eclipse as some sort of
> package eclipse thing (eclipse wasn't able to restart the glassfish
> domain when it wasn't the integrated version).

But since you mention JBoss, you'd probably best stick with that.

Eclipse will plug into any major app server, bundled or not.  It's in the documentation somewhere.

-- 
Lew

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


Thread

Need to learn J2EE and friends nroberts <roberts.noah@gmail.com> - 2011-09-05 18:23 -0700
  Re: Need to learn J2EE and friends Lew <lewbloch@gmail.com> - 2011-09-05 18:48 -0700
    Re: Need to learn J2EE and friends nroberts <roberts.noah@gmail.com> - 2011-09-06 09:05 -0700
      Re: Need to learn J2EE and friends Lew <lewbloch@gmail.com> - 2011-09-06 15:03 -0700
      Re: Need to learn J2EE and friends Arne Vajhøj <arne@vajhoej.dk> - 2011-09-06 19:09 -0400
  Re: Need to learn J2EE and friends Arne Vajhøj <arne@vajhoej.dk> - 2011-09-05 21:49 -0400
  Re: Need to learn J2EE and friends markspace <-@.> - 2011-09-05 18:58 -0700
  Re: Need to learn J2EE and friends Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-06 06:20 -0300
    Re: Need to learn J2EE and friends nroberts <roberts.noah@gmail.com> - 2011-09-06 08:06 -0700
      Re: Need to learn J2EE and friends Arne Vajhøj <arne@vajhoej.dk> - 2011-09-06 19:06 -0400
        Re: Need to learn J2EE and friends markspace <-@.> - 2011-09-06 17:30 -0700
          Re: Need to learn J2EE and friends Arne Vajhøj <arne@vajhoej.dk> - 2011-09-06 20:42 -0400
    Re: Need to learn J2EE and friends Arne Vajhøj <arne@vajhoej.dk> - 2011-09-06 19:01 -0400
      Re: Need to learn J2EE and friends Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-06 21:09 -0300

csiph-web