JBoss Forge tutorial

jboss forge tutorialIn this tutorial we will show how quickly you can create a basic Java EE 6 application in lightning speed using JBoss Forge project.

 

Please note that a more recent version of this tutorial (based on Forge 3 and WildFly 10 ) is available at: Build Java EE Projects with Forge 3

Why one more framework for building Java applications ? actually some frameworks already exist: for example you might have used seam-gen, which is a batch process built over Ant; or also Spring Roo which is also a programming framework that, using AspectJ, makes available a convenient interface for building applications.

The peculiar thing of JBoss Forge is that it does not tie you to a specific environment: what you get is a powerful extension to Maven features which enables setting up simple (even not so simple!) Java EE applications which can run on any container.

So let's learn with a practical example:

Installing JBoss Forge

Download the latest stable JBoss Forge version from https://docs.jboss.org/author/display/FORGE/Home

Launch the forge script (forge.bat  Windows /  forge.sh for Unix)

forge.bat                

This will launch the Forge Console:

jboss forge tutorial

Alternative Forge Installation

JBoss Forge is also available as jBoss Tools Plugin. Start Eclipse and from the Top menu choose Help | Install New Software. If you haven't installed JBoss Tools as yet, enter the following site location: http://download.jboss.org/jbosstools/updates/development/indigo

jboss forge tutorial

Check JBoss Forge Tools and continue installation. At the end, Eclipse will prompt for restarting. Once restarted, switch to the Forge Console View:

forge_console

One more tab view will be available in Eclipse, where you can start/stop Forge:

jboss forge tutorial

Follow us on Twitter