Registering a Resource with the Sun Java System Application Server
See Also
Once you have created a resource object, it 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. Using the pop-up menu in the IDE
you can also register resources individually without deploying or redeploying the project.
When you create a resource object for a project with the New File wizard,
the resource is added to the project and appears in two places:
- In the Server Resources node in the Projects window.
- In the setup folder in the Files window.
To register an individual resource:
- Locate the object in the Projects window or Files window.
- Right-click the object and choose Register.
- In the Java Message Service Resource Registration dialog box,
check to make sure the JNDI resource name and the server instance are correct.
- Click Register.
- Click Close when you get the registration successful message.
After the object is registered with the server it is visible in the Runtime 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:
- Locate the object you wish to delete in the Runtime window.
- Right-click on the object and select Delete.
When you delete a resource from the server it is no longer visible in the Runtime window.
Notes:
- After a resource has been removed from the server, it is still listed as a resource in your project.
Unless you delete the resource from your project, when you deploy your application
the resource will be registered again. To completely delete the resource and ensure that it is not
registered again, delete the resource using the pop-up menu in the Files window or the Projects window.
- The JNDI name for a resource must be unique. If the JNDI name is already taken by another resource,
an error message will appear in the dialog box when you try to register the resource. To change the JNDI name,
right-click the resource in the Files or Projects window, choose Properties and change the JNDI name.
- See Also
- Working with the Sun Java System Application Server
Legal Notices