Understanding the Java EE Server Resources Window
The Server Resources window contains the following columns:
- Resource Name: Displays the JNDI name, or the resource name if it is a
connection pool.
- Resource Type: Displays the type (type name of the element when added
to the sun-resources.xml file).
- Annotation Present: Displays whether a @Resource annotation appears in
the EJB or Servlet.
- Defined in File: Displays whether the resource is being used by the EAR
project. This information is acquired by examining the EAR file for @Resource
annotation and deployment descriptors.
Server resources are created, edited, deleted, or viewed via the Server Resources
window. The following choices are available by either clicking the designated
button, or by right-clicking a resource and selecting a menu item.
- Edit - Makes changes to an existing sun-resource. If it does not exist,
then it will be displayed as Create.
- Create - Creates a resource file. If no sun-resource file exists, then
the server resources window is populated with information from the @Resource
annotation. Select OK on the on the editor dialog box to create the resource
file.
- Delete - Deletes the corresponding sun-resource file.
- View Usage - Displays the locations where the selected resource is used.
Each entry in the Resource Usage window can be either a Java source file
or Deployment Descriptor with a line number.
- See Also
- About JBI and Java EE Web Services
- Accessing Java EE Server Resources
- Java EE Server Resource Usage
Legal Notices