Unit objectives After completing this unit, you should be able to: • Explain the positioning of messaging and queuing in the current business environment • Provide a high-level view of WebSphere MQ functions • Describe the breadth of coverage of WebSphere MQ products
Why are interfaces so expensive to build and maintain? • Application interface logic is intertwined with business logic • Tightly integrated interfaces are difficult to change • The more interfaces, the more complex the application — interface logic may exceed business logic. • Reuse becomes difficult and impractical
Message composition Message = header + application data
Header
Application data
• Set by application and queue manager • Header – MQMD (message descriptor) • Application data – Any sequence of bytes – Meaningful only to the sending and receiving applications – Not meaningful to the queue manager
Unit summary Having completed this unit, you should be able to: • Explain the positioning of messaging and queuing in the current business environment • Provide a high-level view of WebSphere MQ functions • Describe the breadth of coverage of WebSphere MQ products
Checkpoint questions (1 of 2) 1. WebSphere MQ uses an interface for programs to access resources called: a. The program-to-program API. b. The Message Queue Interface. c. The synchronous model. d. Triggering.
2. True or False: WebSphere MQ only supports messaging and queuing in an asynchronous environment. 3. True or False: In WebSphere MQ triggering, the queue manager starts the triggered program.
Checkpoint answers (1 of 2) 1. WebSphere MQ uses an interface for programs to access resources called: a. The program-to-program API. b. The Message Queue Interface. c. The synchronous model. d. Triggering. Answer: b.
2. True or False: WebSphere MQ only supports messaging and queuing in an asynchronous environment. Answer: False. WebSphere MQ also supports messaging and queuing in a synchronous environment.
3. True or False: In WebSphere MQ triggering, the queue manager starts the triggered program. Answer: False. The trigger monitor starts the triggered application.
Checkpoint questions (2 of 2) 4. A message consists of: a. Application data. b. A WebSphere MQ trailer. c. A security header. d. A message descriptor. e. All the above.
5. All WebSphere MQ messages have a header. It is the: a. MQXQH (transmission header). b. MQDLK (dead letter header). c. MQMD (message descriptor). d. MQTH (trigger header).
Checkpoint answers (2 of 2) 4. A message consists of: a. Application data. b. A WebSphere MQ trailer. c. A security header. d. A message descriptor. e. All the above. Answer: a and d, although it is possible for a message to contain only a message descriptor and no application data. Security information, known as the “message context,” is part of the message descriptor.