Flag This Hub

NetBeans + JBoss Aplication Server Bundle

By


The JBoss Application Server and NetBeans IDE have been bundled together to provide NetBeans IDE users with a well integrated out of the box experience to build Java EE applications on the JBoss Application Server.

NetBeans IDE

  • Robust, free, open source Java IDE
  • Build cross-platform desktop, web, enterprise, and mobile applications
  • Intuitive GUI Builder (formerly known as Project Matisse)
  • Comprehensive support for developing plug-in modules

JBoss Application Server

  • Most widely used open source Java application server on the market
  • J2EE 1.4 certified platform for developing and deploying mission critical enterprise applications
  • Includes support for EJB3.0 specification

The first release of this bundle packages the NetBeans IDE 5.5 IDE and the JBoss 4.0.4 application server with the JBoss EJB3 Technical Preview implementation. JBoss's EJB3 implementation supports the Java Persistence API(JPA) and EJB3 specifications.

Future releases of this bundle will round out the features of the application server as JBoss moves closer to the JBoss Application Server 5 release, which will be fully Java EE 5 compatible.

Tools -> Server Manager

Beware potential conflict of JBoss with Oracle Express on port 8080. To change port to 8085 edit server\default\deploy\jbossweb-tomcat55.sar\server.xml. In this file, notice that the HTTP/1.1 Connector is set to 8080. This is the server's port number. The IDE does not provide a facility for you to change the default port number. If you want to change the default port number, you must do so manually in this file.

If you have already registered the server with the IDE when you change the default port number, you must remove the server in the IDE and then register it afresh.

Creating a New Web Application Project

  1. Choose File > New Project. Under Categories, select Web. Under Projects, select Web Application and click Next.
  2. Under Project Name, enter HelloWeb. Notice that the Context Path is /HelloWeb.
  3. Change the Project Location to any directory on your computer. From now on, this directory is referred to as $PROJECTHOME.
  4. Select the recommendations to which your source structure will adhere, which is purely a personal preference:
  5. Select the server to which you want to deploy your application. Only servers that are registered with the IDE are listed.
  6. Leave the Set as Main Project checkbox selected. Click Finish.

    The IDE creates the $PROJECTHOME/HelloWeb project folder. The project folder contains all of your sources and project metadata, such as the project's Ant build script. The HelloWeb project opens in the IDE. You can view its logical structure in the Projects window and its file structure in the Files window.

Creating and running a web application

Changing target server in Project Properties

Comments

No comments yet.

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Like this Hub?
    Please wait working