Sunday, June 29, 2008

Working with NetBeans 6.1 and Glassfish V3

The Glassfish V3 plugin is not automatically installed with NetBeans 6.1 - so we need to perform the following steps before we can start using it from the Netbeans 6.1 IDE.

  • In NetBeans select Tools - Plugins to bring up the Plugins wizard. From the list of available plugins, we will select the new Glassfish V3 plugin - as shown below.



  • The next step in the procedure is to add an instance of the Glassfish V3 server. Open the Services tab and right-click on the Servers node to open the Add Server Instance dialog.



  • If the plugin installation has gone smoothly, we will see Glassfish V3 TP2 as one of the choices. Select it and click Next.


  • Next, set the installation directory of GlasFish. It is also possible to download it at this point. I had already installed Glassfish before integration with NetBeans. Click Finish.


  • In the Services tab, you should now have a new server available.



  • To be able to deploy an application to the newly integrated server, you need to adjust the project settings as shown below. In the Run category of the Project properties dialog, you can set the server to the desired value.



In the next installment of this series, I will show how to deploy and manage applications on the Glassfish V3 server from Netbeans 6.1.