To create a custom resource that provides Java primitives to applications, follow these steps:
Set the custom resource's factory class to org.glassfish.resources.custom.factory.PrimitivesAndStringFactory.
Set the custom resource's resource type to one of the following or its fully qualified wrapper class name equivalent:
Create a property in the custom resource named value and give it the value needed by the application.
For example, If the application requires a double of value 22.1, create a property with the name value and the value 22.1.