• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 583
  • Last Modified:

J2EE for Newbies

Can someone just give me a general rundown of the J2EE world.  I see all these terms, JBoss, JUnit, EJB, Hibernate.  What are all these things?  Where is the best place to start learning?  A book reccomendation would be great!!!  But, I would like someone to give me a breif explanation of what the listed terms are and how they relate to J2EE.  I also read that EJB(I don't even know what this is) is outdated.  Is this true?  Help!!!
0
turtletimer
Asked:
turtletimer
  • 3
  • 3
  • 2
  • +2
2 Solutions
 
turtletimerAuthor Commented:
Oh, and how is Struts and JSP mixed in with this as well?  What are Struts?
0
 
objectsCommented:
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
objectsCommented:
0
 
petmagdyCommented:
0
 
JavatmCommented:
The Java 2 Platform, Enterprise Edition (J2EE) defines the standard for developing multitier enterprise applications. The J2EE platform simplifies enterprise applications by basing them on standardized, modular components, by providing a complete set of services to those components, and by handling many details of application behavior automatically, without complex programming.

JSP/Servlets/JSF are web based components used by a webserver. EJB's are components which are actually used inside the paradigm to handle mostly secured issues arround the enterprise. EJB's are session beans/ entity beans & message driven beans. EJB's are just all java classes but made more complex to handle different task.

To run a JSP/Servlets/EJB and so-on you need a application container or what we call web server this are : JBoss/WAS/Weblogic/Tomcat/Jetty and SUN's application server.

If you want to start developing this you need an ide & webserver for a begginer the easiest way is to use netbeans because its bundled w/tomcat
and you can later on add Sun's application server :

http://www.netbeans.org/downloads/ide

Once that your ready for real action you can use the once which are hard core or what I mean is what is used in the business world like Workshop 8 & Weblogic Server or WSAD & WAS.

http://commerce.bea.com/showproduct.jsp?family=WLP&major=8.1&minor=4
http://www-306.ibm.com/software/awdtools/studioappdev/

Reminder WSAD & WAS are free trial but you have to pay for it while weblogic is free for non company use I think.

Here are the things which you can use for reference :
http://struts.apache.org/learning.html
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

Free PDF download :

http://www.theserverside.com/books/wiley/masteringEJB/index.tss
http://www.theserverside.com/books/DVTPress/J2EEArchitectsHandbook/index.tss
http://www.theserverside.com/books/addisonwesley/ServletsJSP/index.tss
http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss

Hope that helps . . .
Javatm
0
 
suprapto45Commented:
Well,

Basically, for a very simple J2EE project, you need to know only JSP, Servlet, JDBC and your DB. JSP will serve as the front-end where your client will interact with. It is a kind of HTML page. Then your servlet will do all your business logics and things that you want. From this servlet, you can call JDBC to add, edit or delete to and from DB. That's all. Flow: JSP - Servlet - JDBC - DB.

Then by having JSP, Servlet, JDBC and DB, you can add Struts support. It basically used to help you in managing your application. Please read materials below that I extracted from Struts website.

--------------------------------------------------------------------------------------
The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm.

Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with standard data access technologies, like JDBC and EJB, as well as most any third-party packages, like Hibernate, iBATIS, or Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems.
--------------------------------------------------------------------------------------

Okay, if you use Struts, you still need JSP, Servlet together with Struts, JDBC and DB. So your JSP will call either your Servlet or your Struts method. Flow: JSP - Servlet or Struts - JDBC - DB.

Now, you  have EJB. It basically helps you in connecting to DB. It helps you in persisting DB and etc. Read the materials below taken from EJB Explanation.

---------------------------------------------------------------------------------------
The point of EJB is to fob much of the work of concurrency, transaction handling and persistence off on the container so the beans can concentrate on business logic.
---------------------------------------------------------------------------------------

So now, you will have JSP, Servlet or Struts, EJB, JDBC, DB. Flow: JSP - Servlet or Struts - EJB - JDBC - DB.

I just explain you a very high-level explanation. I mean I do not explain to you in detail but I just hope that I can help you in digesting J2EE. I hope that other experts can leverage more.

regards
Dave
0
 
JavatmCommented:
In most cases :

JSP/Servlets/JSF/Struts are for front ends while EJB is in the middle to handle mostly backend connections its used in may cases not all jdbc like
the message driven bean to handle message queues. its somekinda processor handling the bussiness side of the whole app's :D
0
 
JavatmCommented:
Another FYI :

EJB is not outdated its actually going to 3.0 with some additional components like JDO(Java Data Objects) to handle persitance along side w/ EJB.
0
 
turtletimerAuthor Commented:
Do you guys have any good Book Recommendations?  I like to have a hard copy...my eyes get sore :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now