NetBeans + JBoss Aplication Server Bundle
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.
Download
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
- Choose File > New Project. Under Categories, select Web. Under Projects, select Web Application and click Next.
- Under Project Name, enter HelloWeb. Notice that the Context Path is /HelloWeb.
- Change the Project Location to any directory on your computer. From now on, this directory is referred to as $PROJECTHOME.
- Select the recommendations to which your source structure will adhere, which is purely a personal preference:
- Java BluePrints. For more information, see http://java.sun.com/blueprints/code/projectconventions.html.
- Jakarta. For more information, see http://jakarta.apache.org/tomcat/tomcat-5.0-doc/.
- Select the server to which you want to deploy your application. Only servers that are registered with the IDE are listed.
- 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.
- Netbeans HelloWebApp
NetBeans--JBoss Aplication Server Bundle How to create a web application with Netbeans Launch Netbeans or Netbeans for JBoss NetBeans IDE 5.0 Quick Start Guide for Web...
Creating and running a web application
Advanced
Changing target server in Project Properties