NetBeans-SCSNI

1.3-Demonstrate the ability to work with servers in the IDE, such as registering new server instances and stopping and starting servers.

Servers in the IDE
Before you can deploy an enterprise application, web application, JSP, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE. When a server is registered with the IDE, its libraries are available for production, or deployment, or both. Servers that are installed during the IDE installation process are automatically registered in the IDE. You must register all other servers yourself.
Only once you have registered a Java EE application server can you begin developing enterprise applications.
When a server is registered with the IDE, you can see its node in the Services window under the Servers node. When you create a project in the New Project wizard, you can select the server to which you want to deploy your application. After you create the application, you can change the server by right-clicking the project, choosing Properties, clicking Run, and selecting a different server.

Registering a Server
Before you can deploy an enterprise application, web application, JSP file, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE.
To register an external server:
Choose Tools > Servers in the main menu.
In the Server Manager, click Add Server.
The Add Server wizard appears and displays the types of servers that are compatible with the IDE.
In the dialog box, select the type of server you want to register and click Next.
Specify the server-specific information in the panels that follow and click Finish.
Alternatively, you can open the Add Server wizard by right-clicking the Servers node in the Services window and choosing Add Server.

Servers Dialog Box
Before you can deploy an enterprise application, web application, JSP file, servlet, or EJB module, the server to which you are going to deploy needs to be registered with the IDE.
You open the Servers dialog box by choosing Tools > Servers from the main menu.
You can use the Servers dialog box to do the following:

Register a new server.
View registered servers' classpaths.
Register source code for a server in the Sources tab.
Register Javadoc documentation for a server in the Javadoc tab.
Specify deployment options (Sun Java System Application Server/GlassFish only)

Note:
Any web servers that you chose to install when you installed the IDE are automatically registered in the IDE. You must register all other servers manually.
After you register a server, you can configure a project to use that server for compilation, execution, and debugging. To specify the server for your project, right-click the project in the Projects window and choose Properties. In the Properties window, select the Run node, and choose the appropriate server in the Server drop-down list.
The Servers dialog box provides additional settings in some tabs for configuring the following servers.


- Wagner