Distributed NET Programming in VB NET 1st Edition Tom Barnaby (Auth.) pdf download
Distributed NET Programming in VB NET 1st Edition Tom Barnaby (Auth.) pdf download
https://ebookfinal.com/download/distributed-net-programming-in-
vb-net-1st-edition-tom-barnaby-auth/
https://ebookfinal.com/download/asp-net-website-programming-problem-
design-solution-vb-net-edition-marco-bellinaso/
https://ebookfinal.com/download/object-oriented-programming-in-vb-
net-1st-edition-alistair-mcmonnies/
https://ebookfinal.com/download/visual-basic-net-from-vb6-to-vb-
net-1st-edition-matt-tagliaferri/
https://ebookfinal.com/download/professional-vb-net-1st-edition-rocky-
lhotka/
Learn Vb Net 1st Edition Chuck Easttom
https://ebookfinal.com/download/learn-vb-net-1st-edition-chuck-
easttom/
https://ebookfinal.com/download/beginning-asp-net-in-vb-net-from-
novice-to-professional-1st-edition-matthew-macdonald-auth/
https://ebookfinal.com/download/beginning-vb-net-2nd-ed-edition-
richard-blair/
https://ebookfinal.com/download/pro-vb-2008-and-the-net-3-5-platform-
third-edition-windows-net-andrew-troelsen/
https://ebookfinal.com/download/programming-mappoint-in-net-1st-
edition-chandu-thota/
Distributed NET Programming in VB NET 1st Edition
Tom Barnaby (Auth.) Digital Instant Download
Author(s): Tom Barnaby (auth.)
ISBN(s): 9781590590683, 1590590686
Edition: 1
File Details: PDF, 36.83 MB
Year: 2002
Language: english
Distributed .NET
Programming in VB .NET
1DMBARNABY
AII rights reserved. No part of this work may be reproduced or transmitted in any form or by any
means, electronic or mechanical, inc1uding photocopying, recording, or by any information
storage or retrieval system, without the prior written permission of the copyright owner and the
publisher.
ISBN 978-1-59059-068-3 ISBN 978-1-4302-1110-5 (eBook)
DOI 10.1007/978-1-4302-1110-5
Thademarked names may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, we use the names only in an editorial fashion and to the
benefit of the trademark owner, with no intention of infringement of the trademark.
Technical Reviewer: Gordon Wilmot
Editorial Directors: Dan Appleman, Gary Cornell, Iason Gilmore, Simon Hayes, Karen Watterson,
Iohn Zukowski
Managing Editor: Grace Wong
Compositor: Susan Glinert Stevens
Artist: Cara Brunk, Blue Mud Productions
Indexer: Valerie Robbins
Cover Designer: Kurt Krames
Manufacturing Manager: Tom Debolski
Marketing Manager: Stephanie Rodriguez
The information in this book is distributed on an "as is" basis, without warranty. Although every
precaution has been taken in the preparation ofthis work, neither the author nor Apress shall
have any liability to any person or entity with respect to any 10ss or damage caused or alleged to
be caused directly or indirectly by the information contained in this work.
To my wife Tammy and son Max.
Contents at a Glance
Foreword .................................................................................................................. xv
About the Author .............................................................................................. xvii
About the Technical Reviewer .................................................................. xix
Acknowledgments ................................................................................................. xxi
Introduction and AFAQ
(Anticipated Frequently Asked Questions) ........................................ xxiii
Chapter 1 The Evolution of Distributed Programming ................. 1
Chapter 2 This Is •NET ............................................................................ 27
Chapter 3 Introduction to •NET Remoting ....................................... 91
Chapter 4 Distributed Programming with .NET Remoting ........ 119
Chapter 5 Additional Remoting Techniques ................................... 175
Chapter 6 Understanding XML Web Services ................................... 237
Chapter 7 Understanding COM Interop ............................................. 273
Chapter 8 Leveraging Component Services ..................................... 289
Chapter 9 •NET Message Queuing ........................................................ 357
Appendix Data Access with ADO. NET .................................................. 395
Index ........................................................................................................................ 481
v
Contents
Foreword ................................................................................................................ xv
vii
Contents
viii
Contents
ix
Contents
X
Contents
xi
Contents
xii
Contents
xiii
Foreword
COM ON A WIRE, also known as DCOM, was a great boon to the distributed pro-
grammer. Under the model ofDCOM, a client was able to interact with COM objects
located literally anywhere, without requiring a change of code base. Using the indi-
rection provided by AppiDs, stubs, proxies, and channels, our distributed endeavors
involved little more than the use of declarative tools such as dcomcnfg.exe and the
Component Services snap-in. However, all was not well in the world of DCOM (or
COM for that matter). Although the clicking of check boxes made COM-based
remoting appear quite simple on the surface, we suffered through numerous registry
conflicts, a lifetime of passing interface pointers by reference, and the dreaded
prospect of crossing firewalls.
Just as ADO.NET has nothing to do with classic ADO, the .NET Remoting story
has nothing to do with classic DCOM. The most obvious case in point is the fact
that .NET assemblies are not registered with the system registry. Given this, we
have no AppiD. Without an AppiD, we have no RemoteServerName value, which
means no reference to oleaut32.dll and thus no more COM -based stub and proxies.
In short, everything we knew about interacting with types across the wire has
changed dramatically.
Under .NET, we are provided with dozens of new remoting constructs. Not only
do we need to contend with numerous TLAs (three-letter acronyms) such as WKO,
CAO, and the like, but we are also required to be content with new spins on existing
ideas (for example, the distinction between "real" versus "transparent" proxies) as
well as the role ofXML configuration files.
Many programmers who are faced with the task of learning the story of .NET
distributed programming turn to MSDN. Here, they are confronted with numerous
code examples, partial white papers, and diagrams that require a 21-inch monitor
to view in their entirety. This approach is bound to lead to frustration and a dis-
jointed knowledge base. What is sorely needed is a practical, approachable, and in-
depth treatment of how all of these new technologies fit together in the context of
an Enterprise application.
Tom's latest book (the one currently in your grasp) provides such a treatment.
Here, you will find logical and clear explanations that (surprise, surprise) actually
provide insight to the richness of the .NET Remoting layer. Not only does Tom
pound out the gory details of this suite of new TLAs, but he also rounds out your
understanding by providing coverage of numerous related Enterprise-centric tech-
nologies such as building configured components (a.k.a. COM+), .NET messaging,
Web services, and interoperability with classic COM types.
XV
Foreword
For a number of years now, Tom and I have worked together here at Intertech,
Inc. (http: I /www. intertech- inc. com). I have witnessed him teach numerous courses
on the topics of classic COM and .NET (including his Expert Distributed .NET
class). I have also had the pleasure to work with him on numerous development
efforts. I can speak from the heart when I say you are in good hands.
Enjoy!
Andrew Troelsen
Partner and Trainer, Intertech, Inc.
Minneapolis, MN
xvi
About the Author
xvii
About the
Technical Reviewer
xix
Acknowledgments
WRITING A BOOK is by far the hardest thing I have ever done. Yet it would have been
completely impossible if I didn't have the help and support of many fine people.
All of the following folks played essential parts in the making of both the C# and the
VB .NET versions of this book.
Thanks to everyone at Apress. Gary Cornell, for taking a chance on me, a
complete unknown wishing to write about a hot topic. Ami "Damn Yer Good"
Knox, for being even more analytical than I in regards to writing. Grace Wong and
Kari Brooks for keeping the great wheels of book production churning even if I was
burning (out). And a huge thanks to Alexa Stuart, who somehow kept this project
running smoothly in spite of me.
Thanks to my technical editor, Gordon Wilmot, who not only provided great
feedback, but also a tremendous amount of encouragement.
Thanks to Kelly Kari for proofreading several chapters. But more importantly,
thanks for actually laughing at my attempts at humor scattered throughout.
Thanks to everyone at Intertech. I feel privileged to work for a company filled with
such talented and dedicated individuals. Thanks to all my cohorts, Steve Close (Java is
toast), GinaAccawi (XML is just a big string), and Andrew "Gunnar" Sondgeroth (see
Steve Close) for providing a challenging, fun, and invigorating work environment.
Special thanks to Andrew Troelsen for contributing the appendix, and whose, urn,
unique brand of encouragement ultimately lead to this book. Finally, thanks to
Tom Salonek, founder of Intertech, for somehow tolerating the bizarre antics of us
admitted prima donnas.
Thanks to Rabi, my cat, for keeping my shoulders warm while I worked.
Finally, and most important of all, many, many thanks to my wife Tammy and son
Max. Nobody sacrificed more for the sake of this book. I will be forever grateful.
xxi
Introduction and AFAO..
(Anticipated Frequently
Asked Questions)
THE SUBJECT OF DISTRIBUTED PROGRAMMING is vast. To implement distributed appli-
cations properly, you must understand everything from low-level networking
details to high -level architectural issues .. NET is a brand new platform deserving of
several thousand pages of documentation. So the challenge I faced when writing
this book was this: how do I combine these two immense subjects into a single,
digestible volume?
My answer: I don't. In other words, I had to make assumptions regarding the
level of experience of the reader, which is tough given that .NET is such a new tech-
nology. Even harder, though, I had to make difficult decisions about what the book
would and would not be. On a few issues I was resolute. The book would not be a
regurgitation of documentation. The book would not be a thousand-page boat
anchor covering dozens of subjects and none of them well.
Rather than list other things this book is not, however, I want to discuss what
this book is. I think of it as a guided tour through the fundamental technologies you
use to build distributed applications with .NET, such as .NET Remoting, Web services,
serialization, COM+, and MSMQ. These technologies are the tools we developers
use to craft distributed applications. And they are complex enough in themselves
to warrant in-depth examination. The focus, then, is on the use of each technology
and the role it plays in a distributed application. Think of it as pulling each tool out
of the box, examining it, and experimenting with it to get a sense of the problems it
can solve. Like any craft, distributed programming is best learned by doing, but
wherever possible I discuss the pros and cons of using one tool over another.
In an attempt to set the proper expectations (and to head off some angry e-mails),
I've compiled the following list of anticipated questions.
xxiii
Introduction and AFAQ (Anticipated Frequently Asked Questions)
In my original outline for this book, I included a chapter on ADO.NET. But while I
was writing chapters about COM+, MSMQ, and remoting, several books were
released that focused on ADO.NET. Furthermore, my colleague, Andrew Troelsen,
had already written excellent ADO.NET chapters for his C# and VB .NET books that
described everything I wanted to describe aboutADO.NET (and more). So, being
one who always believed in reuse, I asked Andrew if I could use his ADO.NET
chapter and he graciously agreed.
For later chapters you will need other software to run the examples,
including COM+, liS, and MSMQ. The examples were developed using
Windows XP Professional, but I believe they will also run on Windows 2000.
XXV
Discovering Diverse Content Through
Random Scribd Documents
experiments as well as to the results found by other
investigators. Numerous reproductions of myograph curves, etc.,
illustrate the text.”—J. Philos.
Reviewed by F. N. Freeman.
J. Philos. 4: 301. My. 23, ’07. 1750w.
“We have in this book the most valuable contribution to the
comprehension of the functions of the nervous system that has
appeared up to the present time, not only from the records of
the experiments quoted, but also from the logical and orderly
way in which the due inferences from the experiments are put
forward, and the volume stands out as a landmark in our
knowledge of the subject.”
+ Nature. 76: 122. Je. 6, ’07. 710w.
+
−
“The best that can be said for it is that no doubt it will yield a
number of amiable persons a certain harmless enjoyment; the
worst, that there is no reason why it should have been written at
all.”
− Acad. 73: 194. N. 30, ’07. 230w.
“Mrs. Shorter’s characters are skillfully and sympathetically
drawn.”
+ Ath. 1907, 2: 400. O. 5. 180w.
“[Only one] small blot on a story that within its little limits has
the qualities of a work of art.”
+ Lond. Times. 6: 317. O. 18, ’07. 330w.
+
−
“Taken as a whole, we may say that the pieces have been well
translated.... Had he omitted two-thirds of the pieces in the
present volume, he would have strengthened his case
considerably. By winnowing the chaff from the grain he might
have convinced the average reader that ancient Ireland had a
literature equal to, if not greater than, that of the Greeks.”
+ Acad. 72: 135. F. 9, ’07. 1950w.
−
“A good index would have enhanced the value of the book”
+ N. Y. Times. 12: 311. My. 11, ’07. 320w.
−
“It is a tribute to Miss Sinclair’s skill that she has not made
Anne a bore; she is interesting as well as unpleasant.”
+ Acad. 73: 929. S. 21, ’07. 430w.
+
“Whether it has a place in a large library or not, there is no
excuse for the small library putting money into it, first because it
has appeared serially in the ‘Atlantic’ during the year and is,
therefore, accessible to those who desire it, and second, because
it should be consigned to the restricted shelves for which there is
no need in the small library.”
+ A. L. A. Bkl. 3: 181. O. ’07.
−
“Unusually well-constructed and interesting.”
+ Ath. 1907, 2: 204. Ag. 24. 170w.
“This novel of Miss Sinclair’s is one of more than ordinary
power and with a more pressing raison d’être than have most
novels, but it is almost certain that those who might draw from it
a profitable idea are not the ones who will read it.” Dolores
Bacon.
+ Bookm. 26: 276. N. ’07. 1030w.
+
“We may say at once that it is not as remarkable a
performance as its predecessor, but we must quickly add that it
is so far above the run of novels as to afford a high degree of
intellectual satisfaction.” Wm. M. Payne.
+ Dial. 43: 250. O. 16, ’07. 520w.
+
“The ‘Helpmate’ is one of the most truthful novels written in
many a day and therein lies its dignity and worth.”
+ Ind. 63: 877. O. 10, ’07. 820w.
+
“Probably the most effective, the most humanly splendid story
of the year comes from May Sinclair.”
+ Ind. 63: 1228. N. 21, ’07. 40w.
+
“Not that the book is in any sense a sermon. It is far too
artistically and honestly a novel, informed with sagacity of mind,
and admirably distinguished in expression.”
+ Lit. D. 35: 656. N. 2, ’07. 420w.
+
“A novel which, though abounding in cleverness, must, for
various reasons be held to have missed a success very nearly
attained, must on the whole be regarded as a brilliant failure. I
have been tempted to examine this failure—if so it be—in the
light of the British convention.” Eleanor Cecil.
− Living Age. 255: 579. D. 7, ’07. 6950w.
+
“‘The helpmate’ stands or falls by its fidelity to the fact. In
spite of certain defects, we think it stands; and stands not only
as a document but as an emotional story. We admire the book
immensely; we admire its skill, its outspokenness, its reticence.
Perhaps, most of all, we admire Miss Sinclair’s sympathetic
understanding and tolerance, beyond that of most married
novelists.”
+ Lond. Times. 6: 269. S. 6, ’07. 670w.
+
−
“This book deals ably and amply with the story of domestic life
and its material adjuncts in the low countries.”
+ Acad. 72: 384. Ap. 20, ’07. 1530w.
“Her choice to deal with the philosophy of the subject and its
organic connexion with history has the disadvantage of
rendering her book unpractical for the ordinary collector or
connoisseur.”
+ Ath. 1907, 1: 672. Je. 1. 660w.
−
“The author of the letterpress has a quite amiable enthusiasm
for her subject, has read a good deal about and round about it,
and has considerable, if rather vague and desultory, knowledge
regarding it. Unfortunately, she seems to possess little critical or
co-ordinative faculty; her facts are accumulated, not classified;
she does not appear to discriminate between their relative
values, or to feel the necessity of establishing much connexion
between them.”
+ Lond. Times. 6: 190. Je. 14, ’07. 560w.
−
The “secrets” of the Vatican are merely its history. Mr. Sladen
is “guide, philosopher and friend” over the course chosen, and
tells of the building of the original palace, the reconstruction of
the present edifice, the Vatican libraries, its galleries and its
gardens.
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.
ebookfinal.com