Wednesday, April 24, 2013

Configuring Eclipse (Juno) development and deploy environment for JBoss AS 7


If you’re working with JBoss, somewhere in the way you’ll have to manage application packaging and deploying. For that, you’ll probably need a development environment.

Eclipse (http://eclipse.org/) is the most known development Java environment, and it contains a large set of plug-ins that expands its functionality, like the integration with Java EE servers. Eclipse was also the first IDE to be compatible with the new JBoss AS 7.

This post will lead you in the process of creating the Eclipse development and deployment environment for JBoss AS 7.


Requisites
- JBoss AS 7 already installed and running
- Eclipse IDE for Java EE Developers (Juno) already installed

Overview
1) Add software repository
2) Install JBoss AS tools
3) Add a new JBoss server


Eclipse Configuration
For the good stuff, just follow the steps.

1) Add the software repository

Open Eclipse IDE for Java EE Developers (Juno)

From the menu toolbar, choose Help > Install New Software

In the Work with field, add the development tools URL (http://download.jboss.org/jbosstools/updates/development/juno/) and click Add button.

In the Add Repository dialog box add a name to identify the source. For example: “Eclipse JUNO”. Click OK button.



2) Install JBoss AS tools

In the Available Software window, in the Work with field, choose the repository that you’ve just created.

Expand the “JBoss Web and Java EE Development” option, check the “JBoss AS Tools” and click the Next button.

In the Install Details window, review the installation details and click the Next button.

In the Review Licenses window, mark the option “I accept the terms of the license agreements” and click the Finish button.
Wait a few minutes, while the installation is executed.

If a Security Warning dialog box appears (“You are installing software that contains sunsigned contente…”), just click the OK button.

In the Software Updates dialog box, click Yes button to restart Eclipse
 


3) Add a new JBoss server

From the menu toolbar, choose File > New > Other

In the Select a wizard window, select the option Server > Server, and click the Next button.

In the Define a New Server window, select the option JBoss AS 7.1, and click the Next button.
 

In the JBoss Runtime window, change the Home Directory and JRE that fits your JBoss AS installation, and click the Finish button.
In my case this would be: 
   - Home Directory: C:\JavaEE\jboss-as-7.1.1.Final 
   - JRE: jre.1.7.0_17
 


So, now you’re ready to develop, test and deploy your JavaEE applications with JBoss server, by using your Eclipse environment.

Have fun!

1 comment:

  1. JBoss admin Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/jboss-admin-online-training-101.html
    Introduction 
    Application Server Management
    Management Interface
    User Management
    Network and Port Configuration
    Data source Management
    Configuring Modules
    Global Values
    Application Deployment
    Securing JBOSS EAP 6
    Subsystem Configuration
    JVM
    HTTP Clustering and Load Balancing
    contact@21cssindia.com or +919000444287

    ReplyDelete