100% found this document useful (13 votes)
46 views

Implementing SOA Using Java EE 1st Edition B.V. Kumar 2024 Scribd Download

SOA

Uploaded by

albinzagenub
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (13 votes)
46 views

Implementing SOA Using Java EE 1st Edition B.V. Kumar 2024 Scribd Download

SOA

Uploaded by

albinzagenub
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

Download the full version of the ebook at ebookname.

com

Implementing SOA Using Java EE 1st Edition B.V.


Kumar

https://ebookname.com/product/implementing-soa-using-java-
ee-1st-edition-b-v-kumar/

OR CLICK BUTTON

DOWNLOAD EBOOK

Download more ebook instantly today at https://ebookname.com


Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Advanced Java Programming Uttam Kumar Roy

https://ebookname.com/product/advanced-java-programming-uttam-kumar-
roy/

ebookname.com

Beginning Java EE 6 Platform with GlassFish 3 1st Edition


Antonio Goncalves

https://ebookname.com/product/beginning-java-ee-6-platform-with-
glassfish-3-1st-edition-antonio-goncalves/

ebookname.com

Beginning EJB 3 2nd Edition Java EE 7 Edition Jonathan


Wetherbee

https://ebookname.com/product/beginning-ejb-3-2nd-edition-java-
ee-7-edition-jonathan-wetherbee/

ebookname.com

The Blackwell Encyclopedia of Management Managerial


Economics Blackwell Encyclopaedia of Management Volume 8
2nd Edition Robert E. Mcauliffe
https://ebookname.com/product/the-blackwell-encyclopedia-of-
management-managerial-economics-blackwell-encyclopaedia-of-management-
volume-8-2nd-edition-robert-e-mcauliffe/
ebookname.com
Ethics Technology and Engineering An Introduction 1st
Edition Ibo Van De Poel

https://ebookname.com/product/ethics-technology-and-engineering-an-
introduction-1st-edition-ibo-van-de-poel/

ebookname.com

The Parallax View 1st Edition Slavoj Žižek

https://ebookname.com/product/the-parallax-view-1st-edition-slavoj-
zizek/

ebookname.com

The Problem of Perception 1st Edition A. D. Smith

https://ebookname.com/product/the-problem-of-perception-1st-edition-a-
d-smith/

ebookname.com

Multilingual Currents in Literature Translation and


Culture 1st Edition Rachael Gilmour

https://ebookname.com/product/multilingual-currents-in-literature-
translation-and-culture-1st-edition-rachael-gilmour/

ebookname.com

Nonlinear Partial Differential Equations with Applications


1st Edition Tomás Roubicek

https://ebookname.com/product/nonlinear-partial-differential-
equations-with-applications-1st-edition-tomas-roubicek/

ebookname.com
In Situ Testing in Geomechanics The Main Tests 1st Edition
Fernando Schnaid (Author)

https://ebookname.com/product/in-situ-testing-in-geomechanics-the-
main-tests-1st-edition-fernando-schnaid-author/

ebookname.com
Implementing SOA
Using Java™ EE

The Java Series

Visit informit.com/thejavaseries for a complete list of available publications.

ublications in The Java ™ Series are supported, endorsed, and


P written by the creators of Java at Sun Microsystems, Inc. This series
is the official source for expert instruction in Java and provides the
complete set of tools you’ll need to build effective, robust, and portable
applications and applets. The Java ™ Series is an indispensable resource
for anyone looking for definitive information on Java technology.

Visit Sun Microsystems Press at sun.com/books to view additional titles


for developers, programmers, and system administrators working with
Java and other Sun technologies.
Implementing SOA

Using Java EE

B. V. Kumar
Prakash Narayan
Tony Ng

Upper Saddle River, NJ • Boston • Indianapolis • San Francisco


New York • Toronto • Montreal • London • Munich • Paris • Madrid
Cape Town • Sydney • Tokyo • Singapore • Mexico City
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as Editor-in-Chief
trademarks. Where those designations appear in this book, and the publisher was aware of a trademark Mark Taub
claim, the designations have been printed with initial capital letters or in all capitals. Acquisitions Editor
Sun Microsystems, Inc. has intellectual property rights relating to implementations of the technology Greg Doench
described in this publication. In particular, and without limitation, these intellectual property rights may Development Editor
include one or more U.S. patents, foreign patents, or pending applications. Songlin Qiu
Sun, Sun Microsystems, the Sun logo, J2ME, J2EE, Java Card, and all Sun and Java based trademarks Managing Editor
and logos are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and Kristy Hart
other countries. UNIX is a registered trademark in the United States and other countries, exclusively
licensed through X/Open Company, Ltd. This publication is provided “as is” without warranty of any Project Editor
kind, either express or implied, including, but not limited to, the implied warranties of merchantability, Anne Goebel
fitness for a particular purpose, or non-infringement. This publication could include technical inaccura- Copy Editor
cies or typographical errors. Changes are periodically added to the information herein; these changes Apostrophe Editing
will be incorporated in new editions of the publication. Sun Microsystems, Inc. may make improve- Services
ments and/or changes in the product(s) and/or the program(s) described in this publication at any time.
Indexer
The authors and publisher have taken care in the preparation of this book, but make no expressed or Lisa Stumpf
implied warranty of any kind and assume no responsibility for errors or omissions. No liability is
Proofreader
assumed for incidental or consequential damages in connection with or arising out of the use of the
Karen A. Gill
information or programs contained herein.
Publishing Coordinator
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or
Michelle Housley
special sales, which may include electronic versions and/or custom covers and content particular to your
business, training goals, marketing focus, and branding interests. For more information, please contact: Cover Designer
Alan Clements
U.S. Corporate and Government Sales
(800) 382-3419 Senior Compositor
[email protected] Gloria Schurick
For sales outside the United States please contact:
International Sales
[email protected]
Visit us on the web: informit.com/aw
Library of Congress Cataloging-in-Publication Data:
Kumar, B. V. (Balepur Venkatanna ), 1959-
Implementing SOA using Java EE / B.V. Kumar, Prakash Narayan, Tony Ng.
p. cm.
ISBN 978-0-321-49215-9 (pbk. : alk. paper) 1. Service-oriented architecture (Computer science)
2. Java (Computer program language) I. Narayan, Prakash, 1960- II. Ng, Tony. III. Title.
TK5105.5828K95 2010
004.6'54--dc22
2009041877
Copyright © 2010 Sun Microsystems, Inc.
All rights reserved. Printed in the United States of America. This publication is protected
by copyright, and permission must be obtained from the publisher prior to any prohibited
reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic,
mechanical, photocopying, recording, or likewise. For information regarding permissions, write to:
Pearson Education, Inc
Rights and Contracts Department
501 Boylston Street, Suite 900
Boston, MA 02116
Fax (617) 671 3447
ISBN-13: 978-0-321-49215-9
ISBN-10: 0-321-49215-3
Text printed in the United States on recycled paper at Edwards Brothers in Ann Arbor, Michigan.
First printing December 2009
To my mother—Mrs. M. N. Lakshmidevamma
—Dr. B. V. Kumar

To my parents—Mr. K.N. Krishnamoorthy and Mrs. Sharada Krishnamoorthy


