ActiveMQ in Action

所需积分/C币:11 2017-08-08 15:09:02 16.07MB PDF

ActiveMQ in Action
ActiveMQ in Action BRUCE SNYDER DEJAN BOSANAC ROB DAVIES MANNING Greenwich (74 w. long For online information and ordering of this and other manning books, please visit www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity For more information, please contact Special Sales Department Manning publications co 1 80 Broad st Suite 1323 Stamford. cT06901 Email:orders@manning.com o201l by Manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps oo Recognizing the importance of preserving what has been written, it is mannings policy to have the books we publish printed on acid-free paper and we exert our best efforts to that end Recognizing also our responsibility to conserve the resources of our planet, Manning book are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine Manning publications co Development editor: Jeff Bleiel 1 80 Broad St Copyeditor: Benjamin Berg Suite 1323 Proofreader: Katie tennant Stamford. CT06901 Typesetter Dottie marsico Cover designer: Marija Tudor ISBN978-1933988948 Printed in the united states of america 12345678910-MAL-1615141312 brief contents PART 1 AN INTRODUCTION TO MESSAGING AND ACTIVEM Q 1 Introduction to Apache ActiveMQ 3 2 Understanding message-oriented middleware and IMs 17 3 The ActiveMQ in Action examples 42 PART 2 CONFIGURING STANDARD ACTIVEMQ COMPONENTS 55 4 Connecting to ActiveMQ 57 5 ActiveMQ message storage 96 6 Securing ActiveMQ 117 PART 3 USING ACTIVEMQ TO BUILD MESSAGING APPLICATIONS 143 789 Creating Java applications with ActiveMQ 145 Integrating ActiveMQ with application servers 174 ActiveMQ messaging for other languages 22 BRIEF CONTENTS PART 4 ADVANCED FEATURES IN ACTIVEMQ 255 10 Deploying ActiveMQ in the enterprise 257 11 ActiveMQ broker features in action 277 12 Advanced client options 295 13 Tuning ActiveMQ for performance 312 14 Administering and monitoring ActiveMQ 381 contents preface xU acknowledg about this book xix PART 1 AN INTRODUCTION TO MESSAGING AND ACTIVEMQ Introduction to Apache ActiveMQ 3 1.1 ActiveMQ features 4 1. 2 USing ActiveMQ: why and when? 6 Loose coupling and ActiveMQ 6. When to use ActiveMQ 8 1. 3 Getting started with ActiveMQ 10 Downloading and installing the Java se 10 downloading ActivemQ 11: Examining the ActivemQ directory 11 Starting up ActiveMQ 12 1.4 Running your first examples with ActiveMQ 14 1.5 Summary 16 2 Understanding message-oriented middleware and MS 17 2.1 Introduction to enterprise messaging 18 2.2 What's message-oriented middleware? 20 CoNTENTS 2.8 What's the Java Message Service? 21 2.4 The JMS specification 28 MS clients 23. Non-/Ms clients 25. The Ms provider 25 The Ms message 25 .MS message internals 25: Message selectors 29 .Mms domains 32 Administered objects 35 2.5 Using the JMs APIs to create JMS applications 35 A simple ms application 36 Message-driven beans 39 2.6 Summary 41 3 The ActiveMQ in Action examples 42 8. 1 Downloading Maven and compiling the examples 43 8.2 Use case one: the stock portfolio example 45 Running the stock portfolio example 46 3.3 Use case two: the job queue example 50 Running the job queue example 51 3.4 Summary 53 PART 2 CONFIGURING STANDARD ACTIVEMO COMPONENTS ●●。@@@@@●。@e@@@@0@@@@@@●@ 55 4 Connecting to ActiveMQ 57 4.1 Understanding connector Uris 58 4.2 Transport connectors 60 Configuring transport connectors 60. Adapting the stock portfolio example 61 4.3 Connecting to ActiveMo over the network 63 Transmission Control protocol (TCP)64. New 1/0 API protocol (N1o) 66. User Datagram Protocol (UDP)68 Secure Sockets layer Protocol (ssl) 70 Hypertext Transfer Protocol(http:/https)77 4. Connecting to ActiveMQ inside the virtual machine (VM connector) 79 4.5 Network connectors 81 Static networks 83 Dynamic networks 88 4.6 Summary 94 CoNTENTS ActiveMo message storage 96 5.1 How are messages stored by ActiveMQ: 97 5.2 The Kahadb message store 98 The KahaDB message store internals 99. The KahaDB message store directory structure 100. Configuring the KahaDB message store 101 5.8 The AMQ message store 108 The aMQ message store internals 103 The AMQ message store directory structure 104. Configuring the amQ message store 105 5. 4 The JDBC message store 107 Databases supported by the DBC message store 107. The DBC message store schema 108: Configuring the DBC message store 109. Using the DBC message store with the ActiveMQ journal 111 5.5 The memory message store 1ll Configuring the memory store 112 5.6 Caching messages in the broker for consumers 113 How message caching for consumers works 113 The ActiveMQ subscription recovery policies 114 Configuring the subscription pe recovery polic 115 5. 7 Summary 116 Securing ActiveMQ 117 6.1 Authentication 118 Configuring the simple authentication plug-in 118 Configuring the JAAs plug-in 121 6.2 Authorization 123 Destination-level authorization 124 Message-level authorization 127 6.8 Building a custom security plug-in 131 Implementing the plug-in 132. Configuring the plug-in 133 Testing the plug-in 134 6. Certificate-based security 135 Preparing certificates 136. Creating a truststore 136 Configuring the broker 138 Authorization explained 139 Testing it out 139 6.5 Summary 142

...展开详情
img
GrandKai
  • GitHub

    绑定GitHub第三方账户获取
  • 分享精英

    成功上传11个资源即可获取

关注 私信 TA的资源

上传资源赚积分,得勋章
相关内容推荐