The Java EE 6 Tutorial

ProcedureTo Build and Package the AsynchConsumer Client Using Ant

  1. In a terminal window, go to the asynchconsumer directory:


    cd ../asynchconsumer
    
  2. Type the following command:


    ant
    

    The targets package both the main class and the message listener class in the JAR file and place the file in the dist directory for the example.