aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Newbie in 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 "Newbie in EJB" Watch "Newbie in EJB" New topic
Author

Newbie in EJB

Rameshwar Soni
Ranch Hand

Joined: Feb 03, 2011
Posts: 247
Hello everyone.

I am totally a newbie in EJB, basically at present my focus is not to master EJB because my university exams are near and i have to focus on them

But my university syllabus has 2 chapters on EJB (you can say a very very brief overview of EJB 2.0)

I have purchased the Head First EJB which is for EJB 2.0

I have the following questions, they might be silly because i am not too good in Java but i trying my best to be good.

(1) Head first EJB says "If you don't have an EJB 2.0 compliant server, go to java.sun.com and download J2EE 1.3"
so whats an EJB 2.0 compliant server??

downlaod J2EE 1.3 do i have to do this when i have the Java 7 installed

(2)Reference Implementation server? what's this.

Thanks in advance.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2267
    
    3

Howdy, Rameshwar!

Well champ, EJB 2.0 is too old now. The current version of this technology is 3.1.

The thing is, application servers (such as JBoss, Glassfish, Websphere, etc) provide support for specific JSRs. For instance, JBoss 4.0.0 provides support for EJB 2.1, which is JSR 153, and thus, JBoss 4.0.0 is an EJB 2.1-compliant server. JBoss 7.0.2 provides support for JSR 318, that is, EJB 3.1. And there are other JSRs that must be supported by application servers.

What you can do to run your examples is go to the JBoss Download Page and download, for instance, the latest version of JBoss 3.2, which is EJB 2.0-compliant. Then, follow the instructions that you already have.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Rameshwar Soni
Ranch Hand

Joined: Feb 03, 2011
Posts: 247
Thanks Roberto for replying and explaining what is an EJB compliant server.

O man i purchased the Head First EJB which is for 2.0 and there's no Head First for 3.1 so do you think that book will now be of no use to study?

What about this downlaod JEE x.x do i have to do this when i have the Java 7 installed (jdk 1.7.0) i.e jdk and JEE are different ?

I just had a look at your profile and you have experience so i would like to know that how should a newbie in programming (basically Java ) should cope-up or maintain the sync with all these changes?


Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2267
    
    3

Howdy, Rameshwar!

Well champ, I don't know exactly what version of the EJB technology is covered in the HeadFirst EJB book. Actually, when I started learning EJBs, it was already EJB 3. But EJB 2.x are very outdated today, and I can tell you that 99,9% of the new applications do not use them nowadays. But, in order to complete your tasks in the university, I think this book will do, because they cover what you are studying.

To study the latest EJB specification, I'd recommend Enterprise JavaBeans 3.1 (I used Enterprise JavaBeans 3 to study for the certification). It is a good book.

What about this downlaod JEE x.x do i have to do this when i have the Java 7 installed (jdk 1.7.0) i.e jdk and JEE are different ?


Well, if you look at the Java page, you'll see that JSE SDK and JEE SDK are different. When you download JEE SDK, you are able to also develop web applications. If you download JSE SDK, you'll only be able to develop desktop applications. Here's what I usually do: I only download JSE SDK, and in my IDE (Eclipse JEE), I install a web container/application server. These guys provide libraries that allow us to develop web applications as well.

I just had a look at your profile and you have experience so i would like to know that how should a newbie in programming (basically Java ) should cope-up or maintain the sync with all these changes?


Well, I'm still trying to figure out how we can stay in sync with everything I try to understand as much as possible about everything, but try to target on one particular thing. I have been focusing on Domain-Driven Design lately. You can at least go for a "Hello World" for the things you find, and dive a bit more in one thing that you choose. To stay tunned with the latest stuff, you can use some sites, like, The Server Side, or InfoQ. These are excellent sites that will help you stay tunned with the latest things of the Java world.
Rameshwar Soni
Ranch Hand

Joined: Feb 03, 2011
Posts: 247
Thanks Roberto for the advice
 
 
subject: Newbie in EJB