—Prakash Narayan

To Kaitlyn, Tyler, and Sophia


—Tony Ng
This page intentionally left blank
Contents

Foreword by Robert Brewin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii


Foreword by Raj Bala . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
Acknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii

Part I Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Products and Services 4
Software-Driven Services 4
Web Services 6
SOA 8
Web Services and SOA Opportunities 12
Summary 13
Endnotes 13
Chapter 2 Evolution of IT Architectures . . . . . . . . . . . . . . . . . . .15
The Server-Side Architecture Progression 16
Progression of Mainframe Architecture 17
Progression of Client/Server Architecture 19
Progression of Distributed Architecture 21
Internet and World Wide Web 26

vii

From the Library of ALESSANDRO CAROLLO


viii CONTENTS

Client-Side Architecture Progression 28


Terminals as Clients 29
Thick Clients 30
Thin Clients 30
Browser Clients 31
Mobile Clients 31
Service Oriented Architecture and Web Services 32
Web Services 32
Arrival of SOAP, WSDL, and UDDI Infrastructure 34
Summary 35
Endnotes 35
Chapter 3 Evolution of Service Oriented Architecture . . . . . . . 37
Services Oriented Architecture—The Description 38
Early Architectures 38
IMS 39
CICS 40
CORBA 41
DCOM 41
Paradigm Shifts 42
Java and Java 2 Enterprise Edition 42
Extensible Markup Language 43
Web Services—XML-RPC and SOAP 44
Arrival of Web Services and SOA 44
First Generation Web Services 45
The Second Generation Web Services 45
SOA Using Web Services 46
Benefits and Challenges with SOA 47
SOA Implementation Technologies 47
Microsoft's .NET Technologies 48
Sun Microsystems’s Java Enterprise Edition Technologies 48
Summary 50
Endnotes 50
Part II Service Oriented Architecture Essentials . . . . . . . . . . . . . . 53
Chapter 4 Message Oriented Services and SOAP . . . . . . . . . . 55
SOAP Conventions 56
Message Envelope 56
Encoding Rules 56
RPC Convention 56
Binding 57
CONTENTS ix

Anatomy of SOAP 57
Basic SOAP Model 57
Detailed SOAP Model 60
SOAP Encoding Details 65
Simple Type Encoding 65
Complex Type Encoding 66
SOAP Binding to the Transport Protocol 68
Interaction Using the SOAP Protocol 68
Message Exchange Model 69
SOAP Response and the Error-Handling Mechanism 71
The SOAP <Fault> 72
The SOAP <faultcode> 72
The SOAP <faultstring> 73
The SOAP <faultactor> 73
The SOAP <detail> 73
SOAP Version Differences and Dependencies 73
SOAP Versioning 73
New SOAP Version 74
Summary 75
Endnotes 76
Chapter 5 Web Services and Web Services Description
Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .77
WSDL—An XML Web Services Description Vocabulary 78
The Web Services Triangle 78
Service Invocation Fundamentals 80
Synchronous Invocation and Fundamentals of RPC Mechanism 81
Service Invocation and WSDL 85
Creation of the Service 86
Generating the Web Service Description for the Service 87
Registering the Web Service 87
Publication of the Web Service 87
Discovering the Web Service 87
Understanding the Web Services Semantics 87
Invocation of Web Service 88
Describing Web Services—The XML Way 91
WSDL Elements and Their Appearance Sequence 92
Anatomy of WSDL Document 93
WSDL Version Differences and Dependencies 100
Summary 100
Endnotes 101
x CONTENTS

Chapter 6 Registries and UDDI . . . . . . . . . . . . . . . . . . . . . . . . . 103


Defining UDDI 104
Taxonomy-Based Business Information 104
UDDI Specifications and Services 105
Public Registries Versus Private Registries 105
UDDI Nomenclature 106
Node API Sets 106
UDDI Node 106
UDDI Registries 106
Data Structure 107
Information Model 107
Core UDDI 107
The <businessEntity> Data Structure 108
The <businessService> Data Structure 109
The <bindingTemplate> Data Structure 110
The <tModel> Data Structure 111
Publication of Business Information 112
Creation and Modification of Business Information 113
Deletion of Business Information 114
Discovering Web Services 115
Information Browsing and Retrieval 116
Information Drill-Down 117
Summary 118
Chapter 7 Orchestration and Choreography . . . . . . . . . . . . . 119
Importance of Business Process and Work Flow 120
Orchestration 121
WS-Business Process Execution Language 122
Processing BPEL 124
Choreography 127
Orchestration and SOA 129
Choreography and SOA 130
Summary 130
Endnotes 131
Chapter 8 Advanced Web Services Infrastructure for
Implementing SOA . . . . . . . . . . . . . . . . . . . . . . . . . 133
Message Exchange Patterns 135
WS-*—The New Generation 136
WS-Addressing 137
WS-Atomic Transaction 137
CONTENTS xi

WS-Coordination 137
WS-Eventing 137
WS-Metadata Exchange 138
WS-Notification 138
WS-Policy Framework 138
WS-Reliability/WS-Reliable Messaging 138
WS-Security 138
WS-*—A Working Definition 139
Addressing 139
Reliability and Reliable Messaging 140
Security 142
WS-* and SOA 146
WS-Reliable Messaging and SOA 147
WS-Security and SOA 147
WS-I Basic Profile 147
Summary 148
Endnotes 148
Part III Java Platform, Enterprise Edition and ESB. . . . . . . . . . . . .149
Chapter 9 Java Platform, Enterprise Edition Overview . . . . . .151
Java EE Technology Categories 153
Web Application Technologies 153
Web Services Technologies 155
Enterprise Application Technologies 158
Common Platform Technologies 160
What's New in Java EE 5 162
Java Annotations 163
POJO Model 165
Developer Productivity 166
Java EE Component Model 167
Application Client 167
Web Components 168
EJB Components 168
Resource Adapter 168
Java EE Quality of Services 169
Distribution 169
Data Integrity 169
Security 169
Performance and Scalability 170
Availability 170
xii CONTENTS

Interoperability 171
Concurrency 171
Summary 171
Endnotes 172
Chapter 10 Web Technologies in Java EE . . . . . . . . . . . . . . . . 173
Java Servlet 174
JSP 176
JSP Standard Tag Library 177
JSF 178
MVC Paradigm in JSF 178
User Interface Component Framework 179
Navigation Model 180
Managed Beans 182
Unified Expression Language 183
Data Conversion and Validation 184
JSF Events 185
Backing Bean Approach 186
Summary 187
Endnote 187
Chapter 11 Enterprise JavaBeans and Persistence . . . . . . . . . 189
Core EJB 3.0 API 190
Dependency Injection 191
Container Services 191
Interceptors 193
New JPA 193
Entity Class 194
Relationships 195
Inheritance 196
Entity Manager 197
Entity Life-Cycle Operations 197
Java Persistence Query Language 200
Object-Relational Mapping 203
Relationship Mapping 203
Inheritance Mapping 204
Summary 205
Chapter 12 Java Web Services Overview . . . . . . . . . . . . . . . . 207
Implementing a Web Service 208
Mapping Between Java and WSDL 208
CONTENTS xiii

Web Service Annotations 210


@WebService 210
@WebMethod 211
@Oneway 211
@WebParam 211
@WebResult 211
@HandlerChain 211
@SOAPBinding 212
Accessing Web Services 212
Protocol and Transport 213
Advanced Features in JAX-WS 213
Handler Framework 213
Asynchronous Interactions 214
Messaging API 215
Java Architecture for XML Binding 217
Schema Evolution 220
Summary 222
Chapter 13 Enterprise Service Bus and Java Business
Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
The Service Bus and Enterprises 224
ESB—A Business Perspective 224
Salient Features of ESB 226
Java Business Integration—Java and ESB 227
Summary 230
Part IV Implementing SOA Using Java EE Platform . . . . . . . . . . . . 231
Chapter 14 Service Oriented Architecture and the
Web Tier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .233
Delivering Services Through the Web Tier 234
The Overall Picture 235
Web Tier Design Patterns and SOA 236
Presentation Tier Design Patterns 236
Frameworks and Service Delivery 237
Services Delivery Using JSF 238
Deciding on the Right Framework 244
Summary 245
Endnotes 246
xiv CONTENTS

Chapter 15 Service Oriented Architecture and the


Business Tier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
Delivering Services Through the Business Tier 248
Business Tier Overview 248
Business Tier Design Patterns and SOA 250
Business Tier Design Patterns 251
Presentation Tier-to-Business Tier Design Patterns 251
Transfer Object Design Pattern 252
Integration Tier Design Patterns 254
The Data Access Object Pattern 255
Intrabusiness Tier Design Patterns 257
Application Service Design Pattern 258
Summary 259
Endnote 260
Chapter 16 Advanced Service Oriented Architecture . . . . . . . 261
Patterns in SOA 261
Asynchronous Messaging Patterns 263
Conversation Patterns 267
Orchestration Patterns 269
Workflow Patterns 273
Summary 279
Endnotes 280
Part V Case Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Chapter 17 Developing Service Oriented Applications—
A Case Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
The Industry Perspective 285
Messaging Distribution in the OTA 285
The Goals of the OTA 286
The Plans and Specifications of the OTA 286
The Alliance Members 287
The Case Study 288
Challenges 289
Solution Implementation Strategies 290
Travel Reservation Service 291
The Workflow or the Process Definition 294
Solution Platform Considerations 296
Summary 298
Endnotes 299
CONTENTS xv

Chapter 18 Delivering SOA Using NetBeans SOA Pack:


Case Study—Solution . . . . . . . . . . . . . . . . . . . . . . .301
Implementation Strategy—An Overview 302
NetBeans IDE 303
Invoking NetBeans 304
Exploring the IDE 304
Project Basics 305
Project Creation 306
Summary 319
Endnotes 319
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .321
Web References 321
AJAX 321
BPEL 321
CICS 321
Design Pattern 322
ESB 322
ESB Importance 322
GDS 322
Hibernate 323
Implementing SOA with Java EE 5 323
IMS 323
IMS TM 323
J2EE Best Practices 323
J2EE Patterns 323
J2EE Versus .NET 323
Java EE 5 Developer Productivity 323
Java Specification Request 324
jRuby 325
OTA 325
Paradigm Shift 325
Paradigm Shift in IT 325
Performance Benchmark 325
Portlet 325
Ruby 325
Sabre, GDS 325
SOA 326
SOA General 326
SOAP 326
xvi CONTENTS

SOA Patterns 326


Tango 326
Web Services 327
WSDL 327
WSDL and UDDI 327
XML 327
Yahoo! 327
Books 327
Design Patterns 327
ESB 327
J2EE 328
Java 328
Java, XML 328
MDA 328
NetBeans 328
SOA 328
Software Architecture 329
Web Services 329
XML 329
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
Forewords

Robert Brewin
Recently, seasoned analysts like Anne Thomas Manes have said that SOA is
dead and that it has failed to deliver its promised benefits. There have been
opposing viewpoints to this. ZDNet blogger Joe McKendrick hosted a panel dis-
cussion on “Avoiding SOA Disillusionment,” and the panelists concluded that
any perceived disillusionment stemmed from lack of planning and measurement
on the part of the Enterprises and not from a failure of SOA. In fact, Enterprises
that have been working with SOA practices and methodologies remain bullish
on the approach and recognize that SOA continues to hold promise as a model
for integration and helping to tactically reduce costs in tough times. The promise
of SOA is that it offers an architectural approach to support the proliferation and
adoption of reusable services. This is an approach that companies should adopt
to streamline their development processes and improve the quality and maintain-
ability of their code.
At Sun, we developed the Java Platform, Enterprise Edition (Java EE) as an
industry standard, and it forms the ideal foundation upon which developers can
implement Enterprise-class SOA and next generation web applications. I am
pleased to see this book by Kumar, Narayan, and Ng, which takes a practical
approach to implementing SOA with Java EE. The focus is on real implementa-
tion techniques, leveraging the GlassFish Application Server and NetBeans IDE.
By taking this approach, the authors have demystified SOA from an alphabet
soup of Web Services standards and shown how readers can implement SOA in
their Enterprise readily and easily. In addition to explaining the concepts of SOA
and the concepts of Java EE, the authors dive deep into implementing SOA with

xvii

From the Library of ALESSANDRO CAROLLO


xviii FOREWORDS

Java EE and show how services can be delivered within different tiers of an
Enterprise architecture.
Architects, developers, managers, other IT professionals, educators, and students
will benefit from different aspects of this book from concepts to architecting to
implementation, configuration, and tuning. I trust that you will find this book
beneficial and enlightening.
Robert Brewin
Chief Technology Officer, Software
Sun Microsystems

Raj Bala
Now more than ever, concepts like availability, leveragability, scalability,
expandability, extendibility, and security permeate every discussion on technol-
ogy architecture. As companies become more aware of harvesting maximum
sustainable value from technology investments, the architecture fraternity has
always cried loud for how the fundamentals matter. Architectural integrity is
measured by all the “itys” that I mentioned in my first sentence, and it is hearten-
ing to see how the answers have been around and, in fact, getting better.
Service oriented architecture (SOA) as a fundamental fix to future problems has
evolved to newer and more advanced frontiers. Saddling on ever-perfected tech-
nologies such as Java EE, SOA is becoming more appealing and compelling
than ever before.
At Cognizant, we have been developing and delivering Enterprise solutions
using SOA. And it is my privilege to write a Foreword for a book for one of our
own—Kumar is a coauthor along with Prakash and Tony. The book carefully
unravels the vast topic of service oriented architecture through a definitive and
illustrative approach. It segments web services across First Generation Web Ser-
vices for services composition, Second Generation Web Services for wiring
these services into the process/workflow of the enterprise, and WS-* for address-
ing the nonfunctional needs of the Enterprise application. This book will also
double-up as an effective implementation guide on the advanced features of the
new Java Platform, Enterprise Edition and indicate how different APIs, such as
JAX-WS and JAXB, of the new platform help in different aspects of service ori-
entation for the Enterprise application.
This book should be extremely relevant to a variety of stake holders including
architects, senior enterprise developers, and application integrators. This book is
FOREWORDS xix

also a great reference material for students of computer science, software, and
systems architecture.
From academics to architects, practitioners to pedants, students to specialists,
coders to CXOs, this book could be a vital source of SOA inspiration—of how to
build great architecture without compromising on the “itys.”
Raj Bala
VP and Chief Technology Officer
Cognizant Technology Solutions
This page intentionally left blank
Acknowledgments

I would like to acknowledge and thank Cognizant immensely for encouraging


and supporting this collaborative work with Prakash and Tony, which was initi-
ated two years ago. Special thanks are due to Frank (CEO) and Chandra (presi-
dent and MD) for their encouragement for this collaborative work. Thanks are
due to Raj Bala (VP and CTO) and Dr. Appa Rao (VP, GTO) for their continuous
encouragement and support during the course of authoring this book. I am
highly indebted to Viswakumar (AVP, Projects) for his incessant help and sup-
port of this collaborative work.
Support from my wife Sujatha Kumar, my daughter Nayana Kumar, and my son
Govind Kashyap has been tremendous throughout the course of this book, and I
sincerely acknowledge their continued support on this project for the past two
years.
We owe our sincere appreciation to Ramesh Srinivasaraghavan and Arijit Chat-
terjee of Adobe (India) for their timely help in shaping the companion website
for this book. We also admire Sujit Reddy and Shyam Prasad of Adobe (India)
for helping us with the content and design of this site.
—Dr. B. V. Kumar

xxi

From the Library of ALESSANDRO CAROLLO


xxii ACKNOWLEDGMENTS

I would like to thank Chris Atwood and Octavian Tanase at Sun for their support
and encouragement throughout this project. Special thanks and love to my fam-
ily—Jayanthi, my wife and Akshay, Madhuri, and Rohan, my children—for
always being there for me and supporting my endeavors with vigor. I was fortu-
nate to work with a great team of coauthors: B. V. Kumar and Tony Ng. Each
brought their expert-level skills to make this a rewarding experience. Thanks to
Gopalan Suresh Raj, Binod P. G., Keith Babo, and Rick Palkovic for their semi-
nal paper, “Implementing Service-Oriented Architectures (SOA) with the Java
EE 5 SDK,” which inspired me to explore the subject further and get involved in
writing this book. This book is all about implementation. The basis for this book
is the NetBeans IDE. The team that I worked with—Todd Fast, Chris Webster,
Girish Balachandran, Nam Nguyen, Rico Cruz, Jiri Kopsa, Ajit Bhate, PCM
Reddy, and Hong Lin (among many others)—have all contributed in helping
make the NetBeans product a great success.
On the editorial and production side, thanks to Greg Doench, Michelle Housley,
Anne Goebel, and the rest of the editorial staff at Pearson for their guidance.
—Prakash Narayan

I would like to thank Jeet Kaul and Tom Kincaid for their encouragement and
support, Bill Shannon and Eduardo Pelegri-Llopart for their guidance, and the
entire GlassFish team who worked on the Java EE platform and SDK.
—Tony Ng
About the Authors

Dr. B. V. Kumar, currently the director and chief architect at Cognizant Tech-
nology Solutions, has an M Tech from IIT Kanpur and a Ph.D. from IIT Kharag-
pur. He has more than 19 years of experience in the field of information
technology at various levels and in organizations such as ComputerVision Cor-
poration (Singapore), Parametric Technologies (Seoul, S. Korea), and Sun
Microsystems (India). Prior to joining Cognizant, Dr. Kumar was the principal
researcher and technologist at Infosys Technologies and was responsible for the
research and development activities and new initiatives at the SETLabs. Dr.
Kumar has been working on the Enterprise technologies for more than 7 years,
focusing on J2EE and web services technologies. As a chief architect and direc-
tor at the Global Technology Office of Cognizant (India), Dr. Kumar is manag-
ing IP and asset creation, technology evangelization, and community
development and project support. Dr. Kumar has filed for two patents in the IP
space and published many technological papers in international journals and
conferences. He has coauthored Web Services—An Introduction and J2EE Archi-
tecture.
Prakash Narayan is the CTO and cofounder of Micello, Inc. Micello is an
early-stage startup in Silicon Valley focusing on delivering high-value data to
users at the point of consumption by providing the information within a map of
the indoor location. Prior to founding Micello, Prakash was at Sun Microsys-
tems, where he was one of the founders of Zembly—a social network for devel-
opers to build services, widgets, and social applications. Immediately before
Zembly, Prakash had responsibility for Java EE and SOA tooling in NetBeans.

xxiii

From the Library of ALESSANDRO CAROLLO


xxiv ABOUT THE AUTHORS

Prakash holds an MS degree in computer science from Indian Institute of Tech-


nology, Delhi, and a BS degree in electronics engineering from Birla Institute of
Technology and Science, Pilani, India.
Tony Ng is the senior director of engineering at Yahoo!, where he is responsible
for Yahoo! developer platforms and technologies including Yahoo! Application
platform (YAP), Yahoo! Query Language (YQL), and Yahoo! Developer Net-
work (YDN). Before joining Yahoo!, Tony was the director of engineering at
Sun Microsystems, where he managed development of the Java EE platform and
GlassFish application server. Tony is a coauthor of J2EE Connector Architecture
and Enterprise Application Integration. He holds an MS degree in computer sci-
ence from Massachusetts Institute of Technology and an MBA degree from the
University of California, Berkeley.
Part I
Overview

• Chapter 1 Introduction
• Chapter 2 Evolution of IT Architectures
• Chapter 3 Evolution of Service Oriented Architecture

1
Another Random Scribd Document
with Unrelated Content
world's doings had been much shut out from them, and
Frank had given them a peep into its wickedness. Arthur
thought with thankfulness of what might have been, had he
once stepped into the deception which Frank had been
leading him to, and he shuddered when he remembered
how near he had been to it.

Nellie's return home was now fixed for the next week,
and all longed to have her presence once more. She wrote
frequent letters, detailing all her doings, and told them of
the proposed picnic. But while Nellie was in danger under
Orston Cliff, another danger was creeping, unsuspected,
nearer and nearer to that happy circle at home.

CHAPTER XIII.
CALLED HOME.
THE sun rose over Fairleigh the next morning after the
eventful picnic with its own calm grandeur. There was no
sign in its clear shining that it had set the night before on
such a scene of danger to the circle of friends living at
Shellford.

Nellie and Hope were seated at breakfast with old Mrs.


Arundel, who was anxiously questioning them once more as
to whether they were tired, or felt to have taken cold.

Nellie said she was quite as well as ever; but Hope,


though she made the best of herself, could not hide that she
was miserable and shivering.

"She was so long wet, you see, grandmamma; it is no


wonder," said Nellie.

"My dears, why did you not come and tell me what
danger you had been in, last night?"

"Dear grandmamma, we were dry then, and it was of no


use giving you a sleepless night."

"I feel as if I might have done something for you, my


dears; but, however, I thank God all are safe; I cannot be
too thankful."

Before breakfast was over, Aunt Ruth entered, and


begged to be told all about it. She had heard from the
servant a word of the accident, and could not be satisfied till
she knew all.

Her inquiries elicited that the young canoeist, who had


saved so many of them, was staying at a village a few miles
off; and that Wilmot would go over there to-day to call upon
him and thank him.
"And how did they get off the rock?" asked Aunt Ruth,
"I did not understand."

"Wilmot brought the boat round for them after we had


been rescued," said Hope.

"Was it a large rock?"

"Only just room for them to stand, and in deep water.


How horrified dear mother would have been, if she had
been able to see little Mary standing there."

"It is often well we cannot see," said Aunt Ruth.

"And how did you all get dry?"

"It was a long job," said Nellie. "Mrs. Mansbridge put us


all to bed at once. She had a roaring fire half up her
chimney, and Mrs. Elliot and she stood and turned our
things till they were fit to put on."

"Then did you have tea in bed?"

"Yes, dear mamma brought it to us. She did look so


tired and wan before we all came down again."

"Your poor mother!" said Mrs. Arundel. "But how did


you get home after it all?"

"We were very tired," answered Hope; "but mamma and


Mrs. Mansbridge both said it would be really better for us to
walk. Besides, we could not have done anything else, as
there was no conveyance to be had. We all set out, and
mamma drove. Fortunately there was a beautiful moon, and
mamma told us to waste no time, but to press on as fast as
we could. We walked along generally in a string across the
road, hand-in-hand. I can't tell you how it felt, Mrs.
Arundel; we all seemed so dear to each other, through
having been companions in danger."

"I am sure you must," said Aunt Ruth. "How little we


thought, as we were quietly reading and watching the
sunset, what was happening to you all."

"I wish Hope would go to bed," said Nellie, as she saw


her give another violent shudder.

"Oh, no," said Hope; "but I will have a shawl."

Before long, however, she was obliged to give in, and


felt bed would be the best place for her.

Nellie went upstairs with her, and helped her to undress,


and then made her as comfortable as was possible. She
fetched a hot bottle for her feet, drew the blind partly down,
and set some roses on a little table by her side.

"What a dear girl you are!" said Hope, gratefully looking


up at her. "Where did you get those wild roses?"

"We picked them by moonlight last night."

"We? I did not see you picking any."

"No; you were in the carriage then; it was so lovely,


Hope, just like daylight, only better."

Hope drew her down and kissed her. "Nellie," she said,
"I think I am going to begin a new life from yesterday."

"Oh, dear Hope, how glad I am!"

"Yes; it was you first made me think about it. Aunt Ruth
had often urged me to make a decision; but somehow I
thought there was plenty of time, and that it was for older
people. And then you came, and I found that, though you
were young, it was like the air you breathed, you could not
do without it! And then, Nellie, you asked me, that second
day you were here, if I were a Christian?"

"Yes," said Nellie, blushing; "but I was dreadfully afraid


you would be offended."

"That made me think more than ever; and when I


began to know you, I longed to be like you."

"Dear Hope, not like me; I wish I were more like Him."

"Oh, yes! But still, Nellie, the face of Moses shone, you
know, as we were reading this morning. You need not be
ashamed, dear, but rejoice that it is so."

Nellie's eyes filled with tears. How unworthy she felt of


the blessing which God had laid at her feet; and yet she had
prayed that she might be a help to Hope, and here was her
prayer answered.

"I am going to sleep now," said Hope, "so do go down


and talk to Mrs. Arundel."

When Nellie re-entered the drawing room, her


grandmamma and aunt sat in their usual places in the bow
window. She thought they looked a little grave, but hardly
noticed it. She carried her basket in her hand, and seating
herself on a low chair close to them, prepared herself for a
happy morning.

"How sweet it is," she could not help saying; then the
idea of being sweet here, suggested those at home, and she
added, "Have you heard to-day, grandmamma, from
mamma?"
"I have heard from your father, dear."

Nellie looked up at the unusually quiet tone, and said


quickly, "Are they not all right, dear grandmamma?"

"He says your mamma is not very well, dear."

"Not anything serious?" said Nellie, her heart going


down like lead.

"Your father speaks seriously, dear," answered Aunt


Ruth. "He says that he has been anxious about her for some
time."

"Oh, auntie! And I never knew it."

"My dear, we cannot always know what will happen;


your father could not bear to make you unhappy unless it
were needful."

"I would not have come away for worlds," said Nellie,
weeping.

"That has made no real difference, darling. We might


always be thinking of difficulties in the future; and you will
be strengthened to help by your change."

"But do tell me," said Nellie, looking up with an anguish


in her eyes which was sad to see, "do you think—does papa
think—that mamma is in danger?"

"He says there always is danger in attacks of the heart."

"I had no idea she was delicate."

"Had you not, dear? Yet no; your father says he fears it
will be a great blow to you."
Nellie began to take in the gravity of the news; and her
loving relatives were powerless to aid her in the sorrow
which she must feel.

"I may go home at once, may I not?" she asked


earnestly.

"I am afraid it will be necessary, dear. Your father says


he would like you to come at once."

Nellie rose, as if bewildered for a moment with the


unexpectedness of the tidings, and stood with nervous
fingers gathering her work together.

"My child," said Aunt Ruth, putting her kind arms round
her shoulders, "this is a heavy trial; but we must all ask for
strength to bear it, and for her precious life to be spared if
possible."

"Is it so bad as that?" Nellie said once more; and then


she left the room as if stunned.

She went upstairs and began to collect her things


together, while Aunt Ruth followed, and gently helped her,
saying nothing, however.

"When is the train?" asked Nellie, looking up once, as if


only just awakened from a dream.

"At 12 o'clock; there is no hurry, and the pony carriage


is ordered."

"Thank you," she answered mechanically.

"I have sent down to Maude Elliot to be kind enough to


see you safely off, dear."
"Oh, thank you," said Nellie. And when she had placed
the last few things in the box, the maid came to put on the
cord.

"Would you like to walk down and say good-bye to Mrs.


Elliot, dear?" asked Aunt Ruth. "She has been very kind to
you?"

"Very kind," answered Nellie; "and if there is time—"

"Abundance of time; it is only eleven o'clock now. You


need not return here, the pony carriage shall call for you at
half-past eleven."

Before she went downstairs, Nellie softly entered Hope's


room.

"Going out?" said Hope sleepily; then opening her eyes,


"Why, Nellie, you look sad, dear; what is it?"

"I can't explain," she answered hurriedly; "mamma is


ill, and I am going home."

Hope took her hand, but beyond an exclamation of


dismay, knew not what to say.

"I could not bear to go without thanking you for all your
kindness; but I'm afraid I have disturbed you."

"Not at all; but, Nellie, don't you mention kindness, for


you know it has been all on your side. I shall never forget
you."

Nellie kissed her, and was already at the door, when


suddenly she came to the bedside again, and said
hesitatingly, "Could you spare me one or two of these wild
rosebuds to take home?"
"Certainly; but take some nice flowers out of the
garden, Nellie. Pick some before you go; these are worth
nothing to those."

"I would like these best," she said, "as a remembrance


of yesterday."

She placed two or three in her little travelling-basket,


and with one more good-bye, hurriedly left the room.

Mrs. Arundel and Aunt Ruth stood waiting for her in the
drawing room, and she was clasped in her grandmamma's
arms.

"My dear child," she said, "my dear child, I have


enjoyed having you; we shall think of you, and pray for you
constantly. Good-bye."

"I can't half thank you," said Nellie, brokenly; "but I


have had such a nice time. Dear Aunt Ruth, I wanted to say
lots of things to you."

"Yes, darling; but we must bow to our Father's will."

So she left them, and as she hastened down the hill to


Mrs. Elliot's, she felt as if all the springs of her life were
dried up.

She turned in at the gate, and almost ran against


Maude and Wilmot, who were coming out to take her to the
station.

They needed no explanations, as they already knew the


bad news that morning's post had brought.

Wilmot silently shook hands, and Maude kissed her


warmly.
"It is a sad good-bye," said Nellie, trying to speak
calmly, as she met Mrs. Elliot, "and you must forgive me for
not saying all I would wish; but I do thank you all for—for
making me so welcome."

Mrs. Elliot assured her it had given them much pleasure


to know her; and then Nellie went over to the sofa where
Alice lay, looking pale and suffering.

"Is it very bad?" she asked kindly.

"Oh, I feel so wretched, Miss Arundel."

"Poor child, I know you must; but," she whispered, "be


patient; it helps us to think that Jesus knows all our sorrows
and sufferings, doesn't it?"

"Even my bad foot?" asked Alice, looking up.

"Even that. Don't forget, dear."

Alice nodded, and in another moment the carriage was


there, and Nellie was gone.

The three driving together did not say many words.


Their thoughts would have been hard to interpret.

When they were walking up and down the station


waiting for the train, Wilmot said to Nellie:

"I should like to think this is not a parting, Miss Arundel.


May I, do you think, come and call upon you when I return
to town?"

"I have no doubt papa would be pleased, if dear


mamma is well enough," answered Nellie, hardly knowing
what she ought to say.
"I shall come then. One does not make friends to lose
them directly; and I hope we have become friends?"

He looked in her face, so pale and sorrowful; and then


he remembered the face he had looked upon in the water
yesterday.

Nellie remembered too, and a faint colour overspread


her features.

"You saved my life," she said gently and gravely; "I can
never forget that."

"Nor I," he answered; and both were silent.

"Here's the train," said Maude.

"Good-bye," said Wilmot, taking her hand.

"Good-bye," said Nellie, "good-bye, dear Maude."

When she seated herself in the train, she found herself


alone, and could indulge in the luxury of being able to weep
unseen. By-and-by, patience and trust reasserted
themselves, and she checked her bitter tears, remembering
that she would be unfit to help them at home if she arrived
with a headache.

Then she thought all at once that she had not had
opportunity to get any little presents for them, as she had
intended, and she could not help having a good cry over
this, before she finally put away her tears and determined
to be peaceful.

"He will help me," she thought sorrowfully; "and He will


help us all to bear His will. But, oh, mamma, mamma! How
could I have left you?"
CHAPTER XIV.
REST.

WHEN Nellie arrived in London that afternoon, she was


met at the station by Arthur. And on her eager enquiry for
their mamma, his answer was boy-like and abrupt—

"As bad as can be."

No need to dwell on that ride home in the cab. When


they drew up at the door, Nellie gathered her things
together and hastened up the steps, only longing to keep
calm, and to be able to do what might be wanted.
Simmons opened the door and welcomed her, but it was
with a face so altered and anxious that Nellie asked no
questions, but went immediately upstairs.

Just outside the drawing room door she met Ada


coming down to greet her.

"Dear Nellie," she said, commanding herself with great


effort, "mamma is very ill, papa told me to say. Will you
take off your things and come in as if you had not been
away."

Nellie did as she was told, but dared not venture into
the nursery on her way up. She could hear hushed voices,
and the little clatter of tea-cups; but she feared lest the
sight of her should raise a shout, and she passed into her
room.

In a minute more, a little footstep was heard entering,


and Netta, with a woebegone face, stood at her side holding
a cup of tea.

"Mary sent you this, Nellie," she said, looking up shyly,


and hardly expecting to be kissed.

She was folded in her sister's arms; but she soon


managed to say sedately, "Mary says she cannot leave
baby, but you are on no account to go down till you have
eaten this piece of bread and butter and had your tea."

"Thank her, dear, very much. I will do as she advises."

"She says dear mamma does not know you are come,
so there is no hurry; and you will feel all the better for it."

Netta withdrew, having discharged her message, and


Nellie swallowed her tea mechanically, hardly knowing what
she was doing.

Then glancing in the glass, more by habit than because


she thought of it, to see that she was neat, she was startled
to find herself ghastly pale.

"What shall I do?" she mentally ejaculated. "I shall


frighten them all."

She knelt down by her bed for an instant. She knew not
what to say, and no words would form themselves in her
mind beyond a cry of, "Help me, oh, help me!" Then she
rose, and slowly went down to her mamma's room.

How still the house was inside, and what a roar the
passing cabs and vehicles made! Nellie stood outside on the
mat till the wild beating of her heart should cease. She
could not pray, but her thoughts went towards God
nevertheless—her only Refuge.

At last she opened the door softly and entered. The


room was shaded from the glare of the June sunshine, and
seemed quiet and peaceful.

The first thing she saw was Ada, sitting in the window
working, and then her glance took in the rest of the room;
her mamma lying in a wrapper on the sofa, and her father
seated by her, with her hand in his.

Mrs. Arundel's eyes turned directly towards Nellie as


she entered, and she held out her hand, saying very faintly,
"I am glad you are come, darling."

She kissed the ashy pale cheek, and then bent to greet
her father, who rose and gave her his seat, himself leaving
the room.
Mrs. Arundel did not speak for some time, and Nellie sat
silently by her.

All this was very hard for her to understand; it had


never been explained, and she could only wonder at it all in
a sort of terrible dream.

Presently Ada got up, and taking a cup from a small


night-lamp, she fed their mamma with two or three
spoonfuls of some nourishing broth.

Mrs. Arundel after this seemed to rouse herself a little,


and said to Nellie:

"We did not expect this, dear, so soon; but God knows
best, Nellie."

Nellie pressed her hand, but could not trust herself to


speak.

"I am glad you are come, dear. I trust them all to you.
You will do your best for them, Nellie?"

"Indeed I will, dear mamma, if—"

"Yes, dear, I understand; if I am taken away. We will try


to talk of it calmly. Papa says there is just a possibility, but
only a little, of my recovery, and I should feel happier to say
what I wish now."

She spoke very low, but quite clearly and collectedly:

"The pain has been dreadful, Nellie; but it is better now;


and while dear papa is away, I will tell you what I want."

Ada had turned her back and dropped her work in her
lap, and now sat with her arms resting on the table and her
face looking out into the square, of which, however, she saw
nothing.

"Nellie dear, you must comfort papa. You must remind


him that the time will be very short before we meet again.
You must do all you can to cheer him. Not at first, dear—"
She paused; then gathering breath again, "But after a
while; not by forgetting, Nellie, but by remembering—
remembering how happy we have been, and how soon we
shall meet again. We have not tried to forget your own
mother, have we, Nellie?"

"No, indeed; never, dear mamma."

"No; and so I do not want you to banish my name, but


think of meeting me and her so very soon—, so very soon!"

The soft voice ceased, and Nellie looked towards Ada in


