877-277-2477
info@capstonecourseware.com
120-WL. The Java Message Service with WebLogic
Version 10.3.0

Book cover

This course teaches everything that most Java developers will need to know about programming asynchronous messaging using the Java Message Service, or JMS, on the Oracle® WebLogic platform. Both the point-to-point and publish-and-subscribe messaging styles are covered, but there is an emphasis on the more popular point-to-point approach using message queues. The course moves quickly from JMS fundamentals -- connections, sessions, queues, topics, etc. -- to intermediate techniques such as message properties and selectors. By the end of the day, students will understand JMS reliability and be able to make intelligent architectural choices between delivery modes, acknowledgement modes, and transacted sessions.

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. No association with or endorsement by Oracle Corporation is implied by the use of these terms in this document.

Prerequisites

  • Solid Java programming experience is required -- consider Course 103 or its equivalent a firm prerequisite.
  • An understanding of Java web applications will be helpful, but is not required.

Learning Objectives

  • Use JMS queues to manage message transmission between a single producer and a single consumer.
  • Use JMS topics to allow for broadcasting of messages in real time.
  • Use various JMS message types, including text, object, and map-based messages.
  • Set message headers and use properties to define additional information about messages.
  • Use message selectors to filter messages in consumption.
  • Trigger redelivery of messages using various acknowledgement modes and techniques.
  • Use JMS transactions to assure that message receipts and sends are grouped into atomic units of execution.

Timeline: 1 day.

Server Support: WebLogic

  • This version of the course works with the WebLogic server. Our Java EE courses are available in variants that support various server products, including Tomcat, GlassFish, JBoss, and WebLogic. For more details, and to find a desired server-specific version of a course, see our server-support matrix.

IDE Support: Workshop 10.3

  • In addition to the primary lab files, an optional overlay is available that adds support for Workshop 10.3. Students can code and build all exercises from within the IDE. Final build and deploy, and testing using application clients, are done from the command line using Ant. See also our orientation to Using Capstone's Eclipse Overlays, and please be advised that this is an optional feature; it is not a separate version of the course, and the course itself does not contain explicit Eclipse-specific lab instructions.

Chapter 1. Fundamentals

  • Asynchronous Messaging
  • The Java Message Service
  • Point-to-Point Messaging
  • Publish-and-Subscribe Messaging
  • The WebLogic Server
  • JNDI
  • Connections and Sessions
  • Working with Queues
  • Working with Topics
  • WebLogic JMS Administration
  • Expiration

Chapter 2. Message Content

  • Message Types
  • Header Fields
  • Properties
  • Message Selectors

Chapter 3. Reliability

  • Message Persistence
  • JMS from Web Applications
  • The Component Environment
  • Acknowledgement and Redelivery
  • Acknowledgement Modes
  • Session Recovery
  • Transactions
  • What JMS Transactions Are and Aren't
  • Transaction Pitfalls
  • Batch Processing
  • Priority
  • JMS and EJB: Message-Driven Beans
  • JMS and Web Services: SOAP Messaging
  • The WebLogic JMS-SOAP Bridge

Appendix A. Learning Resources

System Requirements

Hardware Requirements (Minimum) 1 gHz, 1 gB RAM, 3 gB disk space.
Hardware Requirements (Recommended) 2 gHz, 2 gB RAM, 5 gB disk space.
Operating System Tested on Windows XP Professional.
Network and Security Limited privileges required -- please see our standard security requirements.
Software Requirements Course software should be viable on all systems for which WebLogic 10.3 is available.