Google Web Toolkit 2 Application Development Cookbook
上QQ阅读APP看书,第一时间看更新

Adding the GlassFish server in NetBeans

We have installed the GlassFish server and the NetBeans IDE separately. Actually, we will start, stop, and deploy to the GlassFish server from NetBeans; that's why, we need to add the GlassFish Server in NetBeans. If the bundled version of NetBeans is used for installation, we do not need to add the server manually.

Getting ready

Make sure that both GlassFish and NetBeans are installed.

How to do it...

  1. Start the NetBeans IDE.
  2. Go to Window | Services to open the Services window:
    How to do it...
  3. Right-click the Servers option, and then click on Add Server:
    How to do it...
  4. Choose GlassFish v3 from the list:
    How to do it...
  5. Click on Next.
    How to do it...
  6. Browse the installation directory of the GlassFish server. In our case, it is C:\Program Files\glassfishv3. Check the option I have read and accept the license agreement.
  7. Click on Next.
  8. Select Register Local Domain as the domain location, and domain1 for the Domain field.
    How to do it...
  9. Click on Finish. GlassFish is now added under Servers, as seen in the following screenshot:
    How to do it...

There's more...

Because we added the GlassFish server in NetBeans, the following server options are available, which can be accessed by right-clicking on GlassFish v3 under Servers. Some of the options are as follows:

  • Start
  • Restart
  • Stop
  • Refresh
  • Remove
  • View Admin Console
  • View Server Log
  • Properties
There's more...