• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running First EJB-in Eclipse using JBoss!

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

After almost a month of sturggling to install JBoss Plugin into Eclipse, I finally was able to setup JBoss AS in eclipse and run a EJB from MZ's tutorial. Now I can develop-debug-test-deploy EJBs all just from the single eclipse Window. Less pain

For those who want to install Jboss Plugin into Eclipse, here are the steps:

1. Download Eclipse 3.4.1 (JEE) bundle from the Eclipse link.
2. Point the eclipse update manager to this update link.
3. Select to install only the JBossAS Tools plugin (I installed the JMX console plugin too) under this update link. Restart eclipse. You should be able to see JBossAS server persepective.
4. JBoss Server Installation:Follow the steps mentioned in MZs installing application server page..
5. After the server is installed, add a new variable JBOSS_HOME in Windows Control Panel.
6. You can then try to run the Calculator Bean example as said here.
7. The Jboss Console page can be viewed in Eclipse's internal browser by hitting http://localhost:8080/jmx-console/ URL. Here you can click database=localDB,service=Hypersonic to start the HSQL database. Where you can try creating the tables needed by your entities.

So what you have essentially setup is a development environment that will let you develop, debug, test, run the EJB3.0 applications, using the comfort that eclipse has to offer

Hope this helps those who are new to EJB3.0 development! The code that one can try is:

1. MZ's tutorials.
2. JBoss AS Examples from EJB3.0 In Acrtion Book.
3. JBoss Workbook code from Oreilly book.


I really had a tough time in setting up the development environment as I always face a heck of comaptiblity issues with eclipse versio and the JBoss AS Tools plugin version as discussed on this Jboss Tools Forum page.

Pretty much happy now..
 
Sonu Manjrod
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have installed jbossAS tool but when I restarted eclipse it is not showing any jboss perspective neither it is showing ejb project when i created new project.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change eclipse perspective to 'jboss'

if this does not work, follow my steps again proeprly..

hth..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic