You can deploy jms JMS resources with deploy
command (without web Web console). When you want to create a group of resources consist consisting of ConnectionFactory, topics and queues you only have to deploy a geronimo-activemq-ra connector (RA means "ResourceAdapter") with an deploy plan like this...
...
Now you only have to deploy it with this command (name the deploy plan above as JmsResources.xml
) using for this example:
java -jar <GERONIMO<geronimo_HOME>home>/bin/deployer.jar --user system --password manager --host localhost deploy JmsResources.xml <GERONIMO_HOME>/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.2/geronimo-activemq-ra-2.0.2.rar
Remember that geronimo-activemq-ra-2.0.2.rar
path or name can change according to the geronimo 2.x installation that you have. If the deploy command works well, in Geronimo Web Console, select JMS Resources will appear a new JMS Resource group named jmsResources (console.jms/jmsResources/1.0/rar). console.jms/jmsResources/1.0/rar
is the component name created using data defined in moduleId tag.
If you want to undeploy it, you can do it from Geronimo Web Console -> J2EE connectors or with deploy command in this manner...
java -jar <GERONIMO<geronimo_HOME>home>/bin/deployer.jar --user system --password manager --host localhost undeploy console.jms/jmsResources/1.0/rar
Remember set RemoteDeployHostname into <GERONIMO<geronimo_
HOME>home>\var\config\config-substitutions.properties
if you want to do remote deploy (when --host parameter is not the localhost).