Implementing SOA Using Java EE 1st Edition B.V. Kumar instant download
Implementing SOA Using Java EE 1st Edition B.V. Kumar instant download
https://ebookname.com/product/implementing-soa-using-java-ee-1st-
edition-b-v-kumar/
https://ebookname.com/product/advanced-java-programming-uttam-
kumar-roy/
https://ebookname.com/product/beginning-java-ee-6-platform-with-
glassfish-3-1st-edition-antonio-goncalves/
https://ebookname.com/product/beginning-ejb-3-2nd-edition-java-
ee-7-edition-jonathan-wetherbee/
https://ebookname.com/product/suzy-gershman-s-born-to-shop-hong-
kong-shanghai-beijing-the-ultimate-guide-for-travelers-who-love-
to-shop-born-to-shop-3rd-edition-suzy-gershman/
The Shadow of God and the Hidden Imam Religion
Political Order and Societal Change in Shi ite Iran
from the Beginning to 1890 Said Amir Arjomand
https://ebookname.com/product/the-shadow-of-god-and-the-hidden-
imam-religion-political-order-and-societal-change-in-shi-ite-
iran-from-the-beginning-to-1890-said-amir-arjomand/
https://ebookname.com/product/the-gale-encyclopedia-of-mental-
disorders-volume-1-a-l-3rd-edition-madeline-harris/
https://ebookname.com/product/religion-dynasty-and-patronage-in-
early-christian-rome-300-900-1st-edition-kate-cooper-editor/
https://ebookname.com/product/the-world-of-child-labor-a-
historical-and-regional-survey-1st-edition-hugh-d-hindman/
https://ebookname.com/product/the-cambridge-companion-to-utopian-
literature-1st-edition-edition-gregory-claeys/
Democratic Justice and the Social Contract 1st Edition
Albert Weale
https://ebookname.com/product/democratic-justice-and-the-social-
contract-1st-edition-albert-weale/
Implementing SOA
Using Java™ EE
™
The Java Series
B. V. Kumar
Prakash Narayan
Tony Ng
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
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
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
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
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
xxi
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
• Chapter 1 Introduction
• Chapter 2 Evolution of IT Architectures
• Chapter 3 Evolution of Service Oriented Architecture
1
Exploring the Variety of Random
Documents with Different Content
“Shultzie, you’re all right. You proved it. Say, it’s just ripping to have
you back.”
“Old man,” said Nelson, “you want to get that ankle cured as soon as
you can. The nine is crippling along without you, but I tell you we
miss you out there in center field.”
Grant, Crane, Stone and others all had a cheerful word for Charley,
and while they were expressing themselves, Professor Richardson
came pushing gently through the throng and clapped both his hands
on the abashed boy’s shoulders.
“Well, well,” said the principal, beaming, “here you are again. That’s
fine, I declare. You ought to be able to throw away those crutches in
a few days. Do you know, I actually attended the last baseball game,
and, on my word, I found it very interesting. I believe I’ve been
missing something, and when it is possible I think I shall take the
games in hereafter.”
Was this the “old fogy back number” Shultz had so often sneered
about and derided? Why, instead of being sour and crabbed, this
man was genial and gentle and sympathetic. Charley wondered how
he had ever happened to misjudge the professor so greatly. The boy
felt his heart swelling with the gladness and camaraderie of it all,
and to keep the mist out of his eyes, he laughed, a genuine, sincere,
happy laugh, amazingly unlike his laughter of former days. He was a
lucky fellow; oh, yes, he knew it very well. He was different; he
knew that, too, and he would never again be as he had been once,
thank goodness.
THE END.
THE RADIO BOYS SERIES
By Gerald Breckenridge
A. L. BURT COMPANY
By Claude H. La Belle
A. L. BURT COMPANY
By L. P. Wyman, Ph.D.
A. L. BURT COMPANY
By Clair W. Hayes
A. L. BURT COMPANY
By Herbert Carter
THE BOY SCOUTS’ FIRST CAMPFIRE; or, Scouting with the Silver
Fox Patrol.
THE BOY SCOUTS IN THE BLUE RIDGE; or, Marooned Among
the Moonshiners.
THE BOY SCOUTS ON THE TRAIL; or, Scouting through the Big
Game Country.
THE BOY SCOUTS IN THE MAINE WOODS; or, The New Test for
the Silver Fox Patrol.
THE BOY SCOUTS THROUGH THE BIG TIMBER; or, The Search
for the Lost Tenderfoot.
THE BOY SCOUTS IN THE ROCKIES; or, The Secret of the
Hidden Silver Mine.
THE BOY SCOUTS ON STURGEON ISLAND; or, Marooned Among
the Game-Fish Poachers.
THE BOY SCOUTS DOWN IN DIXIE; or, The Strange Secret of
Alligator Swamp.
THE BOY SCOUTS AT THE BATTLE OF SARATOGA; A story of
Burgoyne’s Defeat in 1777.
THE BOY SCOUTS ALONG THE SUSQUEHANNA; or, The Silver
Fox Patrol Caught in a Flood.
THE BOY SCOUTS ON WAR TRAILS IN BELGIUM; or, Caught
Between Hostile Armies.
THE BOY SCOUTS AFOOT IN FRANCE; or, With The Red Cross
Corps at the Marne.
A. L. BURT COMPANY
THE BOY ALLIES ON THE NORTH SEA PATROL; or, Striking the
First Blow at the German Fleet.
THE BOY ALLIES UNDER TWO FLAGS; or, Sweeping the Enemy
from the Sea.
THE BOY ALLIES WITH THE FLYING SQUADRON; or, The Naval
Raiders of the Great War.
THE BOY ALLIES WITH THE TERROR OF THE SEA; or, The Last
Shot of Submarine D-16.
THE BOY ALLIES UNDER THE SEA; or, The Vanishing
Submarine.
THE BOY ALLIES IN THE BALTIC; or, Through Fields of Ice to
Aid the Czar.
THE BOY ALLIES AT JUTLAND; or, The Greatest Naval Battle of
History.
THE BOY ALLIES WITH UNCLE SAM’S CRUISERS; or, Convoying
the American Army Across the Atlantic.
THE BOY ALLIES WITH THE SUBMARINE D-32; or, The Fall of
the Russian Empire.
THE BOY ALLIES WITH THE VICTORIOUS FLEETS; or, The Fall
of the German Navy.
A. L. BURT COMPANY
By Clair W. Hayes
A. L. BURT COMPANY
By Winn Standish
It would be well not to put this book into a boy’s hands until the
chores are finished, otherwise they might be neglected.
A. L. BURT COMPANY
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com