Use the create-lifecycle-module subcommand in remote mode to create a life cycle module.
Ensure that the server is running.
Remote subcommands require a running server.
Create a new life cycle modules by using the create-lifecycle-module(1) subcommand.
Information about options and properties for the subcommand are included in this help page.
Restart the server for your changes to take effect.
See To Restart a Domain.
This example creates the customSetup life cycle module :
asadmin> create-lifecycle-module --classname "com.acme.CustomSetup" --classpath "/export/customSetup" --loadorder 1 --failurefatal=true --description "this is a sample customSetup" --property rmi="Server\=acme1\:7070":timeout=30 customSetup Command create-lifecycle-module executed successfully |
You can also view the full syntax and options of the subcommand by typing asadmin help create-lifecycle-module at the command line.