Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what exactly is J2EE???

 
Ali Gilani
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i read a lot of articles about .NET and J2EE? what is J2EE exactly? .NET is a collection of ASP.nEt and SQL server and VBscript.
Is J2EE just like that? a collection of realated sun technology or is it something different like a whole new language??
Ali
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's neither a language nor a collection of technology (at least not like .NET is a collection of technology). Instead, it's more a design pattern than anything else.
(This response got long, so I broke it down into a couple of sections)
Overview
The hallmark of J2EE is Enterprise JavaBeans. EJBs provide the ability to run processes on remote servers and serve as the middle tier in the J2EE framework. There are two types of EJBs: Entity and Session. Entity EJBs are used primarily to communicate with the database, while Session EJBs are used to hold business logic. EJBs run on an "Application Server."
The front end for the J2EE is JSP/Servlet technology. Much like ASP, these provide dynamic HTML to the user. These run on a "Web Server."
The back end is any database that you choose (even Access, if you want ) This is the "Database Server."
Data Flow
User uses Web browser to access JSP/Servlets
JSP/Servlets send data to Business Logic located in Session EJBs
Session EJBs use the data exposed by Entity EJBs.
Entity EJBs interface with the Database.
The Database is a "dumb" database in that its only role is to store data. All business logic happens at the Session EJB level (this means no reliance on stored procedures! Access dosen't have them anyway )
The data flows in reverse back to the JSP, which generates the dynamic HTML and presents the results back to the user.
Technologies
A common JSP/Servlet engine is Apache Tomcat. It's free, so I'm not sure what other ones are out there. (IBM's HTTP Server is just Tomcat re-labeled, although I think they've made a few improvements on the product.)
The middle layer has more vendors. IBM WebSphere and BEA Weblogic are two of the front runners in the Application Server realm, although JBoss is a popular free one. (There's also HP Bluestone, but I think that is no longer a supported product. And, in my opinion, this is not a bad thing. )
Of course, at the database layer, there a a plethora of choices. Oracle, MySQL, and MS SQL Server are popular choices (MySQL being free, Oracle and SQL Server competing with each other for market dominance). Other choices include Sybase, IBM's DB2, Access (!! if you're low volume and crazy, but I've seen it), and others.

Hope this clears things up. I tend to be long-winded, so if you have any questions, just ask. (And I'll probably get long-winded again, but, hey.)
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
j2ee, java 2 enterprise edition.
if you have experience with software, you will know enterprise include more than professional, or standard. so you can image j2ee is some kind of superset of j2se, which stands for java 2 standard edition.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another angle you can use to look at J2EE is that it is a specification, not a product. Sun wrote the spec and anybody is welcome to build J2EE compliant products. J2EE specifies many complicated services that a "container" must provide, so it's not an easy thing. But I read about two guys who wrote one on the train - an hour a day while they were commuting.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solveig Haugland did an artocle for us in the May newsletter on this very topic.
What in Tarnation Is J2EE?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic