keklikhasan / jms2-lab

JMS 2 Hands-on-Lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 GlassFish, 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 WildFly.

Setup

  • 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 7.
  • Install NetBeans 8 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. This will automatically install GlassFish for you.
  • Download this repository, probably as a zip. If using a zip download, unzip somewhere in your file system.

Instructions

  • Open NetBeans and start GlassFish (Services -> Servers -> GlassFish -> Start).
  • 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.

Resources

About

JMS 2 Hands-on-Lab

License:MIT License


Languages

Language:Java 100.0%