• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running First EJB-in Eclipse using JBoss!

 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
change eclipse perspective to 'jboss'

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

hth..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic