aspose file tools*
The moose likes Beginning Java and the fly likes what exactly is J2EE??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what exactly is J2EE???" Watch "what exactly is J2EE???" New topic
Author

what exactly is J2EE???

Ali Gilani
Ranch Hand

Joined: Mar 01, 2002
Posts: 137
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

Joined: Aug 20, 2001
Posts: 1824

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.)


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
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

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Solveig Haugland did an artocle for us in the May newsletter on this very topic.
What in Tarnation Is J2EE?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what exactly is J2EE???