File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes What is the significance of EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What is the significance of EJB" Watch "What is the significance of EJB" New topic
Author

What is the significance of EJB

Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
Im a newbie to the board. To my understanding EJB's keep the state of information that may be transported from web pages. I'm not sure where else they come into play. Anyone telling of there expierience would be appreciated. Also I'm trying to get the free book java ranch is giving away


N.D:"Anything worth having, takes time to get"
Ashoke Bhowmick
Greenhorn

Joined: Sep 10, 2002
Posts: 13
Hi,
JavaBeans are sufficient to keep the state of information that may be transported from web pages , you don't require EJB for that.
EJBs are useful when you want to develop an enterprise level distributed application , since the middleware services like connection pooling , transactions , instance pooling , persistence etc are provided by the J2EE compliant application server and the application developer needs to focus on the business logic.
Regards,
Ashoke
Rajesh Pathak
Ranch Hand

Joined: Aug 15, 2002
Posts: 56
EJB is one of the various technologies provided in J2EE. Usually EJB does not work in isolation, and is assited by other J2EE technologies like Jsp,Servlet,JNDI,JDBC etc. The main reason for opting for EJB in enterprise development are:

1.Faster solutions delivery time. EJB uses "containers" to simplify development. J2EE containers provide for the separation of business logic from resource and lifecycle management, which means that developers can focus on writing business logic rather than writing enterprise infrastructure.
2. Freedom of choice. The support components/ tools are based on a standard APIs and at the same time compete vary in implementations. Hence there is freedon of choice for a developer to choose application vendor.
3. Simplified connectivity. J2EE technology makes it easier to connect the applications and systems you already have and bring those capabilities to the web, to cell phones, and to devices.
4. Security. The applications built on EJB are highly secure.
5.Reliable and robust. Due to its architecture, the applications have this feature.
6. Future proof. New features can be added easily to applications built on EJB.


Rajesh(Bangalore,India)<br />SCJP2, SCWCD, SCEA, IBM-XML, UML-OOAD, IBM-Enterprise Connectivity with J2EE.
Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
Thank you both.
What you say makes sense. It seems enterprise java beans may be another learning curver after java. I am practicing the langauge. Is EJB something I can do at home with my tomcat installation? Are they just class files that I could add for the connection pool and the like ... ?
Perhaps a link to this information can serve me better. You both seem to have a grasp on it and are a little advanced for me.
Tauqueer Ali
Ranch Hand

Joined: Sep 05, 2001
Posts: 53
hi Nick
You have to look at the bigger picture to understand the importance of EJBs as mentioned by Rajesh. A good place to start is by looking at the pet store sample application on sun home page. It gives a complete picture of a J2EE application and where exactly EJB fits into it.
link
http://developer.java.sun.com/developer/releases/petstore/

hope that helps :roll:


SCJP2, SCWCD, XML, OOAD<br />Kolkata, India
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Tauqueer Ali:
... good place to start is by looking at the pet store sample application on sun home page. It gives a complete picture of a J2EE application and where exactly EJB fits into it...

I wouldn't suggest starting with the Petstore if you're new to J2EE/EJB. I would prefer first reading up on the EJB concepts from some book (check theserverside.com for an excellent free book about EJBs), and after that dive into the Petstore code.
Astronauts don't start their training by launching into space right away, do they?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Douglas Kent
Ranch Hand

Joined: Oct 06, 2000
Posts: 171
I concur with Taq*; Petstore architecture discussion is an excellent source of illustrative discussions of each type of EJB (entity, session, and message-driven). Also Blueprints book, found at Designing Enterprise Applications
Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
Thank you all. You have been very helpful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the significance of EJB