This topic has not yet been written. The content below is from the topic description.
Building the module from the /demos directory will output a usage note that explains how to run the demos: usage: [echo] To run an example: [echo] 1) In a separate console window,start either a standalone JBoss AS instance or a JBoss AS domain [echo] 2) Run mvn package -Dexample= where "exammple.name is the name of the example [echo] [echo] Valid example names to run against a standalone JBoss AS instance are [echo] sar - deploys mbeans packaged in a sar [echo] managedbean - deploys a managed bean [echo] serviceloader - deploys a serviceloader style service [echo] messaging - deploys HornetQ native sender and receiver [echo] jms - deploys HornetQ JMS sender and receiver [echo] jms.client - Uses HornetQ JMS API from the client [echo] rar - deploys a resource adapter [echo] ds - deploys a test bean for data sources [echo] war - deploys a simple servlet and connects to it [echo] client.messaging - creates a HornetQ core queue using the management API [echo] client.jms - creates a JMS queue using the management API [echo] web.connector - creates and removes a jboss web connector [echo] [echo] Valid example names to run against a JBoss AS domain are [echo] domain.configs - reads the domain config and any available host controller configs [echo] domain.ds - deploys deploys a test bean for data sources [echo] domain.messaging - deploys HornetQ native sender and receiver [echo] domain.rar - deploys deploys a resource adapter [echo] domain.servers - shows domain, host controller and server configs, starts/stops servers The primary point of the demos is to look at the source code and see how they use the AS's management API to deploy content and/or alter the configuration of the running server(s). To see how an example works, look at the relevant demos/src/main/java/org/jboss/as/demos//runner.ExampleRunner.java file.