Java EE 7 Development with NetBeans 8 3rd Edition David R. Heffelfinger pdf download
Java EE 7 Development with NetBeans 8 3rd Edition David R. Heffelfinger pdf download
https://ebookfinal.com/download/java-ee-7-development-with-
netbeans-8-3rd-edition-david-r-heffelfinger/
https://ebookfinal.com/download/java-ee-5-development-using-glassfish-
application-server-1st-ed-edition-david-r-heffelfinger/
https://ebookfinal.com/download/java-ee-development-with-eclipse-2nd-
edition-ram-kulkarni/
https://ebookfinal.com/download/beginning-ejb-3-java-ee-7-edition-
jonathan-wetherbee/
https://ebookfinal.com/download/jasperreports-reporting-for-java-
developers-1st-edition-david-heffelfinger/
Java EE 7 Recipes A Problem Solution Approach 1st Edition
Josh Juneau (Auth.)
https://ebookfinal.com/download/java-ee-7-recipes-a-problem-solution-
approach-1st-edition-josh-juneau-auth/
https://ebookfinal.com/download/java-concepts-compatible-with-
java-5-6-and-7-6th-edition-cay-s-horstmann/
https://ebookfinal.com/download/java-ee-6-pocket-guide-1st-edition-
arun-gupta/
https://ebookfinal.com/download/the-java-ee-5-tutorial-2nd-ed-edition-
eric-jendrock/
https://ebookfinal.com/download/beginning-java-java-7-edition-ivor-
horton-ivor-horton/
Java EE 7 Development with NetBeans 8 3rd Edition
David R. Heffelfinger Digital Instant Download
Author(s): David R. Heffelfinger
ISBN(s): 9781783983520, 1783983523
Edition: 3
File Details: PDF, 22.73 MB
Year: 2015
Language: english
www.allitebooks.com
Java EE 7 Development
with NetBeans 8
David R. Heffelfinger
BIRMINGHAM - MUMBAI
www.allitebooks.com
Java EE 7 Development with NetBeans 8
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78398-352-0
www.packtpub.com
www.allitebooks.com
Credits
Reviewers Proofreaders
Saurabh Chhajed Ting Baker
Halil Karaköse Simran Bhogal
Mario Pérez Madueño Samuel Redman Birch
David Salter Maria Gould
Manjeet Singh Sawhney Ameesha Green
Paul Hindle
Acquisition Editor
Bernadette Watkins
Sam Wood
Indexer
Content Development Editors
Tejal Soni
Madhuja Chaudhari
Anand Singh Production Coordinator
Aparna Bhagat
Technical Editor
Pramod Kumavat Cover Work
Aparna Bhagat
Copy Editors
Roshni Banerjee
Neha Karnani
www.allitebooks.com
About the Author
www.allitebooks.com
About the Reviewers
Saurabh Chhajed is a Cloudera Certified Developer for Apache Hadoop and Sun
(Oracle) Certified Java/J2EE Programmer with 5 years of professional experience in
the enterprise application development life cycle using the latest frameworks, tools,
and design patterns. He has extensive experience of working with Agile and Scrum
methodologies and enjoys acting as an evangelist for new technologies such as NoSQL
and big data and analytics. Saurabh has helped some of the largest U.S. companies to
build their product suites from scratch. While not working, he enjoys traveling and
sharing his experiences on his blog (http://saurzcode.in).
He has worked in the telecommunications industry for 10 years, and has worked
for Turkcell and Ericsson. In 2014, he quit his job at Ericsson to establish his own
software consultancy company, KODFARKI (http://kodfarki.com).
His primary focus is Java, Java EE, Spring, and Primefaces. He also likes to give Java
trainings. He has a keen interest in Java tools that speed up development, such as
NetBeans and IntelliJ IDEA. In his spare time, he likes running, skiing, and playing
PES.
www.allitebooks.com
Mario Pérez Madueño was born in 1975 in Turin and lives in Barcelona. He
graduated in computer engineering from the Open University of Catalonia (UOC),
Spain, in 2010. Mario is a Java SE, ME, and EE enthusiast and has been a member of
the NetBeans Community Acceptance Testing program (NetCAT) for many years.
He was also the technical reviewer of the books, Java EE 5 Development with NetBeans
6 and Building SOA-based Composite Applications Using NetBeans IDE 6, both by
Packt Publishing.
I would like to thank my wife, María, for her unconditional help and
support in all the projects I get involved in, and Martín and Matías
for giving me the strength to go ahead.
David Salter is an enterprise software developer and architect who has been
developing software professionally since 1991. His relationship with Java goes back
to the beginning, when Java 1.0 was used to write desktop applications and applets
for interactive websites. David has been developing enterprise Java applications
using both Java EE (and J2EE) and open source solutions since 2001. David wrote
the books, NetBeans IDE 8 Cookbook and Seam 2.x Web Development, both by Packt
Publishing. He has also co-authored the book, Building SOA-Based Composite
Application Using NetBeans IDE 6, Packt Publishing.
www.allitebooks.com
Manjeet Singh Sawhney currently works for a large IT consultancy in
London, UK, as a Principal Consultant - Enterprise Data Architect within the
Global Enterprise Architecture Consulting practice. Previously, he worked for
global organizations in various roles, including development, technical solutions
consulting, and data management consulting. Although Manjeet has worked across
a range of programming languages, he specializes in Java. During his postgraduate
studies, he also worked as a Student Tutor for one of the top 100 universities in the
world, where he was teaching Java to undergraduate students and was involved
in marking exams and evaluating project assignments. Manjeet acquired his
professional experience by working on several mission-critical projects serving
clients in the financial services, telecommunications, manufacturing, retail, and
public sectors.
www.allitebooks.com
www.PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF
and ePub files available? You can upgrade to the eBook version at www.PacktPub.
com and as a print book customer, you are entitled to a discount on the eBook copy.
Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign
up for a range of free newsletters and receive exclusive discounts and offers on Packt
books and eBooks.
TM
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital
book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
• Fully searchable across every book published by Packt
• Copy and paste, print, and bookmark content
• On demand and accessible via a web browser
www.allitebooks.com
Table of Contents
Preface 1
Chapter 1: Getting Started with NetBeans 7
Introduction 7
Obtaining NetBeans 9
Installing NetBeans 12
Microsoft Windows 12
Mac OS X 12
Linux 13
Other platforms 13
Installation procedure 13
Starting NetBeans for the first time 20
Configuring NetBeans for Java EE development 21
Integrating NetBeans with a third-party application server 22
Integrating NetBeans with a third-party RDBMS 25
Adding a JDBC driver to NetBeans 26
Connecting to a third-party RDBMS 27
Deploying our first application 30
NetBeans tips for effective development 33
Code completion 33
Code templates 37
Keyboard shortcuts 40
Understanding NetBeans visual cues 44
Accelerated HTML5 development support 46
Summary 51
www.allitebooks.com
Table of Contents
[ ii ]
Table of Contents
[ iii ]
Table of Contents
[ iv ]
Preface
Java EE 7, the latest version of the Java EE specification, adds several new features
to simplify enterprise application development. New versions of existing Java EE
APIs have been included in this latest version of Java EE. JSF 2.2 has been updated
to better support wizard-like interfaces via FacesFlows and has been enhanced to
better support HTML5. NetBeans supports JPA 2.1 features such as Bean Validation
and many others. EJB session beans can be automatically generated by NetBeans,
allowing us to easily leverage EJB features such as transactions and concurrency.
CDI advanced features such as qualifiers, stereotypes, and others can be easily
implemented via NetBeans' wizards. JMS 2.0 has been greatly simplified, allowing us
to quickly and easily develop messaging applications. Java EE includes a new Java
API for JSON Processing (JSON-P), allowing us to quickly and easily process JSON
data. NetBeans includes several features to allow us to quickly and easily develop
both RESTful and SOAP-based web services.
This book will guide you through all the NetBeans features that make the
development of enterprise Java EE 7 applications a breeze.
Chapter 2, Developing Web Applications Using JavaServer Faces 2.2, explains how
NetBeans can help us easily develop web applications that take advantage of the
JavaServer Faces 2.2 framework.
Preface
Chapter 3, JSF Component Libraries, covers how NetBeans can help us easily develop
JSF applications using popular component libraries such as PrimeFaces, RichFaces,
and ICEfaces.
Chapter 4, Interacting with Databases through the Java Persistence API, explains how
NetBeans allows us to easily develop applications taking advantage of the Java
Persistence API (JPA), including how to automatically generate JPA entities from
existing schemas. This chapter also covers how complete web-based applications
can be generated with a few clicks from an existing database schema.
Chapter 5, Implementing the Business Tier with Session Beans, discusses how NetBeans
simplifies EJB 3.1 session bean development.
Chapter 6, Contexts and Dependency Injection, discusses how the CDI API introduced
in Java EE 6 can help us integrate the different layers of our application.
Chapter 7, Messaging with JMS and Message-driven Beans, explains Java EE messaging
technologies such as the Java Message Service (JMS) and Message-driven Beans
(MDB), covering NetBeans' features that simplify application development taking
advantage of these APIs.
Chapter 8, Java API for JSON Processing, explains how to process JSON data using the
new JSON-P Java EE API.
Chapter 9, Java API for WebSocket, explains how to use the new Java API for
WebSocket to develop web-based applications featuring full duplex communication
between the browser and the server.
Chapter 10, RESTful Web Services with JAX-RS, covers RESTful web services with
the Java API for RESTful Web Services, including coverage of how NetBeans can
automatically generate RESTful web services and both Java and JavaScript RESTful
web service clients.
Chapter 11, SOAP Web Services with JAX-WS, explains how NetBeans can help us
easily develop SOAP web services based on the Java API for the XML Web Services
(JAX-WS) API.
[2]
Preface
Conventions
In this book, you will find a number of text styles that distinguish between different
kinds of information. Here are some examples of these styles and an explanation of
their meaning.
Code words in text, database table names, folder names, filenames, file extensions,
pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"NetBeans uses the JAVA_HOME environment variable to populate the JDK's
directory location."
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.faces.flow.FlowScoped;
import javax.inject.Named;
@Named
@FlowScoped("registration")
public class RegistrationBean {
...
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items are set in bold:
package com.ensode.flowscope.namedbeans;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.faces.flow.FlowScoped;
import javax.inject.Named;
@Named
@FlowScoped("registration")
public class RegistrationBean {
...
[3]
Preface
New terms and important words are shown in bold. Words that you see on the
screen, for example, in menus or dialog boxes, appear in the text like this: " To
download NetBeans, we need to click on the Download button."
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about
this book—what you liked or disliked. Reader feedback is important for us as it
helps us develop titles that you will really get the most out of.
If there is a topic that you have expertise in and you are interested in either writing
or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things
to help you to get the most from your purchase.
[4]
Preface
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes
do happen. If you find a mistake in one of our books—maybe a mistake in the text or
the code—we would be grateful if you could report this to us. By doing so, you can
save other readers from frustration and help us improve subsequent versions of this
book. If you find any errata, please report them by visiting http://www.packtpub.
com/submit-errata, selecting your book, clicking on the Errata Submission Form
link, and entering the details of your errata. Once your errata are verified, your
submission will be accepted and the errata will be uploaded to our website or added
to any list of existing errata under the Errata section of that title.
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all
media. At Packt, we take the protection of our copyright and licenses very seriously.
If you come across any illegal copies of our works in any form on the Internet, please
provide us with the location address or website name immediately so that we can
pursue a remedy.
We appreciate your help in protecting our authors and our ability to bring you
valuable content.
Questions
If you have a problem with any aspect of this book, you can contact us at
questions@packtpub.com, and we will do our best to address the problem.
[5]
Getting Started with
NetBeans
In this chapter, we will learn how to get started with NetBeans. The following topics
are covered in this chapter:
• Introduction
• Obtaining NetBeans
• Installing NetBeans
• Starting NetBeans for the first time
• Configuring NetBeans for Java EE development
• Deploying our first application
• NetBeans tips for effective development
Introduction
NetBeans is an Integrated Development Environment (IDE) and platform.
Although initially, the NetBeans IDE could only be used to develop Java
applications, as of version 6, NetBeans supports several programming languages,
either through built-in support, or by installing additional plugins. Programming
languages natively supported by NetBeans include Java, C, C++, PHP, HTML, and
JavaScript. Groovy, Scala, and others are supported via additional plugins.
“SACRE NOM DE
GUERRE!”
Bom de Sac. Well, where in the thunder can they have got to? I
was quite certain of finding them here.
Fournichon. And I am quite certain you will do no such thing.
[Looks out of window.]
Bom de Sac. But—nom de nom!—how is it possible?
Fournichon. Just look here, Monsieur Bom de Sac, could these be
the gentlemen that have just passed laughing? Both of them have
white hats.
Bom de Sac (rushing to the window). Where?
Fournichon. Ah! what a pity! they have just this moment gone
round the corner towards the Botermarkt.
Bom de Sac. White hats, you say? The devil!—that must be they,
and they shan’t escape me this time. [Exit.] It’s not for nothing that I
had ten wounds in nine battles when serving with the Eighth.
Charles. Bad luck to the fellow! he has made it warm for us!
John. If it had lasted any longer, I am sure I should have made
some remarks on my own account. If some one else comes, we really
must find some other place, for I really can’t sit still so long in these
blessed skirts.
Charles. Shall we stand up then?
John. Why not. [Jumps on one of the chests.] Look here, I’ll bet
you anything you like I can stand half-an-hour like this without
moving. Don’t I look like a waxwork figure of summer?
Charles. The devil you are! [Gets on the other chest.] And I winter,
to match.
Fournichon. Splendid, gentlemen, it couldn’t be finer. Just stand
still like that. [A ring at the bell.]
Charles (getting down). Preserve us!—now we’re in for it.
John. No, Charles, stick to your post.
Charles. I can’t possibly stand still all that time.
Fournichon. It won’t be necessary. Just stand in any easy attitude,
and you can change your position quietly from time to time, without
our tiresome visitor becoming aware of it.
Charles. Well, I’ll see what I can do. [Climbs up again.]
Fournichon. Hush! he’s coming!
Enter Meijer.
Meijer. Good-day, Monsieur Fournichon. Good-day, ladies. (To
Fournichon.) Why are you laughing?
Fournichon. At your taking those waxworks for ladies. Ha! ha! ha!
Meijer. Waxworks, you say! How astonishingly lifelike! It’s true,
though, it would be a queer position for living beings to stand in.
Fournichon. Well done, are they not? It is an allegorical
representation of winter and summer.
Meijer. Very pretty, very pretty indeed! You hair-dressers have
always something curious on hand.
Fournichon. That’s to say, sir, they are not my property. They have
been sent to me to look after the coiffures, and they are to go to
London,—to Madame Tousseau’s museum.
Meijer. Oh, indeed!—indeed! Well, art has made great strides.
Fournichon. Great strides, sir! You’re quite right there. Just feel
now—elastic as india-rubber—quite like a human being.
Meijer. Wonderful! wonderful! But I am in a hurry—can you shave
me?
Fournichon. Certainly, sir, sit down! [Gives him a chair between
John and Charles, but rather more towards the back of the shop.
Goes on shaving him, and talking at the same time.] Your barber,
sir, does not know his business. Your skin and complexion are quite
spoilt.
[John changes his position.]
Meijer (starting up). Good heavens!
Fournichon. No need to be uneasy, sir; there is nothing really
dangerous.
Meijer. No, that’s not what I was thinking of,—but that doll of
yours—the summer one—is moving!
Fournichon. Oh! that is nothing surprising—perhaps I stepped on
the floor rather heavily. You must know these figures are full of steel
springs inside, and the slightest vibration makes them move. Just
look now!
[Stamps on the floor. John and Charles immediately change
their positions.]
Meijer. Ah! thank you for your explanation. I really never should
have understood it.
[Sits down again, and Fournichon goes on shaving him till he
has finished. Meijer rises.]
Meijer. Thanks. Can you give me change?
Fournichon. I’ll go and get it.
[Exit. Meijer goes to look at the waxworks.]
Meijer. They are curious, though! I have often seen waxworks
before, but never so graceful, so lifelike as these. Whenever any one
stamps on the floor, they move. [Stamps—John and Charles again
change their attitudes.] Just look at that! how pretty! Once more!
Sublime! And that’s the way they keep on! [Stamps again, and
continues to do so, faster and faster—John and Charles changing
their position with every stamp; but at length they begin to grow
tired of it—they jump down from their pedestals, seize Meijer, and
hold him fast, saying, “You rascal! this is too much of a good thing!”
They strike him, and push him out at the door—losing their wigs in
the struggle—after which they burst out laughing, and drop
exhausted into their chairs. Enter F.]
Fournichon. Gentlemen! what have you been up to now? Such an
infernal row I never heard before! You’ll wake all the babies in the
neighbourhood.
Charles (laughing). Oh! the conceited blockhead!
John. The worshipper of waxwork groups!
Fournichon. Well—where is he? What have you done with him?
Charles. We have put him out at the door as quietly and
deliberately as possible.
Fournichon. Well—and why?
John. Because he bored us too much. He was so delighted with the
mechanism of the figures, that we might have kept on dancing till to-
morrow morning if we had not put an end to the business ourselves.
Fournichon. And what about your coiffures?
Charles. Why, that’s true! What can have become of them!
Fournichon. Oh! good heavens! here they are, lying on the ground
like any old rubbish! [Picks them up, along with the hat and cap.]
Just look!—they are not worth a cent now!
John. Oh! just put the things away—we don’t want them any more,
—and if they’re spoilt, we’ll pay for them.
Fournichon. In that case, sir, it doesn’t matter. [Lays everything
on a table. The bell rings.] Hé! who’s that now?
Charles. It doesn’t matter to me who it is. Any one may come who
likes—I’m not going to act in this farce any longer.
Fournichon (looks through the door). Look out, gentlemen—it’s
the agent—Bom de Sac!
John and Charles (springing up). That fellow! No! that will never
do! [They sit down at the table, as before, and put on their
headdresses, but without seeing that they have taken the wrong
ones, John putting on the grey wig and cap,—Charles, the curls and
round straw hat. Bom de Sac heard speaking outside the door:]—
No, sacré nom de nom! Mijnheer Meyer has lent me a hand. What
are people thinking of? It was not for nothing I was wounded eleven
times in ten battles, with the 9th Regiment. They are here—I’m
certain of that! [Enters.]
Fournichon. Search as much as you like, sir, but remember, if you
please, that, in the presence of ladies....
Bom de Sac. Of course, of course! I always said, “Honneur aux
dames.” [Looks at the ladies and salutes, then takes a step
backward in amazement.] Sacré nom de guerre!
Fournichon. What’s the matter?
Bom de Sac. Have I come to my age—not to speak of twelve
wounds in eleven battles—to let myself be fooled like this?
Fournichon. I don’t understand you.
Bom de Sac. No, perhaps not. But I understand how it is possible
for these ladies to have changed heads at a moment’s notice. Look
here! [He takes off the wigs.] The young lady is getting grey, and the
grandmother is going backwards to her childhood. Come with me,
now, gentlemen—I arrest you both!
Fournichon. Your own fault, gentlemen. I wash my hands of the
whole business.
Charles. We have a word to say to that, John.
John. Certainly.
Bom de Sac. Gentlemen, conspiracies or plots in which more than
one person are concerned are forbidden by law. Will you come with
me, or not?
Charles. I suppose we shall have to.
John. Do you want us to come with you as we are?
Bom de Sac. Just as you like, gentlemen. I arrest you, and that is
all my share in the business. The rest does not concern me.
Charles (whispers to John, then continues aloud). Just listen,
Monsieur Bom de Sac,—though we find it very unpleasant to have
fallen into your hands, we are not children, and we are quite capable
of understanding that there is nothing for it but to give in. But just let
us change our clothes first—we’ll give you our word of honour not to
go out of the door without letting you know.
Bom de Sac. Very good! We have been young, too, you see. Just go
on, gentlemen. If you give me your word, that is enough. [While he
goes on talking to Fournichon, John and Charles take off their
costumes and tie Bom de Sac’s coattails to the table.] Yes, Mr
Hairdresser, when I was with the 11th, and had been wounded
thirteen times in twelve battles, then I thought to myself,—it’s quite
enough, Bom de Sac, you have done quite enough for your country;
you’re growing old—and a soldier may be too old. I was then
brigadier, and understood that it was getting time for me to make
room for another. So I came home to my old mother ... I married a
young wife....
Charles. ... and received, in thirteen battles....
Bom de Sac. Ah!—are you ready, gentlemen?
John. At your service, my worthy sergeant of police! We are quite
ready, and now warn you that we are about to leave. [Charles and
John go out by the door at the back of the stage, arm in arm,
saying, as they go.]—Bon soir.
Bom de Sac. Wait—I’m coming with you! [Tries to go, but finds
himself fastened to the table.] Bad luck to them! are they going to
give me the slip after all?
Fournichon. I see a good chance of it. Look here, Monsieur Bom de
Sac, you have, in far too many battles received more than too many
wounds to be anything like a match for these young fellows. They
have been sharper than you,—so you’ll have to acknowledge yourself
beaten, and e’en let them alone. By the time you get outside the door
they will be far beyond your reach.
Bom de Sac. You’re right enough there, so I shall keep the whole
matter to myself, and wish them a pleasant evening.
Anon.
IN THE LITTLE REPUBLIC.
“TOO DRUNK TO
KNOW WHAT THEY
WERE DOING.”
“BOTH WALKED ON IN
SILENCE.”
He went with the two women into the nearest eating-house in the
village and ordered dinner, also two sheets of paper and an envelope.
While the ladies were dining, he wrote a letter on one sheet, slowly
and carefully, with beautiful round letters, then dashed off another
more hastily, and enclosed both in one envelope, which he stamped
and addressed to “Herrn Oscar Olthausen, Rechtsanwalt, Berlin.” He
then directed Marieke to wait till her father was about to send away
the letters with the new Altenet stamps. “Then you must keep back
the one addressed to Bismarck, and post this in place of it; and then I
assure you that everything will come right, without you or your
mother getting into any trouble with the old gentleman.”
They remained chatting for some little time longer, and then Dr
Olthausen took his leave and returned to Aix-la-Chapelle.
Early on the following day Drikus the First set out for Limburg’s
metropolis. Arrived there, he turned his steps towards the barber’s
shop. A young shopman came to meet him, and politely relieved him
of his coat and hat.
“See here, lad,” began Bloemstein, “did you ever shave a
president?”
“Why, yes, sir; only yesterday the President of the Congregation of
the Sacred Heart.”
“No, I don’t mean one like that; I mean a great president.”
“Oh, the one of the great club?”
“No—greater still.”
“The President of the Tribunal, then?”
“No; greater still—a president of a republic!”
“Of a republic, you say? No, I never shaved one—never in my life!”
“Do you know what he looks like?”
“Why, yes—like a gentleman.”
“Very good, my boy; I see you understand. Now, that’s the way
you’ve got to shave me—for I’m one.”
“You a president of a republic? Ha! ha! ha!”
“What are you laughing at, boy?”
“Because you’re trying to make a fool of me.”
“Indeed and I’m not. I’m Drikus the First, President of the
Independent Republic of Altenet.”
The lad laughed no longer; he looked round in alarm, convinced
that he had a madman in the room with him.
“Shave my beard off!” commanded Bloemstein.
“Very well, Mr ... President.”
“À la bonne heure, my lad! I like that—you know how to behave.”
“SEE HERE, LAD, DID
YOU EVER SHAVE A
PRESIDENT?”
“THERE HE IS!”
The officer returned the same day, with the tidings that all Altenet
was one great lunatic asylum; that every human being he had met
and spoken to there was even madder than the one who had been
caught; everything he had seen and heard was sheer nonsense and
delirium, and so he had been obliged to return as he came.
Medical aid was summoned, but all in vain; the gentlemen were
unable to agree, one asserting that the patient was suffering from
aberratio mentalis, while another thought things were not so bad as
that.
“After all, what business is it of ours?” said one at last. “Send him
back to his home, and let them settle it among themselves.”
This counsel met with unanimous approbation, and was, in fact,
the most practical, and at the same time the easiest, way of disposing
of the prisoner.
Bloemstein was furious; and when the gendarmes who escorted
him took leave of him at the frontier, he was almost beside himself
with rage. He would have liked to take them with him into his
dominions, where he was undisputed lord and master; he would then
have summoned the commander of the local rifles, and ordered him
to shut up the Maastricht officials for a whole day in the cellar below
the council-chamber. But, alas! fate was against him, he could not
gratify his desire for vengeance; but being forced to relieve his
feelings in some way, he did so by indignantly shouting after their
retreating figures, “You Dutch cheese-heads, you!”
With hasty steps he forthwith sought his chief counsellor, the
Minister for Home Affairs, the tailor Holzert. In excited language,
and with wild gestures, he related the story of the outrage suffered by
him at Maastricht, and asked, in conclusion, “What are we to do?”
The tailor put his hand to his head, and remained for some little
time lost in thought.
“What are we to do?” repeated Bloemstein; “we can’t let a thing
like that pass.”
“What are we to do?” replied Holzert, speaking slowly and
solemnly. “Why, we must declare war against Holland.”
“Declare war against Holland?”
“Yes.”
“And what for?”
“For high treason.”
“You’re right, you’re right; we must send for Bauer at once.”
“No, not so fast; we must have the stamps first, with your head on
them, and then the Hollanders can see whom they have to deal with.”
“You’re right again, tailor,” said Drikus I., flattered not a little by
these words.
“Besides that, I haven’t finished the ministers’ suits yet, and we
can do nothing without them; everything has got to be respectable.”
“Of course.”
During the next few days an unheard-of political commotion
prevailed in the usually calm atmosphere of Altenet.
Every evening, when work was over, Bauer’s rifles assembled in
the Minister of Finance’s public-house, in order to exchange ideas as
to the coming war with Holland.
Guesses were given as to where the first battle would be fought,
and calculations were made as to how soon they would be before the
gates of Amsterdam, and how many thousand millions they would
make the Dutch pay as war indemnity.
Bloemstein, meanwhile, wrote innumerable letters to all the
powers of Europe, to give them notice of his accession. All of them
were enclosed in large square envelopes, and laid out in a long row
on the table.
“And when once I’ve stuck on the stamps, with my head on them,
why, then, I shall be no end of a fellow, Marieke,” he repeatedly
remarked to his daughter.
The portraits, however, did not arrive.
“WROTE
INNUMERABLE
LETTERS TO ALL THE
POWERS OF EUROPE.”
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