All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-jndicustomresourcenew.html Maven / Gradle / Ivy

The newest version!



To Create a Custom JNDI Resource

A custom JNDI resource specifies a custom server-wide resource object factory.

  1. In the navigation tree, expand the Resources node .
  2. Under the Resources node, expand the JNDI node.
  3. Under the JNDI node, select Custom Resources.

    The Custom Resources page opens.

  4. On the Custom Resources page, click New.

    The New Custom Resource page opens.

  5. In the JNDI Name field, type a unique name.

    This name will be registered in the JNDI naming service. The JNDI name organizes and locates components within a distributed computing environment similarly to the way that card catalogs organize and represent locations of books in a library. Consequently, the JNDI name becomes an important method of accessing the custom resource.

  6. In the Resource Type field, do one of the following.
    • From the drop-down list, select a type definition.
    • Select the second radio button and type a fully qualified type definition that follows the format xxx.xxx.
  7. In the Factory Class field, type a factory class name for the custom resource to be created.

    The Factory Class is the user-specified name for the factory class. This class implements the javax.naming.spi.ObjectFactory interface.

  8. In the Description field, Type a short description of the resource.

    This description is a string value and can include a maximum of 250 characters.

  9. Select the Status Enabled checkbox to enable the resource.

    By default, the resource is enabled, meaning that it is available as soon as it is created.

  10. (Optional) In the Additional Properties section, specify additional properties for the custom resource.

    The GlassFish Server does not define any additional properties for custom resources.

    To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.

  11. Click OK.

See Also

Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy