Setting up EJB3 Development Environment with Eclipse and JBoss


I gave up my 30 day Programming challenge  after a few days only, partly due to time-constraints and partly because the problems I had been working on didn't seem challenging enough.Learning EJB3 took a priority and I started on that path.

Here on my blog I will share my journey as I progress on the path.

The first step was picking up a good book. I had purchased EJB3 In Action long back, so planned to go with it.I had recently seen a review about the second edition of this book.I thought the second edition will be pretty much the same as the first one with a little bit of addition here and there about EJB 3.1.Don't know what motivated me to take a peek at the second edition, and that very moment I decided to start with the second edition only. Got a soft copy in mobi format, so that I can read it on Kindle app in my mobile and tab.

I read through Chapter 1 which is kind of introduction or the 25000 feet view of EJB3. Once I started chapter 2, I felt the need to set up my development environment, so that I can try examples as I read.This post outlines how did I set up the environment for working on EJB3.

STEP1: The IDE

Eclipse has been the IDE of my choice, having worked on it for a long time have gotten very comfortable with it. After rambling about a bit, I finally settled on choosin Eclipse Kepler JEE IDE . The installation process is fairly simple, download the zip file and extract in a folder your choice. Click the eclipse.exe file in the installation folder and there you go.

Note: The Java version, Eclipse and the OS -  either all three should be 32-bit or all three should be 64-bit. Any mismatch means trouble launching eclipse.


STEP2: The Server
Here I chose Jboss, reason being the same- my familiarity with it.Found that JBoss 7.1 will serve my purpose well. So, logged in to the following:
http://tools.jboss.org/downloads/




 
JBoss Tools 4.1.2 Final description said it can be installed into existing Eclipse Kepler. So I was happy and clicked immediately on Download. It took me to the following page.

 


 This page told me about two options to install this, I chose the second one. So again went back to Eclipse and clicked on Help-> Eclipse Marketplace.




Typed the words “JBoss Tools(Kepler)” in the search box and there I Go.




Clicked on “Install” button on Jboss Tools (Kepler) 4.1.2 Final. It took me to the following page where all the features were pre-selected. I was not sure if I needed all of them, so I just chose JBossAS Tools.




Accepted license and Clicked on confirm. Let it install.

Eclipse restart is required.

 
Launch Eclipse IDE. Go to File-> New->Server


JBoss AS 7.1 shows up in the list of Servers.

 


Click on Next. I have not yet installed the JBoss 7.1, so it shows error on the next page displayed.

 

So, I clicked on Download and Install Runtime link, which took me here.

Selected JBoss 7.1.0 and click Next.

Accepted the agreement and Clicked Next.

 

Set the installation location, and clicked finish. It started the download process. Once this download process was completed, I could begin with coding my first EJB Session Bean.

Comments

Popular posts from this blog

Day#3 of Java Programming Practice- Longest word of a Sentence

Book Review: Those Pricey Thakur Girls

Day# 5 of Java Programming Practice- Change the first letter of each word in a sentence to Uppercase.