TicketMonster is an online ticketing demo application that gets you started with JBoss technologies, and helps you learn and evaluate them.
Here are a few instructions for building and running it. You can learn more about the example from the tutorial.
NOTE: This step is optional. It is necessary only if you want to update the dates of the Performances in the import.sql
script in an automated manner. Updating the performance dates ensure that they are always set to some timestamp in the future, and ensures that all performances are visible in the Monitor section of the TicketMonster application.
-
Run the
update_import_sql
Perl script. You'll need theDateTime
,DateTime::Format::Strptime
andTie::File
Perl modules. These are usually available by default in your Perl installation.$ perl update_import_sql.pl src/main/resources/import.sql
TicketMonster can be built from Maven, by runnning the following Maven command:
mvn clean package
If you want to run the Arquillian tests as part of the build, you can enable one of the two available Arquillian profiles.
For running the tests in an already running application server instance, use the arq-wildfly-remote
profile.
mvn clean package -Parq-wildfly-remote
If you want the test runner to start an application server instance, use the arq-wildfly-managed
profile. You must set up the JBOSS_HOME
property to point to the server location, or update the src/main/test/resources/arquillian.xml
file.
mvn clean package -Parq-wildfly-managed
If you intend to deploy into OpenShift, you can use the postgresql
and openshift
profile
mvn clean package -Ppostgresql,openshift,default
If you intend to deploy into OpenShift, you can use the mysql
and openshift
profiles
mvn clean package -Pmysql,openshift,deafult
You can run TicketMonster into a local JBoss EAP 6.3 instance or on OpenShift.
-
Open a command line and navigate to the root of the JBoss server directory.
-
The following shows the command line to start the server with the web profile:
For Linux: JBOSS_HOME/bin/standalone.sh For Windows: JBOSS_HOME\bin\standalone.bat
-
Make sure you have started the JBoss Server as described above.
-
Type this command to build and deploy the archive into a running server instance.
mvn clean package wildfly:deploy
(You can use the
arq-wildfly-remote
profile for running tests as well) -
This will deploy
target/ticket-monster.war
to the running instance of the server. -
Now you can see the application running at
http://localhost:8080/ticket-monster
TBD