Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes EJB and other Java EE Technologies and the fly likes EJB use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB use" Watch "EJB use" New topic

EJB use

Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120

I am a beginner in EJB, and I am studing for get my sun certification ,but I don´t know when use it in a real project where we could use it.

For example if you have several servers in different places, you can share the weigth of the app, putting a bean in each server.

¿Someone knows a real situation where EJB are needed?, for example I am developing a project for an assotiation which has a web for Spain and from that web
manage spanish projects, but also has another projects in Bulgaria then ¿could be a good idea use EJB for share in one EJB Bulgarian projects and in another Spanish project,
with the capability of visualize all from an unique view?

Thanks in advance.
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

The Wikipedia article on EJB's has a good high-level summary of what they are and how they are used. In order to determine if they are applicable to a particular situation, you'll need to understand features EJB's offer and what alternatives there are (other ORM's like Hibernate, other frameworks like Spring, etc.)

[How To Ask Questions On JavaRanch]
Sib Pete

Joined: Apr 27, 2009
Posts: 26
Joe, thats a very good link for a quick intro on EJBs. I was about to start typing out a long winding post on what EJBs are, the different types, when they should be used, etc., but thankfully I decided to take a quick look at the wiki link and it pretty much did a much better job than I could of answering the question. Thanks for the link
It is sorta covered in the JavaRanch Style Guide.
subject: EJB use
It's not a secret anymore!