To create a custom resource that provides properties to applications, set the custom resource's factory class to org.glassfish.resources.custom.factory.PropertiesFactory, then specify one or both of the following:
Create a property in the custom resource named fileName and specify as its value the path to a properties file or an XML file.
The path can be absolute or relative to as-install. The file must be accessible to the GlassFish Server.
If an XML file is specified, it must match the document type definition (DTD) specified in the API definition of java.util.Properties.
Create the desired properties directly as properties of the custom resource.
If both the fileName property and other properties are specified, the resulting property set is the union. If the same property is defined in the file and directly in the custom resource, the value of the latter takes precedence.