dismay; for a death-like faintness seemed to overspread the
features. Ada hastily rose and again administered the
restorative.

"Thank you, dear," said her mother, looking upon her,


oh, with what love! "Kiss me, Ada."

Ada bent down and gave the required kiss, but


retreated again to the table, and took up her old station
there.

Mrs. Arundel stretched out her hand for Nellie's, and


again began to speak.

"Then there are our dear children. Take care of Ada and
Arthur, my elder ones. Guard them, if you can, from the
wicked world."
She paused, and looking upwards, seemed to be
praying; and Nellie heard the words softly whispered, "I
pray not that Thou shouldst take them out of the world, but
that Thou wouldst keep them from the evil."

"He will care for them, Nellie. And my little ones, teach
them to love Jesus. If I knew I were saying my last word on
earth, it would be, 'Teach them to love Jesus.'"

"My little Tom! Nellie, I don't feel anxious about him;


only so afraid of what he will suffer for a little while without
me; but it may not be long. I hope for him it will not be
long."

"Then my poor little baby boy. But I know you and Ada
will care for him, and teach him of Jesus; will you not,
Ada?"

Ada gave the promise she asked for, in a tone which


was almost hoarse in its effort to be calm, and then turned
away again, unable to bear it.

At last Nellie gathered courage to whisper a few words


of comfort. "Dear mamma," she said with infinite
tenderness, "as you dealt with the dead, so will I try to deal
with you. I will faithfully do my best, God helping me, to
fulfill all your wishes, even as you did what my own mother
would have wished.

"I shall never, never forget your love. Now take


comfort; and while it breaks my heart even to say it, yet let
me assure you, Ada and I will do all we can to fill your
place."

Nellie could say no more. The tender words were said


with a throat that seemed to ache intolerably; and then she
could only bend down, and kiss the white hand that lay in
hers, over and over again.

Mrs. Arundel seemed satisfied, and fell quietly asleep as


they watched her.

Ada beckoned to Nellie to go down; and just at this


moment Nurse Raymond stole in, and made signs to the
same effect; so she gently slipped her hand from the
loosening clasp, and left the room, descending to the
dining-room.

There she found her father alone, drinking a cup of tea.


How altered he looked. Nellie hardly dared to glance at him,
but came forward, and sat down at the table.

"I told nurse to take your place, dear, for a few minutes,
that I might speak to you," said her father.

Nellie was going to ask him a question about it; but now
that the urgent need for calmness was removed her strong
command over herself gave way, and throwing herself into
her father's arms she wept as if her heart would break.

He did nothing to check her; only pressed her closely to


him, and whispered from time to time "Poor Nellie; poor
little daughter; poor little dear," over and over again.

At last the violence of her grief subsided, and she


remembered her father's share in this sorrow. She raised
herself, and began wiping away her tears.

"Tell me all," she said at last.

"It was a fright," answered her father, "which developed


the disease which I feared existed; a shock. They were
carrying little Tom downstairs, and one of his bearers
slipped. It was only a stumble; but just enough to make a
commotion, and to cause Tom to give a half-scream. She
seemed to bear it pretty well for an hour or two, and then
—" Dr. Arundel paused.

"When was it? When did this happen?"

"Three days ago. I wrote at once to your grandmamma;


but I had no time to explain then. I have written again
since."

"Could nothing be done?" asked Nellie, looking


hopelessly up in her father's face, and knowing her question
was vain, even while she put it.

"Nothing more than has been done, dear child. Two


physicians have been to see her; but they both know that
the heart is in a very critical state."

"Dear papa," said Nellie, hesitating, and laying her head


once more on his shoulder, "we still can pray. Perhaps it
may be God's will to hear us."

"Yes, my dear, I do pray, and I know He answers. He is


not far off, Nellie; not far off, my child, but very, very near;
so near, that I feel His love, and am sure—"

"Sure?" she whispered, questioningly.

"That He will be with us even unto the end."

Nellie's head nestled closer to the beloved breast; but


she could say no more. In presence of that faith, and in
anticipation of that sorrow, no words of hers could be
adequate.

At last her father stooped and kissed her fondly.


"I must go up now, Nellie. Nurse Raymond will sit up
part of the night; but I shall be with her for the present."

"Could not I sit up? I should like to so much."

"No, dear; your strength will be needed for the care of


the house. We must have all things as straight as we can, if
for nothing else, than that she may know it is so."

Nellie was too downcast to do anything but acquiesce;


indeed, she knew what her father said was right. She could
not do everything, and there was wisdom in saving herself
for greater duties.

"Papa," said Ada entering, with a face which was almost


despairing, "poor little Tom is crying so upstairs. He does
not like to ask to come to his usual place in mamma's
room; but Mary says he fretted all last night."

"I will see about it," said Dr. Arundel as he went out.

"I can't talk," said Ada, without looking at Nellie, "so


you will not mind. I feel as if I had no head and no heart."

She sat down stonily at the table and cut some bread
and butter, pushing the loaf towards her sister, saying in a
low voice, "Eat."

Then they were both silent. What could they say? The
blow was too fresh and too heavy to allow of words. Arthur
came in, and began his tea, like them, in silence. After they
had eaten as much as they could force themselves to
swallow, Ada proposed that they should go upstairs again.

When they noiselessly re-entered the sick-room, they


found their mamma in bed, and beside her, with a white,
patient little face, was Tom, resting his head on her pillow.
Dr. Arundel had found him prepared for bed in the
nursery, and had asked him if he could trust himself to be
calm, if taken to his mother? "For a great deal depends on
calmness, Tom. She has been asking for you, and I should
like you to be with her, if you can promise."

"I think I can, papa," he had said; "and you don't know
how bad it is to be right away from her."

"Yes, dear, I do know," he answered.

So little Tom was carried down, and his mother had


placed her hand on her pillow, and said faintly:

"May he, papa?"

And Dr. Arundel had not had the heart to refuse.

Arthur followed his sisters upstairs, and sat down by his


mother's side.

"Dear Arthur," she whispered softly, "will you remember


a text I have been thinking of for you?"

"I will try, mother," he whispered in return.

"This is what it is, 'Fear not; I am thy shield, and thy


exceeding great reward.'"

"I will not forget, mother," he said, and as he uttered


the words, he felt it was good-bye.

"Are the little ones in bed, Nellie?" she asked, as Nellie


came and stood by her.

"Not quite."

"And baby?"
"Just ready for bed."

"I should like to kiss them for good-night, dear."

Nellie went up at once, and the little white-robed


dressing-gowned flock stole in.

Mrs. Arundel kissed Netta first, and softly said, "God


bless you, my child!" And she was immediately drawn away
by a sign from her father.

So they were all kissed till it came to the baby's turn.


Dr. Arundel took him from Mary, and lifted him over the
bed.

"Let me hold him," she said, stretching out her arms.

She folded him in a close embrace, and it seemed as if


her arms would never unclasp. "God bless my child!" she
said at last, as she had done to the others, and let him go.

Dr. Arundel went with him to the door; then, unable to


bear his grief, carried the child upstairs, and waited till he
was calm.

When the little ones were gone, and the door had
closed on them, their mother turned round in the bed and
hid her face.

Tom lay with wide staring eyes, battling with himself to


