This sample demonstrates how to deploy a service in jboss using immutant. The sample can run on jetty as well. Routing and URL generation work correctly in both cases.
- Start the application:
lein run
- Go to localhost:8080 to see how the route is resolved.
- Go to localhost:8080/about to see how the route is resolved.
- Stop the server.
- Install the immutant container: 'lein immutant install'
- Run the immutant container: 'lein immutant run'
- In a separate shell, deploy the sample to the immutant container: 'lein immutant deploy'
- Watch the immutant log to see when the sample is completely deployed.
- Go to localhost:8080 to see how the route is resolved.
- Go to localhost:8080/about to see how the route is resolved.
- Read the service's source code at src/jboss/service.clj. Read immutant initialization code at src/immutant/init.clj.
- Learn more! See the Links section below.