Registering and Deleting a Resource from the GlassFish Application Server

See Also

Once you have created a resource object, the resource needs to be registered with the server. Once registered, the object is available to all the applications and resources.

Resources are automatically registered with the server when the project is deployed.

When you create a resource object for a project with the New File wizard, the resource name and properties are added to the file sun-resources.xml. You can edit sun-resources.xml in the Source Editor to modify resource properties.

To open the sun-resource.xml in the Source Editor, double-click the file in one of the following places:

Note.

After the object is registered with the server it is visible in the Services window under the Servers node under the node corresponding to the type of resource. You can modify some of the properties of the resource object by opening the properties window for the object.

To delete a resource from the server:

  1. Locate the object you wish to delete in the Services window.
  2. Right-click on the object and select Delete Resource.

When you delete a resource from the server it is no longer visible in the Services window.

Notes:

See Also
Working with the GlassFish Application Server

Legal Notices