$ cd 03_Code/ticket-agency/
$ mvn install
$ cd ticket-agency-ejb
$ mvn wildfly:deploy
INFO: JBoss Remoting version 4.0.3.Final
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27.915 s
[INFO] Finished at: 2015-05-12T20:21:15-04:00
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
$ jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[standalone@localhost:9990 /] deploy
ticket-agency-ejb.jar
[standalone@localhost:9990 /] exit
$ cd ../ticket-agency-ejb-client/
$ mvn package exec:exec
Theatre booking system
=====================================
Commands: book, bookasync, list, mail, money, quit
> bookasync
Enter SeatId: 5
May 12, 2015 8:36:45 PM com.packtpub.wflydevelopment.chapter3.client.TicketAgencyClient handleBookAsync
INFO: Booking issued. Verify your mail!
==================
TO run application on Eclipse:
RUN -> RUN Configuration -> Maven Build
Name:
ticket-agency-ejb deploy
Base directory:
${workspace_loc:/ticket-agency-ejb}
Goals:
wildfly:deploy
=======================================
Name:
ticket-agency-ejb-client
Base directory:
${workspace_loc:/ticket-agency-ejb-client}
Goals:
install exec:exec