corner imagecorner image FeaturesPluginsDocs & SupportCommunityPartners
download NetBeans

NetBeans IDE 6.7 Features

Java EE (Enterprise Edition)

Java Enterprise application development in the NetBeans IDE
Click image for fullscreen preview

Develop portable, robust, scalable and secure server-side Java applications. Java Enterprise applications are deployed to servers and can be accessed through a web browser.

Enterprise Technologies

Use the NetBeans IDE for development with the Java Persistence API (JSR-220), servlets, JavaServer Pages (JSP), Enterprise JavaBeans (EJB) and web services. The Java EE pack for the NetBeans IDE supports the latest J2EE 1.3, J2EE 1.4 and Java EE 5 standards, including annotations.

Deploy on Change, Deploy on Save

The IDE instantly redeploys any running Java EE application when a change is made to the project. Deploy on Change is available for web, EJB and EAR applications. Deploy on Save is currently supported for Tomcat, GlassFish v2 and v3 (directory based deployment is prerequisite).

Server Deployment

The NetBeans IDE packages your enterprise applications into an enterprise archive (EAR) and deploys the file to a Java EE application server. The IDE works with any standard Java Enterprise Edition (Java EE) container, such as Sun Java System Application Server 8 and 9, GlassFish v1/v2/v3, Apache Tomcat 5 and 6, JBoss 4, BEA WebLogic 9 and 10, and others.

enterprise project window

list of enterprise servers

Java Persistence

The IDE provides tools to work with the Java Persistence API. Wizards enable you to generate entity classes from a database, and a JavaServer Faces CRUD (Create Retrieve Update Delete) application from entity classes. The IDE supports all types of entity relationships (one-to-one, one-to-many, many-to-one, and many-to-many) and all types of primary keys (single-column, composite, and generated). The IDE also provides templates and graphic editors for creating and maintaining persistence units.

Hibernate Framework Support

Automatically bundle Hibernate libraries with your application by selecting the Hibernate framework in the New Project wizard. Use the Hibernate Reverse Engineering wizard to create Hibernate Mapping XML files and POJO classes. Then create and edit Hibernate configuration files and mapping files using the New File wizard and visual editor.

Refactoring Java classes and fields (find usages, rename, move) also updates the Hibernate mapping files accordingly. The Editor does not only auto-complete Java classes and fields, but also database table and column names in Hibernate mapping files, and some property names and values in Hibernate configuration files. Use hyperlinks to navigate between configuration and mapping files, as well as between mapping files and referenced Java classes. You can even execute HQL queries right in the IDE (including joins and clauses).

Generate JSF pages from entity classes

hibernate code generation

Spring Framework Support

You can now select the Spring framework in the New Project Wizard and immediately start out with a skeleton Spring Web MVC application complete with artifacts. Take advantage of refactoring (including XML configuration files), and code completion in the editor. Navigate quickly using hyperlinks and the new Go To Sping Bean dialog. Arrange sets of configuration files into custom groups and get a head-start by using wizards for XML configuration files and Spring Web MVC controllers.

Spring Code Completion

Code Completion, Templates and Wizards

Wizards and templates included in the IDE assist you in creating Enterprise Java Beans (EJB 3.0), servlets, JSP pages, and JAX-WS web services. The Source Editor provides full code completion for Java EE 5 resources injection annotations. The IDE automatically injects resources into your files when you run commands like Call EJB and Use Database.

Java EE code completion

EJB development

In the NetBeans IDE, you code Enterprise Java Beans (EJBs) just like any other Java class, assisted by code completion and editor hints. The IDE makes sure you implement the correct methods and keep the classes in sync with their interfaces.

You do not need to use special commands and dialog boxes to generate things like business methods or web service operations, although the commands are still available to help acquaint you with the syntax of Java EE 5 code.

 

- Java EE Learning Trail

ejb development