keep his promise, and succeeding; for when his mother put
out her hand to take his, he was able to clasp it quietly and
to whisper, "'He is able to keep;' mamma, dear."

"Yes," she answered with a sob; "able to keep that


which I have committed to Him against that day."
"I meant that," said Tom.

So she fell asleep quietly, resting her weary heart on


those blessed words.

They sat silently by her for some time, but presently Dr.
Arundel whispered to them to go to bed.

Ada came and stood by the bedside and looked down on


her mother; then, turning away, she left the room in
obedience to her father's wish.

"I will stay with her till two o'clock," said Dr. Arundel to
the nurse, "then you can come."

He sat down by her, and the only sound within was the
ticking of his watch, while without, the roar and rumble of
the great city went on the same as ever.

Every half-hour he was forced to disturb her, to take the


required food or medicine; but he allowed her to rest again
without rousing her to speak.

When, after an hour or two's quiet sleep, she opened


her eyes, she found only her husband by her and little Tom
breathing softly on her pillow.

"How little we thought, dear, it could be like this," she


said.

"How do you feel, love, now?" he asked.

"Oh; so very tired, but so happy! It will not be long


before I see Jesus."

"Not in pain?"
"Oh, no," she whispered; "only peace. I did not know
that it could be so; that He would be able to make me
willing."

"He is 'able' for all things, my precious one," he said


tenderly, clasping her hand.

"Yes, dearest," she answered, laying her cheek on the


loved hand which had supported her for so many years.
"Yes, dearest, He is able to keep—you, and me, and them."

She fell asleep again, while Dr. Arundel sat on in the


quiet hours, still with her face on his hand.

His practised eyes saw now that there was no hope.

Slowly, slowly, life ebbed away.

As he watched, she gave one sigh, and he knew her


ransomed spirit had passed from earth, to be with Him
whom she had loved and served all her life.
CHAPTER XV.
SUNRISE.

THE early daylight was stealing into the room, when Dr.
Arundel became certain that his dearly-loved one was no
longer there.

He drew his hand from under the sweet cheek, which


had not been wasted by long illness, and gently laid her
back by little Tom.

He knelt down by her side and laid his head against her
arm. "My dear, my dear," he said softly, "what shall I do
without you?"

Then, afraid lest Nurse Raymond should come in, he


pressed one kiss on the lifeless lips, and promising himself
some quiet time with his beloved by-and-by, he went round
the bed to lift little Tom from his resting-place.

Nurse Raymond entered at the moment; and as they


carried Tom into the next room, his father heard him
murmur:

"What is it, papa? Why are you moving me? Doesn't she
want me any more?"

"No, dear," he answered gently, hoping Tom would be


satisfied without further questions.

"Shall I go back to her by-and-by?" asked Tom


piteously.
"No, dear," answered his father tenderly; "she is gone
away for a little while."

"She? Gone away and left me?"

"God sent for her, my child."

Tom was silent; at last he said softly:

"Will she come back, papa?"

"No, my dear; we shall go to be with her, but she will


never come back."

Then, overpowered by the expression in words of the


dreadful certainty, he clasped his arms tighter round the
frail form, and deep sobs of agony broke from him.

Tom needed no further telling, and such an anguish


swept over him, that afterwards, he wondered it had not
killed him.

At first he could only wail out, "Mamma, mamma!" But


by-and-by, he became aware that his father's grief must be
as great as his, and, used latterly to think of others, he at
last checked his wild sobs, and began to quiet his quailing
heart. After a few minutes, he left off crying, and put his
thin little hand up to his father's face.

"Dear papa," he said soothingly, "dear papa, we shall


see her again."

The strong arms pressed him, and the awful sobs stilled
a little.

"She would be so grieved for you, if she could see—"


murmured the little comforter.
His father roused himself. "You are right, dear; and I
would not have her see. We will pray, my child."

He bent his head over his little son, but no words would
come. Tom lay still, looking first at him, and then upwards;
and at last Dr. Arundel spoke.

"I thank Thee, yes, I thank Thee, that Thou hast so


tenderly taken my darling to be with Thee; and I say from
my heart that I give her up to Thee!"

There was a long, deep silence after this, while the sun
gradually rose and peeped in at the window, and stole along
the floor till its bright rays touched little Tom's pale face.

"See, papa," he said softly, "the Sun of righteousness


has arisen, with healing in His wings."

* * * * * *

Nellie, entering the nursery about an hour after her


father had told her the sad news, found all the little ones
creeping about on tiptoe, afraid of disturbing the loved
mother beneath.

Mary looked up in her face, and knew all the moment


their eyes met.

Nellie went straight over to the baby, and took him on


her lap, and then drew Dolly to her knee.

"You've been crying," said Dolly, looking anxiously in


her face.

"Yes," answered Nellie quietly; "but I want to tell you all


something. Come, Netta and Isabel, darlings, come close to
me."
"Is mamma worse?" asked Isabel.

"No, dear children, she is better; she is gone to be with


Jesus."

"Gone?" said Dolly, with such a wail that Nellie's


calmness almost gave way.

"Yes," she said, steadying her voice again; "her spirit is


gone to heaven to be with God. By-and-by, you shall go in
and kiss her dear face once more; but she will not know
anything about it, because her spirit is away, quite happy
with God."

Netta and Isabel hid their faces against Nellie's dress,


and she drew them closer to her, while she went on softly:

"We must all die some day, you know, dears, unless,
indeed, the Lord Jesus should come first and fetch us all
away; but if not that, we must all die; and dear mamma
told me to tell you that she wants you all to come to be
where she is. How do you think you can get there?"

The little girls only clung closer to her dress; but she
was glad to believe that they already knew the way, and
were walking in it.

Dolly gazed at her with awe-struck eyes.

"Jesus is the way. If you ask Him, He will take you by-
and-by to be where you will see dear mamma again."

Then she tenderly kissed the baby, and pointing


upwards told him "that is where Jesus lives, and where
mamma lives;" and then, telling them all to be very quiet,
she left the room.
As she crossed the landing to her own chamber, some of
the weight of responsibility which would rest on her young
shoulders came over her.

Ada was there, lying across the foot of her bed, with her
face downwards; she went up to her, and stood silently by
her side. At last she put out her hand and softly smoothed
her hair.

Ada took no notice whatever of her touch; and Nellie


left the room to go downstairs, the heavy feeling at her
heart intensified by being unable to give any consolation.

Nellie had been called into her father's study, and had
received instructions, which had seemed to seal her
desolation.

To arrange for dresses without consulting her mamma,


brought overwhelmingly to her mind the extent of her loss.
But there was no time to dwell on it. She felt the only thing
to be done was to go through each duty as it came up,
without thinking of anything beyond it.

Arthur hung about by her side, anxious to solace her if


it might be possible, going backwards and forwards to the
nursery, and ready to help her in any way. He loved to dwell
on all the details of his dear mother's death; and Nellie and
he, and little Tom, found comfort in recalling her loving life,
and peaceful end.

After breakfast, Dr. Arundel took his children in to kiss


their mother. Nellie brought the baby, and guided the little
hands to place some white flowers on the bed, and then she
had drawn them away, and left their father alone with his
dead.

You might also like