Ensure that the server is running.
Remote subcommands require a running server.
Create a custom resource by using the create-custom-resource(1) subcommand.
Information on properties for the subcommand is contained in this help page.
Restart GlassFish Server.
See To Restart a Domain.
This example creates a custom resource named sample-custom-resource.
asadmin> create-custom-resource --restype topic --factoryclass com.imq.topic sample_custom_resource Command create-custom-resource executed successfully.
You can also view the full syntax and options of the subcommand by typing asadmin help create-custom-resource at the command line.