JMS 2 Hands-on-Lab
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

JMS 2 Hands on Lab

This hands-on-lab provides a basic introduction to the JMS 2 API included in Java EE 7. The lab uses WildFly, NetBeans and Maven. You could choose to use Eclipse or any other IDE with a little bit of effort. Similarly it should be possible to use any Java EE 7 compatible application server such as GlassFish, JBoss EAP, WebSphere Liberty or WebLogic.


  • This lab assumes you are using your own machine. You will need to perform this setup on the machine you will use for the lab.
  • Make sure you have at least JDK 7 installed. The lab was tested with JDK 8.
  • Install NetBeans 8.1 or above. Make sure you use the Java EE version of NetBeans (NetBeans comes in several flavors - we need the Java EE features). During NetBeans installation, please accept all the default choices.
  • Please install WildFly 10.1.0.Final. You will need the full Java EE 7 version. All you should need to do is download a zip file and unzip it.
  • Download this repository, probably as a zip. If using a zip download, unzip somewhere in your file system.


  • Start WildFly by executing WILFLY_INSTALL_LOCATION/bin/standalone.[sh|bat] --server-config=standalone-full.xml. You can also setup and start WildFly from NetBeans, this is what we did.
  • Open the Maven project in the 'problem' directory in NetBeans (File -> Open Project). This is the project you will be working on. Simply start reading the instructions in the comments for the unit test. At this stage you should have a basic understanding of JMS 2 and have had explored the JMS 2 Javadocs (if this is not the case you should start with the resources below). You will be basically developing the unit test in the project (the tests will fail when you start). To run all the tests in NetBeans, right click the unit test file and select "Test File". Running the tests the first time will take some time as the Maven build is invoked for the first time and all required dependencies are downloaded. You will be much better off running each test at a time througout the lab. You do this by right clicking on a given test method in the editor and selecting "Run Focused Test Method".
  • A solution is in the 'solution' directory. Feel free to open this in NetBeans and look at it if you need to. The best way of learning is looking at the solution if you are absolutely stuck.