From the course: Learning Java Enterprise Edition
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge - Java EE Tutorial
From the course: Learning Java Enterprise Edition
Challenge
- [Instructor] Okay let's have a look at a challenge that will help you understand better how to use the JMS, and in particular how to use the observer. The challenge is, implement a view for observed cargo events. So the first thing you need to do is to implement an observer that listens for cargo events. Then when it receives a cargo event, it will need to add it to a collection. And then write a view that displays the handled cargos in a data table. And a little hint: have a look at the onCargoInspected method in the RealtimeCargoTrackingService class. This challenge shouldn't take more than about 10 minutes.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.