Use the create-admin-object subcommand to create an administered object resource. When creating an administered object resource, name-value pairs are created, and the object is associated to a JNDI name.
The resource adapter must be deployed before running this subcommand (jmsrar.rar).
Create an administered object by using the create-admin-object(1) subcommand.
Information about properties for the subcommand is included in this help page.
(Optional) If needed, restart the server.
For this example, the javax.jms.Queue resource type is obtained from the ra.xml file. The JNDI name of the new administered object is jms/samplequeue.
asadmin> create-admin-object --restype javax.jms.Queue --raname jmsra --description "sample administered object" --property Name=sample_jmsqueue jms/samplequeueCommand create-admin-object executed successfully
You can also view the full syntax and options of the subcommand by typing asadmin help create-admin-object at the command line.