In NetBeans, open the Services window.
To add a Sun Java System Application Server, do the following:
Right-click the Logical Host.
Point to New, and then select Sun Java System Application Server.
Right–click the new application server, and then click Rename.
Enter a unique name for the application server, and then press Enter.
Right-click the application server, and then select Properties.
Enter the server’s URL, administrator login ID, and password.
To add a Sun Java System Message Server, do the following:
Right-click the Logical Host.
Point to New, and then select Sun Java System Message Queue.
Right–click the new message server, and then click Rename.
Enter a unique name for the message server, and then press Enter.
Right-click the message server, and then select Properties.
Enter the server’s URL, administrator login ID, and password.