You can deploy JMS resources with the deploy command (without using the administration console). If you want to create a group of resources consisting of ConnectionFactory, topics and queues, you only have to deploy a geronimo-activemq-ra connector (RA means "ResourceAdapter") with an deployment plan as follows:
Now you only have to deploy this deployment plan and the geronimo-activemq-ra connector with the deploy command. For this example, the deployment plan is named as
JMSResources.xml and deployed on a Unix-based system with the following command:
Note that the path or name of geronimo-activemq-ra-2.2-SNAPSHOT.rar can be different according to the Geronimo installation that you have.
If you want to undeploy this geronimo-activemq-ra connector, use the following undeploy command:
console.jms/jmsResources/1.0/car is the moduleID of the geronimo-activemq-ra connector defined in the deployment plan.