100% found this document useful (2 votes)
49 views

Instant Access to Java EE Development with Eclipse - Second Edition Ram Kulkarni ebook Full Chapters

Development

Uploaded by

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

Instant Access to Java EE Development with Eclipse - Second Edition Ram Kulkarni ebook Full Chapters

Development

Uploaded by

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

Download the Full Version of textbook for Fast Typing at textbookfull.

com

Java EE Development with Eclipse - Second Edition


Ram Kulkarni

https://textbookfull.com/product/java-ee-development-with-
eclipse-second-edition-ram-kulkarni/

OR CLICK BUTTON

DOWNLOAD NOW

Download More textbook Instantly Today - Get Yours Now at textbookfull.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Java EE Development with Eclipse 1st Edition Vohra Deepak

https://textbookfull.com/product/java-ee-development-with-eclipse-1st-
edition-vohra-deepak/

textboxfull.com

Java EE 7 Development with NetBeans 8 1st Edition


Heffelfinger David R

https://textbookfull.com/product/java-ee-7-development-with-
netbeans-8-1st-edition-heffelfinger-david-r/

textboxfull.com

Java EE 7 Development with WildFly 1st Edition Cmil Michal


Matloka Michal Marchioni Francesco

https://textbookfull.com/product/java-ee-7-development-with-
wildfly-1st-edition-cmil-michal-matloka-michal-marchioni-francesco/

textboxfull.com

Building RESTful Web Services with Java EE 8 Create modern


RESTful web services with the Java EE 8 API Mario-Leander
Reimer
https://textbookfull.com/product/building-restful-web-services-with-
java-ee-8-create-modern-restful-web-services-with-the-java-ee-8-api-
mario-leander-reimer/
textboxfull.com
Java EE 6 Pocket Guide A Quick Reference for Simplified
Enterprise Java Development 1st Edition Gupta Arun

https://textbookfull.com/product/java-ee-6-pocket-guide-a-quick-
reference-for-simplified-enterprise-java-development-1st-edition-
gupta-arun/
textboxfull.com

Java EE 6 with GlassFish 3 Application Server 1st Edition


Heffelfinger David

https://textbookfull.com/product/java-ee-6-with-
glassfish-3-application-server-1st-edition-heffelfinger-david/

textboxfull.com

Practical Domain-Driven Design in Enterprise Java - Using


Jakarta EE, Eclipse MicroProfile, Spring Boot, and the
Axon Framework 1st Edition Vijay Nair
https://textbookfull.com/product/practical-domain-driven-design-in-
enterprise-java-using-jakarta-ee-eclipse-microprofile-spring-boot-and-
the-axon-framework-1st-edition-vijay-nair/
textboxfull.com

Beginning EJB in Java EE 8: Building Applications with


Enterprise JavaBeans Jonathan Wetherbee

https://textbookfull.com/product/beginning-ejb-in-java-ee-8-building-
applications-with-enterprise-javabeans-jonathan-wetherbee/

textboxfull.com

Introducing Jakarta EE CDI Contexts and Dependency


Injection for Enterprise Java Development 1st Edition
Luqman Saeed
https://textbookfull.com/product/introducing-jakarta-ee-cdi-contexts-
and-dependency-injection-for-enterprise-java-development-1st-edition-
luqman-saeed/
textboxfull.com
Table of Contents
Java EE Development with Eclipse Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing JEE and Eclipse
Java Enterprise Edition (JEE)
The presentation layer
Java Servlet
Java Server Pages
Java Server Faces
The business layer
Enterprise Java Beans
The enterprise integration layer
Java Database Connectivity (JDBC)
The Java Persistent API (JPA)
Java Connector Architecture (JCA)
Web services
Eclipse IDE
Workspace
Plugin
Editors and views
Perspective
Eclipse preferences
Installing products
Installing Eclipse (Version 4.4)
Installing Tomcat
Installing the GlassFish server
Installing MySQL
Installing MySQL on Windows
Installing MySQL on Mac OS X
Installing MySQL on Linux
Creating MySQL users
Summary
2. Creating a Simple JEE Web Application
Configuring Tomcat in Eclipse
Java Server Pages
Creating a dynamic web project
Creating JSP
Running JSP in Tomcat
Using JavaBeans in JSP
Using JSTL
Implementing login application using Java Servlet
Creating WAR
Java Server Faces
Using Maven for project management
Maven views and preferences in Eclipse JEE
Creating a Maven project
Maven Archetype
Exploring the POM
Adding Maven dependencies
The Maven project structure
Creating WAR using Maven
Summary
3. Source Control Management in Eclipse
The Eclipse Subversion plugin
Installing the Eclipse Subversion plugin
Adding a project to an SVN repository
Committing changes to an SVN repository
Synchronizing with an SVN repository
Checking out a project from SVN
The Eclipse Git plugin
Adding a project to Git
Committing files in a Git repository
Viewing a file difference after modifications
Creating a new branch
Committing a project to a remote repository
Pulling changes from a remote repository
Cloning a remote repository
Summary
4. Creating a JEE Database Application
Creating a database schema
The script for creating tables and relationships
Creating tables in MySQL
Creating a database application using JDBC
Creating a project and setting up Maven dependencies
Creating JavaBeans for data storage
Creating JSP to add a course
JDBC concepts
Creating a database connection
Executing SQL statements
Handling transactions
Using the JDBC database connection pool
Saving a course in a database table using JDBC
Getting courses from the database table using JDBC
Completing the add Course functionality
Using Eclipse Data Source Explorer
Creating a database application using JPA
Creating the user interface for adding a course using JSF
JPA concepts
Entity
EntityManager
EntityManagerFactory
Creating a JPA application
Creating a new MySQL schema
Setting up a Maven dependency for JPA
Converting a project into a JPA project
Creating entities
Configuring entity relationships
Configuring a many-to-one relationship
Configuring a many-to-many relationship
Creating database tables from entities
Using JPA APIs to manage data
Wiring the user interface with a JPA service class
Summary
5. Unit Testing
JUnit
Creating and executing unit tests using Eclipse EE
Creating a unit test case
Running a unit test case
Running a unit test case using Maven
Mocking external dependencies for unit tests
Using Mockito
Calculating test coverage
Summary
6. Debugging a JEE Application
Debugging a remote Java application
Debugging a web application using Tomcat in Eclipse EE
Starting Tomcat in debug mode
Setting breakpoints
Running an application in debug mode
Performing step operations and inspecting variables
Inspecting variable values
Debugging an application in an externally configured Tomcat
Using Debugger to know the status of a program execution
Summary
7. Creating JEE Applications with EJB
Types of EJB
Session bean
Stateful session bean
Stateless session bean
Singleton session bean
Accessing session bean from the client
Creating a no-interface session
Accessing session bean using dependency injection
Creating session bean using the local business interface
Accessing session bean using the JNDI lookup
Creating session bean using a remote business interface
Accessing a remote session bean
Configuring the GlassFish server in Eclipse
Creating the CourseManagement application using EJB
Creating an EJB project in Eclipse
Configuring datasource in GlassFish 4
Configuring JPA
Creating a JPA entity
Creating stateless EJB
Creating JSF and managed bean
Running the example
Creating EAR for deployment outside Eclipse
Creating a JEE project using Maven
Summary
8. Creating Web Applications with Spring MVC
Dependency injection
Dependency injection in Spring
Component scopes
Installing the Spring Tool Suite
Creating a Spring MVC application
Creating a Spring project
Understanding files created by the Spring MVC project
template
Spring MVC application using JDBC
Configuring datasource
Using the Spring JDBCTemplate class
Creating the Spring MVC Controller
Calling Spring MVC Controller
Mapping data using @ModelAttribute
Using parameters in @RequestMapping
Using the Spring interceptor
Spring MVC application using JPA
Configuring JPA
Creating the Course entity
Creating Course DAO and Controller
Creating the Course list view
Summary
9. Creating Web Services
JAXB
JAXB example
REST web services
Creating RESTful web services using Jersey
Implementing the REST GET request
Testing the REST GET request in browser
Creating a Java client for the REST GET web service
Implementing the REST POST request
Writing a Java client for the REST POST web service
Invoking the POST REST web service from JavaScript
Creating the REST web service with Form POST
Creating a Java client for the form-encoded REST web service
SOAP web services
SOAP
WSDL
UDDI
Developing web services in Java
Creating a web service implementation class
Using the JAX-WS reference implementation (GlassFish
Metro)
Inspecting WSDL
Implementing a web service using an interface
Consuming a web service using JAX-WS
Specifying an argument name in a web service operation
Inspecting SOAP messages
Handling interfaces in an RPC-style web service
Handling exceptions
Summary
10. Asynchronous Programming with JMS
Steps to send and receive messages using JMS
Creating queues and topics in GlassFish
Creating a JEE project for a JMS application
Creating a JMS application using JSP and JSP bean
Executing addCourse.jsp
Implementing a JMS queue sender class
Implementing a JMS queue receiver class
Adding multiple queue listeners
Implementing the JMS topic publisher
Implementing the JMS topic subscriber
Creating a JMS application using JSF and managed beans
Consuming JMS messages using MDB
Summary
11. Java CPU Profiling and Memory Tracking
Creating a sample Java project for profiling
Profiling a Java application
Identifying resource contention
Memory tracking
Eclipse plugins for profiling memory
Summary
Index
Java EE Development with
Eclipse Second Edition
Java EE Development with
Eclipse Second Edition
Copyright © 2015 Packt Publishing

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.

First published: December 2012

Second edition: September 2015

Production reference: 1240915

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.


ISBN 978-1-78528-534-9

www.packtpub.com
Credits
Author

Ram Kulkarni

Reviewers

Aristides Villarreal Bravo

Jeff Maury

Phil Wilkins

Commissioning Editor

Neil Alexander

Acquisition Editor

Kevin Colaco

Content Development Editor

Nikhil Potdukhe

Technical Editor

Tanmayee Patil

Copy Editors

Tani Kothari

Kausambhi Majumdar

Alpha Singh
Project Coordinator

Izzat Contractor

Proofreader

Safis Editing

Indexer

Tejal Soni

Production Coordinator

Manu Joseph

Cover Work

Manu Joseph
About the Author
Ram Kulkarni has more than two decades of experience in
developing software. He has architected and developed many
enterprise web applications, client-server and desktop applications,
application servers, IDE, and mobile applications. Also, he is the
author of Eclipse 4 RCP Development How-to published by Packt
Publishing. He blogs at ramkulkarni.com.

I would like to thank Kevin Colaco and Nikhil Potdukhe of Packt


Publishing for giving me the opportunity to write this book and
helping me decide the content and format.

Writing this book has been a long process, and it would not have
been possible without the support and patience of my family.

I would like to thank my parents, my wife, Vandana, and son,


Akash, for their continuous love and support. This book is
dedicated to Vandana and Akash.
About the Reviewers
Aristides Villarreal Bravo is a Java developer and a member of
the NetBeans Dream Team and Java User Groups leaders. He lives in
Panamá.

He has organized and participated in various national as well as


international conferences and seminars related to Java, JavaEE,
NetBeans, NetBeans Platform, free software, and mobile devices. He
has been a writer of tutorials and blogs on Java, NetBeans, and web
developers.

He has participated in several interviews on sites such as NetBeans,


NetBeans DZone, and javaHispano. Also, he has been a developer of
plugins for NetBeans. He has written technical reviews of many
books on PrimeFaces, that includes Primefaces BluePrints, Packt
Publising.

He is also the CEO of Javscaz Software Developers.

I would like to dedicate this to Oris in the sky.

Jeff Maury is currently working as the technical lead of the Java


team at SysperTec Communication, a French ISV that offers
mainframe integration tools.

Prior to SysperTec Communication, in 1996, he was a cofounder of a


French ISV called SCORT, a precursor to the application server
concept that offered J2EE-based integration tools.

He started his career in 1988 at Marben Products, a French


integration company that specialized in telecommunication protocols.
At Marben Products, he started as a software developer and left as
an X.400 team technical lead and Internet division strategist.
I would like to dedicate my work to Jean-Pierre ANSART, my
mentor, and thank my wife, Julia, for her patience, and my three
sons, Robinson, Paul, and Ugo.

Phil Wilkins has spent over 25 years in the software industry


working for both multinationals and software startups. He started
out as a developer and worked his way up through technical and
developmental leadership roles, primarily in Java-based
environments. Currently, he is working as an enterprise technical
architect in the IT group of a global optical healthcare manufacturer
and retailer using Oracle middleware, cloud, and Red Hat JBoss
technologies.

Outside his work commitments, he has contributed his technical


capabilities to supporting others in a wide range of activities that
include developing community websites, providing input and support
to people authoring books, developing software ideas and
businesses, and reviewing a range of technical books for Packt and
other publishers. Also, he is a blogger and a participant in the Oracle
middleware community.

When not immersed in work and technology, he spends his


downtime pursuing his passion for music and with his wife and two
boys.

I'd like to take this opportunity to thank my wife, Catherine, and


our two sons, Christopher and Aaron, for their tolerance for the
innumerable hours that I've spent in front of a computer
contributing to activities for both my employer and other IT-
related activities that I've supported over the years.
www.PacktPub.com
Support files, eBooks,
discount offers, and more
For support files and downloads related to your book, please visit
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 <[email protected]> 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.

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
Free access for Packt account
holders
If you have an account with Packt at www.PacktPub.com, you can
use this to access PacktLib today and view 9 entirely free books.
Simply use your login credentials for immediate access.
Preface
Java 2 Enterprise Edition (J2EE) has been used to develop enterprise
applications for many years. It provides a standard technique to
implement the many aspects of an enterprise application, such as
handling web requests, accessing database, connecting to other
enterprise systems, and implementing web services. Over the years,
it has evolved and made enterprise application development easier
than before. Its name has changed as well, from J2EE to JEE, after
the J2EE version 1.4. Currently, it is in version 7.

Eclipse is a popular Integrated Development Environment (IDE) for


developing Java applications. It has a version specific to the JEE
development too, which makes it faster to write code and easier to
deploy JEE applications on a server. It provides excellent debugging
and unit testing support. Eclipse has a modular architecture, and
many plugins are available today to extend its functionality for
performing many different tasks.

This book provides you with all the information that you will need to
use Eclipse to develop, deploy, debug, and test JEE applications. The
focus of this book is to provide you with practical examples of how
to develop applications using JEE and Eclipse. The scope of this book
is not limited to JEE technologies, but covers other technologies
used in the different phases of application development as well, such
as source control, unit testing, and profiling.

JEE is a collection of many technologies and specifications. Some of


the technologies are so vast that separate books will have to be
written on them and many have been already written. This book
takes the approach of providing you with a brief introduction to each
technology in JEE and provides links for detailed information. Then it
moves on to develop sample applications using specific technologies
under discussion and explains the finer aspects of the technologies
in the context of the sample applications.
This book could be useful to you if you are new to JEE and want to
get started with developing JEE applications quickly. You will also
find this book useful if you are familiar with JEE but looking for
hands-on approach to use some of the technologies in JEE.
What this book covers
Chapter 1, Introducing JEE and Eclipse, explains in brief the different
technologies in JEE and where they fit in a typical multitier JEE
application. This chapter describes installing Eclipse JEE, Tomcat,
GlassFish, and MySQL, which are used to develop sample
applications in the later chapters.

Chapter 2, Creating a Simple JEE Web Application, describes the


development of web applications using JSP, Servlet, JSTL, and JSF. It
also explains how to use Maven for project management.

Chapter 3, Source Control Management in Eclipse, explains how to


use the SVN and Git plugins of Eclipse for source code management.

Chapter 4, Creating a JEE Database Application, explains the


creation of database applications using JDBC and JPA. You will learn
how to execute SQL statements directly using JDBC, map Java
classes to database tables, and set relationships between classes
using the JPA and database connection pool.

Chapter 5, Unit Testing, describes how to write and run unit tests for
Java applications, mock external dependencies in unit tests, and
calculate the code coverage.

Chapter 6, Debugging a JEE Application, shows the techniques used


to debug JEE applications and covers the debugging support of
Eclipse.

Chapter 7, Creating JEE Applications with EJB, describes the use of


EJBs to code business logic in the JEE applications. Also, it explains
how to connect to remote EJBs using JNDI and inject EJBs into
container-managed beans.

Chapter 8, Creating Web Applications with Spring MVC, describes the


creation of web applications using Spring MVC and how some of the
JEE technologies can be used in a Spring MVC application.

Chapter 9, Creating Web Services, explains the creation of SOAP-


based and RESTful web services in JEE applications. You will learn
how to consume these web services from JEE applications as well.

Chapter 10, Asynchronous Programming with JMS, shows explains


how to write applications to process messages asynchronously. It
describes how to program queues and topics of messaging systems
using JMS and MDBs.

Chapter 11, Java CPU Profiling and Memory Tracking, describes the
techniques for profiling CPU and memory in Java applications to find
performance bottlenecks.
What you need for this book
You will need JDK 1.7 or later, Eclipse JEE 4.4 or later, Tomcat 7 or
later, GlassFish Server 4 or later, and MySQL Community Server 5.6
or later.
Who this book is for
If you are a Java developer who has little or no experience in JEE
application development, or you have an experience in JEE
technology but are looking for tips to simplify and accelerate your
development process, then this book is for you.
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: "We can include other contexts
through the use of the include directive."

A block of code is set as follows:

<body>
<h2>Login:</h2>
<form method="post">
User Name: <input type="text" name="userName">
<br>
Password: <input type="password"
name="password"><br>
<button type="submit"
name="submit">Submit</button>
<button type="reset">Reset</button>
</form>
</body>

When we wish to draw your attention to a particular part of a code


block, the relevant lines or items are set in bold:

try {
Thread.sleep(5000);
} catch (InterruptedException e) {}

Any command-line input or output is written as follows:

>catalina.bat jpda start


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 set a breakpoint for an exception,
select Run | Java Breakpoint Exception and select the Exception
class from the list."

Note
Warnings or important notes appear in a box like this.

Tip
Tips and tricks appear like this.
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.

To send us general feedback, simply e-mail


<[email protected]>, and mention the book's title in the subject
of your message.

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.

Downloading the example code


You can download the example code files from your account at
http://www.packtpub.com for all the Packt Publishing books you
have purchased. If you purchased this book elsewhere, you can visit
http://www.packtpub.com/support and register to have the files e-
mailed directly to you.

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.

To view the previously submitted errata, go to


https://www.packtpub.com/books/content/support and enter the
name of the book in the search field. The required information will
appear under the Errata section.
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.

Please contact us at <[email protected]> with a link to the


suspected pirated material.

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 <[email protected]>, and we will do our best to address
the problem.
Exploring the Variety of Random
Documents with Different Content
When elected to this office, he gave his friends a dinner. The table
was set without one wine-glass upon it. “Where are the glasses?”
asked several of the guests, merrily. “Gentlemen,” said Mr. Wilson,
“you know my friendship and my obligation to you. Great as they are,
they are not great enough to make me forget the rock whence I was
hewn and the pit whence I was dug. Some of you know how the curse
of intemperance overshadowed my youth. That I might escape I fled
from my early surroundings. For what I am, I am indebted to God, to
my temperance vow and to my adherence to it. Call for what you
want to eat, and if this hotel can provide it, it shall be forthcoming;
but wine and liquors can not come to this table with my consent,
because I will not spread in the path of another the snare from which
I escaped.” At this, three rousing cheers rent the room for the man
who had the courage to stand by his noble convictions.

BE A TOTAL ABSTAINER.

It pays to be a total abstainer. “Abstinence,” said Bishop Spalding,


“is but negative, a standing aloof from what hinders or hurts.” The
tendency of drink is to deaden the moral sensibilities. It weakens the
nerves, impairs the brain, feeds disease and at last “bites like a
serpent and stings like an adder.” On the other hand, “temperance is
a bridle of gold, and he who uses it rightly is more like a god than a
man.” Nothing is so conducive to one’s happiness and success in life.
Burdette said, “Honor never has the delirium tremens; glory does not
wear a red nose; fame blows a horn, but never takes one.”
There is a story told of Hannibal, the great Carthaginian, who
fought so long and so successfully against the Romans, that when he
was still a boy of nine years, his father Hamilcar asked him if he
would like to go to the wars with him. The child was delighted at the
thought. “Then,” said his father, “you must swear that you will, as
long as you live, hate the Romans and fight against them.” Young
Hannibal took the oath, and all through life was the bitter enemy of
Rome. He took sides with his father and his country against the
proud foes. The boy who wishes to succeed in life must incorporate
“no liquor” in his resolutions, and under all circumstances refuse it,
choosing rather to be an advocate of ennobling temperance.
It pays to be a total abstainer, because it is right. It is not so much
a question of dollars saved or happiness promoted as a question of
right. Said Amos Lawrence, “Young men, base all your actions upon a
sense of right, and in so doing, never reckon the cost.” In the army,
drinking and treating were common occurrences. One noble captain
had the heroism to decline the oft-proffered treat. An observer asked,
“Do you always reject intoxicating liquor?” “Yes.” “Do you not take it
to correct this Yazoo water?” “Never.” “You must have belonged to
the cold water army in your youth.” “Yes, but I learned something
better than that; my mother taught me that what is right is right, and
coming to Mississippi makes no difference. It would not be right for
me to accept an invitation to drink at home, it is no more right here;
therefore I don’t drink.” Some time after an officer met a lady who
wanted to see one who had met her boy, naming his office and
regiment. He told her of the noble examples of piety which were
found in the army and related the case of the captain. She exclaimed,
“That’s beautiful! That’s beautiful! His mother must be proud of
him.” “Yes, she is, and you are that mother.” Amid grateful tears she
exclaimed, “Is that my boy? Is that my Will? It’s just like him; I knew
he would do so. He was a good boy. He told me he always would be
and I knew he would.” Beautiful trust. Excellent commendation.
Would that it could be said of every boy.
It pays to be a total abstainer for the sake of those who suffer
through intemperance. The good and wise Governor Buckingham, of
Connecticut, gave as his reason for being a total abstainer, “If I
indulge, I am not safe. There is no degradation so low that a man will
not sink to it, and no crime so hellish that he will not commit it,
when he is drunk. But if it could be proved conclusively to my own
mind that I could drink and never be injured, yet I could not be
certain but others, seeing me drink, might be influenced to drink
also, and, being unable to stop, pass on in the path of the drunkard.”
Were many more as considerate there would be less drinking
husbands, and less despised and taunted children because of
drunken fathers.

TWO SAD CASES.


Who would ever think of a two-dollar bill relating a sad story and
giving a pathetic warning? Yet such a bill was brought to the office of
a Temperance Union recently. Written in red ink a poor man told
what liquor had done for him, and what it would do for others. Here
is what it said, “Wife, children and $40,000 all gone. I alone am
responsible. All have gone down my throat. When I was twenty-one I
had a fortune. I am now thirty-five years old. I have killed my
beautiful wife, who died of a broken heart; have murdered my
children with neglect. When this bill is gone I do not know how I am
to get my next meal. I shall die a drunken pauper. ’Tis my last money
and my history. If this bill comes into the hands of any man who
drinks, let him take warning from my ruin.”
When Colonel Alexander Hogeland was sitting in his room at
Louisville some years ago, a lame boy knocked at the door. Said he,
“My father is to be hung to-morrow. The Governor will not pardon
him. He killed my mother when he was drunk. He was a good father,
and we were always happy only when he drank. Won’t you go and
talk and pray with him, and then come to our house when his body is
brought to us?” The Colonel did as requested, and found that the
demon drink was the sole cause of that family’s ruin. The father was
hung, and when the body was taken to the home, he was there. Six
worse than orphans were curled up on a bundle of straw and rags,
crying with a grief that would make the stoutest heart quail. The
crippled boy but fourteen years of age was the sole support of the
little family. The father’s body was brought in by two officers. The
plain board coffin was rested upon two old chairs, and the officers
hurried out of the room and away from the terrible scene. “Come,”
said the crippled boy, “come and kiss papa’s face before it gets cold;”
and all six children kissed the face of that father, and, smoothing the
brow, sobbed in broken accents, “Whiskey did it. Papa was good, but
whiskey did it.”
My boy, be temperate. Do your best to stop another such scene.
Sign the pledge. Talk against, work against, and when able, vote
against the liquor interests. “Woe to the man or boy who becomes a
slave to liquor,” said General Phil. Sheridan. “I had rather see my son
die to-day than to see him carried to his mother drunk. One of my
brave soldier-boys on the field said to me just before a battle, ‘Tell
mother, if I am killed, I have kept my promise to her. Not one drink
have I ever tasted.’ The boy was killed. I carried the message with my
own lips to the mother. She said, ‘General, that is more glory for my
boy than if he had taken a city.’”
CHAPTER IX
Be Free of the Weed

INTRODUCTION TO CHAPTER IX

By Asa Clark
The influence of example is always a powerful one. With such wide-
spread habits as those of tobacco smoking and chewing it is little
wonder why so many boys indulge. They see only the pleasureable
side of these habits; but it devolves upon us, from our daily
experience with “the ills that flesh is heir to” to make known to you
young friend the dangers lurking in these seductive vices. We doctors
are often consulted by victims of these habits, who are quite
surprised upon stopping the use of tobacco to find to what a degree
they have become enslaved. That the baneful effect from the use of
tobacco is universally recognized is evidenced by the fact of its
prohibition in schools and naval academies, and by the laws now in
force in several of the States and also in Germany, making it illegal to
sell tobacco to any under sixteen years of age.
Tobacco is especially injurious to those subjected to severe mental
strain or physical training, and to such as are engaged in delicate
manual work. The symptoms are many. Digestion is sometimes
greatly impaired. On the heart the effect is very noticeable. My advice
to boys is, not to use tobacco in any form.
CHAPTER IX
Be Free of the Weed

An old monk was once walking through a forest, with a scholar by his
side. He suddenly stopped and pointed to four plants that were close
at hand. The first was just beginning to peep above the ground, the
second had rooted itself well into the earth, the third was a small
shrub, while the fourth was a full-sized tree. Turning to his young
companion he said: “Pull up the first.” The boy easily did so. “Now
pull up the second.” The youth obeyed, but not so easily. “And now
the third.” The boy had to put forth all his strength, and use both
arms, before he succeeded in uprooting it. “And now,” said the
master, “try your hand upon the fourth.” But although the lad
grasped the trunk of the tree in his arms, he scarcely shook its leaves,
and found it impossible to tear its roots from the earth. Then the
wise old man explained to his scholar the meaning of the four trials.
“This, my son, is just what happens with our bad habits and
passions. When they are young and weak, one may, by a little
watchfulness over self, easily tear them up; but if we let them cast
their roots deep down into our souls, no human power can uproot
them. Only the almighty hand of the Creator can pluck them out. For
this reason, my boy, watch your first impulses.”

ORIGIN AND POISON OF TOBACCO.

Tobacco-using is frequently the beginning and stepping-stone to


other vices. Many who have hesitated in entering a saloon or
gambling place have not done so in the use of tobacco.
The origin of tobacco is shrouded in mystery. Mezen was of the
opinion that the Chinese used it from antiquity. Dr. Lizards says it
existed in Asia from early times. Columbus in his discovery of Cuba
tells how he found the natives “carrying with them firebrands,
puffing smoke from their mouths and noses, which he supposed to
be the way they had of perfuming themselves.”
An ancient tradition relates that there was once a Mohammedan
passing along who found a viper lying in his path, almost chilled to
death. In pity the Moslem stooped, picked up the serpent, and put it
into his bosom to warm it. After a while the viper fully revived and
became aware of its situation. He said to the man, “I’m going to bite
you.” “O, no! please don’t,” said the man. “If I had not taken you up
and warmed you, you would even now have been chilled to death.”
The viper replied, “There has been a deadly enmity existing between
your race and mine ever since the world began, and by Allah, I am
going to bite you.” “Very well,” said the man, “since you have sworn
by Allah I will not prevent you, but bite me here on my hand.” He did
so, and the man immediately placed the wound to his lips and sucked
the venom out and spit it on the ground; and from the place where he
spit the poison a little plant sprang up which was—tobacco.
Though this story be not true, yet true it is that tobacco contains a
very strong poison, known as nicotine, supposed to be “the juice of
cursed Hebanon,” referred to in Hamlet. In one pound of Kentucky
and Virginia tobacco, there is, according to Dr. Kellog, an average of
three hundred and eighty grains of this poison, which is estimated to
kill two hundred and fifty people if applied in its native form. “A
single leaf of tobacco dipped in hot water,” said Dr. Coles, “and laid
upon the pit of the stomach will produce a powerful effect by mere
absorption from the surface. By being applied to a spot where the
scarf skin, or external surface of the skin is destroyed, fearful results
are liable to follow, and no man can use it without being affected by
it.”

HOW TOBACCO INJURES.

Tobacco injures physically. “No less,” said Dr. Shaw, “than eighty
diseases arise from it, and twenty-five thousand lives perish annually
from it.” A young man asked Wendell Phillips if he should smoke,
and that statesman answered: “Certainly not. It is liable to injure the
sight, to render the nerves unsteady, to enfeeble the will and enslave
the nature to an imperious habit likely to stand in the way of duty to
be performed.” Many professors of leading colleges have asserted
with figures to prove that boys who begin the tobacco habit are
stunted physically and never arise to the normal bodily development.
Tobacco injures mentally. Beecher said, “A man is what he is, not
in one part, but all over.” And to have a strong mind, one needs a
strong stomach. By the use of tobacco, the stomach is outraged and
the brain becomes narcotized, “the intellect of which,” said Prof.
Gause, “becomes duller and duller until at last it is painful to make
any intellectual effort and one sinks into a sensuous or sensual
animal, whose greatest aspiration is to benumb the nerves and befog
the intellect.” Such assertions may be ridiculed, but as two and two
make four, they are facts. The French government prohibits its use
by students in the public schools. The Swiss government prohibits its
sale to juniors. During the last fifty years no user of it has graduated
from Yale, Harvard or Amherst at the head of his class. Professor
Seely, of the Iowa State Normal, said, “I have not met a pupil who is
addicted to the habit who will go through a single day’s work and
have good lessons. I have had numbers of cases in which they have
remained in the same grade for four successive years and then they
were not ready to be advanced into the next higher grade.” Dr.
Herbert Fisk, of the Northwestern University, Chicago, declared, “A
somewhat careful observation of facts has convinced us that students
who get low marks do so through the use of tobacco. Last year not
one of the boys who used tobacco stood in the first rank of
scholarship. This has been the usual rule. One year, out of thirty-
three pupils in the first rank of scholarship, there was but one user of
tobacco.” Dr. Charles A. Blandchard, President of Wheaton College,
said, “Among our former students who are now physicians, the one
who has the largest income never touched tobacco. Two are now
judges of courts in large cities, with salaries of six or seven thousand
dollars. They do not and have not for years used tobacco. Other men,
who after graduation, became smokers, do not exhibit the same
mental ability. They are, some of them, very able men, but they suffer
in mind from the use of tobacco.”
Tobacco injures morally. It heads the list of vices. It is the first step
to bad companionship, lewd conversation and liquor drinking. The
latter and tobacco-using are twin habits; and do you wonder at it
when tobacco is saturated with Jamaica rum; while “plug” tobacco
which is composed of licorice, sugar, cabbage, burdock and the
refuse of tobacco leaves and other weeds, is often found nailed at the
bottom of whiskey barrels? Said Horace Greeley, “Show me a
drunkard who does not use tobacco, and I will show you a white
blackbird.” Many medical witnesses testify that tobacco using and
drinking are kindred habits. When an investigation was made in the
State prison at Auburn, N. Y., some years ago, out of six hundred
prisoners confined there for crimes committed when they were
under the influence of strong drink, five hundred testified that they
began their intemperance by the use of tobacco. “In all my travels,”
said John Hawkins, “I never saw but one drunkard who did not use
tobacco.” “Pupils under the influence of the weed,” said Professor
Seely, “are not truthful, practice deception and can not be depended
upon. The worst characteristic of the habit is a loss of personal self-
respect and of personal regard for the customs and wishes of ladies
and gentlemen, especially when among strangers.”

HOW TOBACCO IS USED.

Tobacco is used in two ways, smoking and chewing. Both are filthy,
sickening habits, the latter being the more disgusting. For any boy to
chew is to exemplify bad manners doubtless influenced by bad
morals. A few years ago a call was issued from London, to the
scientists of the world to assemble for the discussion of whatever
scientific subjects might be presented, every statement to undergo
rigid scrutiny. One member said: “Tobacco is not injurious. I have
chewed it for fifty years, and my father for sixty years, without
perceptible damage. All this cry about it is nonsense.” The chairman
answered: “Step forward, sir, and let us canvass this matter
thoroughly. How much do you chew?” “I chew regularly three quids
per day, of about this size,” cutting off three pieces from his plug.
One of these was given to a Russian and another to a French chemist,
with “please return the extract.” Then the presiding officer said, “Will
any young man unaccustomed to the use of tobacco, chew this third
quid before the audience? Here are four pounds ($20) to anyone who
will.” A young man stepped forward. The audience was requested to
scan his looks, cheeks, eyes and general appearance, before he took
it, and closely watch its effects. He soon became pale from sickness,
then vomited and fainted before the assembly. The extract from one
quid was given to a powerful cat. He flew wildly around, and died in
a few minutes. The other extract was put upon the tongue of a
premium dog, which uttered a yelp, leaped frantically, laid down and
expired.

PIPE, CIGAR AND CIGARETTE.

Smoking tobacco is used in three ways, in the pipe, cigar and


cigarette. Neither adds beauty to the face or is conducive to health. It
is stated on good authority that Senator Colfax was stricken down in
the Senate chamber as the result of excessive smoking and from that
time smoked no more. It caused the death of Emperor Frederick
through cancer of the lip, killed Henry W. Raymond, of the New York
Times, through heart failure, and struck President Orton and
General Dakin down with paralysis of the heart. Rousseau says,
“Excessive smoking cut short the life of the poet Berat through
nervous effect.” It wielded its sceptre over Royer Collard who died in
the dawn of a most brilliant career through his loved cigar. It
produced cancer of the throat, which ended the life of President
Grant and Robert Louis Stevenson. “Out of one hundred and twenty-
seven cancers cut from the lips of persons in a short time,” says the
Medical Times, “nearly all were from the lips of smokers.” What a
dangerous luxuriant weed! How quaintly yet truthfully “Billy” Bray,
the Cornish miner, said: “If God intended a man to smoke, He would
have placed a chimney at the top of his head to let the smoke out!”
Tobacco smoke is poisonous. It contains one of the deadliest
vapors known to man, which so frequently injures the throat. It has
also a poisonous oil which secretes itself in the stem of the pipe. Dr.
Brodie says that he applied two drops of this oil to the tongue of a
cat, which killed it in fifteen minutes. Fontana made a small incision
in the leg of a pigeon and paralyzed it by applying a drop of this oil.
The reason for so many pale-faced, nervous men can be traced to this
cause.
But supposing that smoking a pipe is not injurious, is it not
unbecoming a gentleman? Napoleon said, “It was only fit for
sluggards.” Gouverneur Morris, being asked if gentlemen smoked in
France, replied, “Gentlemen, sir! Gentlemen smoke nowhere!”
Horace Mann when addressing the teachers of an Ohio school, said,
“The practice is unfit for a scholar or a gentleman.”
To smoke a cigar may be considered more refined than the use of a
pipe. But whoever heard of refining a vice? Horace Greeley, when
addressing a class of young men on the subject, said, “A cigar is a
little roll of tobacco leaves with a fire at one end and a fool at the
other.” At which end should refinement begin? The cigar is more
directly injurious than the pipe because the user inhales more of the
smoke, sucks the weed, and a greater proportion of the poisonous
substance is drawn into the mouth and filtered through the system,
causing dyspepsia, vitiated taste, congestion of the brain, loss of
memory, nervousness and many other diseases.

THE CIGARETTE.

The worst of all, however, is the cigarette. Sometime ago in New


York, an Italian boy was brought before a justice as a vagrant. He was
charged with picking up cigar stumps from the streets and gutters.
To prove this the policeman showed the boy’s basket, half full of
stumps, water-soaked and covered with mud. “What do you do with
these?” asked his honor. “I sell them to a man for ten cents a pound,
to be used in making cigarettes.” This is not all. In the analysis of
cigarettes, physicians and chemists have been surprised to find
opium, which is used to give a soothing effect, and creates a passion
for strong drink. The wrapper warranted to be rice paper is
manufactured from filthy scrapings of rag pickers, and is so cheap
that a thousand cigarettes can be wrapped at a cost of two cents. By
the use of this dangerous thing, thousands of boys have been
mentally and morally ruined. A distinguished French physician
investigated the effect of cigarette-smoking in thirty-eight boys
between the ages of nine and fifteen. Twenty-seven presented
distinct symptoms of nicotine poisoning. Twenty-two had serious
disorders and a marked appetite for strong drink. Three had heart
affection. Eight had very impure blood. Twelve were subject to
bleeding of the nose. Ten had disturbed sleep and four had
ulceration of the mouth.
Several years ago Representatives Cockran, Cummings and
Stahlnecker, of New York, petitioned the Government to suppress
cigarettes by imposing an internal revenue tax upon them. During
one year they cut clippings from the papers concerning one hundred
young men, mostly under sixteen, who died from the effects of these
murderous things, while another hundred were consigned to insane
asylums for the same cause. Because of such harmful effects
Germany has legislated against it. France, West Point and Annapolis
have closed their doors to the boy that uses it and more than a score
of States in the Union have prohibited their sale.

WHY HE FAILED.

A young man who had failed by only three points in an


examination for admission to the marine corps appealed to his
representative in Congress for assistance, and together they went to
see the Secretary of the Navy, in the hope of securing what is known
as a “re-rating” of his papers. “How many more chances do you
want?” asked Secretary Long. “This is your third time.” And before
the young man had a chance to answer, the Secretary continued,
“How do you expect to get along in the world when you smoke so
many cigarettes? Your clothes are saturated with their odor. Pull off
your gloves and let me see your fingers. There, see how yellow they
are!” pointing to the sides of the first and second fingers. Before the
young man found his tongue to offer an explanation the Secretary
asked if he drank. “Only once in a while,” was his sheepish reply. Mr.
Long then invited the Congressman into his private office, and while
offering to do everything that he could added, “I am sick of trying to
make anything of these boys that are loaded with cigarette smoke
and ‘drink once in a while.’ They are about hopeless, it seems to me.”
As they left the department building the young man, half apologizing
for his poor showing, remarked, “Drinking, my father says, is the
bane of the navy.” “I guess it is,” replied the Congressman. “It is the
bane everywhere else, and I should think quite likely it would be in
the navy.”
My boy, let tobacco in any form alone. It is a dirty, dangerous,
expensive habit. It costs this country six hundred and fifty million
dollars annually. Worse than the cost, however, is the injury to body,
mind and soul. Figures cannot enumerate nor scales estimate the evil
it produces. A story is told of a giant who fell in with a company of
pigmies. He roared with laughter at their insignificant stature and
their magnificent pretensions. He ridiculed with fine scorn and
sarcasm their high-sounding threats. When he fell asleep they bound
him with innumerable threads and when he awoke he found himself
a helpless captive.
My boy, ridicule not the contents of this chapter. They are all
important. Heed the warning cry and shun the weed. Many a fair lad
has been stunted in development, lost to ambition, sunk to all
appeals to honor when once in its grasp; therefore let it alone. The
God that made your mouth made the weed, but He did not make the
mouth for the tobacco, nor the tobacco for the mouth. If addicted to
it, I charge you stop right now.
“To do so, is to succeed—our fight
Is waged in Heaven’s approving sight—
The smile of God is victory.”
CHAPTER X
Be Persevering

INTRODUCTION TO CHAPTER X

By Marshall Field
A boy should carefully consider his natural bent or inclination, be it
business or profession. In other words, take stock of himself and
ascertain, if possible, for what he is adapted, and endeavor to get into
that vocation with as few changes as possible. Having entered upon
it, let him pursue the work in hand with diligence and determination
to know it thoroughly, which can only be done by close and
enthusiastic application of the powers at his command; strive to
master the details and put into it an energy directed by strong
common sense so as to make his services of value wherever he is. Be
alert, and ready to seize opportunities when they present themselves.
The trouble with most young people is, that they do not learn
anything thoroughly, and are apt to do the work committed to them
in a careless manner; forgetting that what is worth doing at all is
worth doing well, they become mere drones, and rely upon chance to
bring them success. There are others who want to do that for which
they are not fitted, and thus waste their lives in what may be called
misfit occupations. Far better be a good carpenter or mechanic of any
kind than a poor business or professional man.
CHAPTER X
Be Persevering

“All things come to him who waits,” is a pretty sentiment, but


practical application hews the way. No great book was ever written at
one sitting. Edward Gibbon was twenty years composing “The Rise
and Fall of the Roman Empire,” and Noah Webster was thirty-five
years in producing the dictionary that bears his name. No great
address was the result of a moment’s inspiration. When Dr. Lyman
Beecher was asked how long he was preparing a certain speech which
had electrified his audience, he answered, “Forty years.” No great
invention sprang from a dream. George Stephenson was fifteen years
making improvements on his locomotive before he won the victory of
Rainhill, and when asked by a company of young men how they
might succeed, answered, “Do as I have done; persevere.”
“Attempt the end, and never stand to doubt;
Nothing’s so hard but search will find it out.”

THE CHIEF FOREMAN.

One of the great manufacturing firms in Glasgow, Scotland, owes


its prosperity largely to a boy whom they engaged. The story runs
that thirty years ago a barefoot, ragged boy presented himself at the
desk of the chief partner and asked for work as an errand boy.
“There’s a deal of running to be done, and you will need a pair of
shoes first,” said Mr. Blank. The boy, with a grave nod, disappeared.
He lived by doing odd jobs in the market and slept under the stalls.
Two months passed before he had saved money enough to buy the
shoes. He then presented himself to Mr. Blank and held out a
package. “I have the shoes, sir,” he quietly said. “Oh!” the proprietor
remarked, “you want a place? Not in those rags, my lad. You would
disgrace the house.”
The boy hesitated a moment and then went out without a word. Six
months passed before he returned, decently clothed in coarse but
new garments. Mr. Blank’s interest was aroused. For the first time he
looked at the lad attentively. His thin, bloodless face showed that he
had stinted himself of food in order to buy those clothes. On
questioning him, the manufacturer found to his regret that he could
not read or write. “It is necessary that you should do both before we
could employ you in carrying home packages,” he said. “We have no
place for you.” The lad’s face grew paler, but without a word of
complaint he left. He now found employment in a stable and went to
night school. At the end of a year he again presented himself before
Mr. Blank. “I can read and write,” he joyfully said. “I gave him the
place,” the employer remarked, years after, “with the conviction that
in process of time he would take mine, if he made up his mind to do
it. Men rise slowly in Scotland, but to-day he is our chief foreman.”
How true as St. Paul says in Myer’s poem:
“Let no man think that sudden in a minute
All is accomplished and the work is done;
Though with thine earliest dawn thou shouldst begin it
Scarce were it ended in thy setting sun.”

WHAT IT MEANS.

No word should be more prominent in any boy’s vocabulary than


perseverance. Industry is a good word, but one may be industrious,
without being persevering, but he cannot be persevering without
being industrious. Perseverance means persistence in any design,
steadiness in pursuit, constancy in progress. It is the bending of all
energies in one direction till the thing is accomplished. Demosthenes
was a stammerer. He would be an orator, and with pebbles in his
mouth walked the seashore articulating, until when Philip
threatened to invade Athens, he with matchless oratory so appealed
to the Athenians that they cried, “Let us fight Philip.” Fight they did,
and Greece was saved. James Watt was poor and unlettered. He sees
the lid of the kettle rise and fall by the power of steam, and from that
day bends his mind and hand until in after years he creates a steam
engine. Gutenberg beholds the coarse types of Lawrence Coster and
declares he can do better. After much persecution by superstitious
persons, he shuts himself up in a cell of St. Arbogast monastery and
works early and late till he has carved lead type, made an ink roller
and built a printing press. Marcus Morton wants to be Governor of
Massachusetts. Seventeen times he runs for the position and at last
succeeds. Cyrus Field spends eleven years before he succeeds in
designing and laying the Atlantic cable. Edison makes eighteen
hundred experiments before he discovers the proper substance for
the incandescent light, and six thousand before he solves the
problem of preparing the products of the great iron mills for the blast
furnace. The boy who expects to succeed may have to try many times
and face many opposing forces, but as adverse winds aid the kite to
fly, so difficulties are usually blessings in disguise. To climb Alpine
peaks “will put to proof the energies of him who would reach the
summit.”

PERSEVERANCE A NECESSITY.

Nothing guarantees success like persistency; it is more effective


than brilliancy. The faculty of sticking and hanging on when
everybody else lets go is one of the secrets of success. When Congress
and the country were excited over President Johnson’s effort to drive
Mr. Stanton from the Cabinet because he opposed the President’s
policy in the South, Charles Sumner sent the Secretary this message,
“Stanton stick.” He did so to the benefit of the nation. The boy who
expects to make his mark in the world must be a “sticker.” He must
“keep everlastingly at it.” With determination he must conquer
opposition and annihilate obstacles. With Pitt he must trample on
so-called impossibilities. “Impossible is not found in the dictionary
of fools,” said Napoleon, when told that the Alps stood in the way of
his conquest. “Impossible,” cried Chatham, when confined to his
room with gout, “who talks to me of impossibilities?” Lord Anson
had sent word that it was impossible to fit out a naval expedition
within a prescribed period. “Tell him that he serves under a minister
who treads on impossibilities.” When Daniel Webster was speaking
at Bunker Hill, the crowd became so large and pressed so near to him
that he shouted: “Keep back! Keep back!” “It is impossible,” cried
some one in the crowd. The orator looked at them a moment and
then said, “Nothing is impossible at Bunker Hill.” And few things are
impossible to persevering lads.
Tamerlane was once forced to take shelter from his enemies in a
ruined building, where he sat discouraged for hours. His attention
was at last attracted by an ant that was carrying a grain of corn larger
than itself up a high wall. Sixty-nine times did the grain fall, but the
insect persevered, and the seventieth time it reached the top. That
sight instilled courage in the bosom of Tamerlane. Robert Bruce, of
Scotland, had a similar experience. On one occasion he was so
harassed by the English that he was compelled to take shelter in a
barn over night. In the morning he saw a spider climbing a beam of
the roof. Twelve times in succession did it fall but the thirteenth time
it succeeded in gaining the top. The object lesson impressed Bruce.
Rising, he said: “This spider has taught me perseverance. I will
follow its example. Twelve times I have been beaten, and the
thirteenth time I may succeed.” He rallied his forces, met and
defeated Edward and was crowned king.
Christopher Columbus conceived the idea that undiscovered
continents existed west of the Atlantic, and he determined to test the
truth of his theory. He had many difficulties to contend with, such as
poverty and repeated discouragements. The Court of Portugal
disappointed him, his native city of Genoa would not render him aid,
and the city of Venice refused him. At last he laid his cause before
Ferdinand and Isabella, King and Queen of Spain, and he was about
to give up and repair to France, when the Queen sold her jewels to
defray the expenses of the expedition. Thus assisted, he turned his
ships westward and started. On board his vessel he had ignorance,
superstition and mutiny to contend with, and this continued until the
cry of “Land! Land!” came from the lookout at the top of the mast;
then a new world and a glorious triumph crowned his efforts.

PERSEVERANCE IS REWARDED IF PATIENTLY


PURSUED.

Great results are not accomplished in a moment. Sowing precedes


reaping. The wheat must first be sifted and crushed in the mill before
it is baked into bread. The railroad that runs from the Atlantic to the
Pacific coast is but numerous steel rails placed one before the other.
The President in the White House, the general in the army, the judge
on the bench, the orator on the platform reached their positions, not
by a hop-skip-and-jump manner, but by perpetual pushing and
concentration of their energies in one direction. There might have
been times when these were side-tracked and their procedure
necessarily slow, but as soon as the main track was clear, or as soon
as they had cleared it, they went forth with undaunted persistence
realizing as the Italian proverb reads: “Who goes slowly goes long,
and goes far,” and contentment was not theirs till the goal was
reached. To such of like determination, in Richelieu’s words:
“Fail! Fail!
In the lexicon of youth, which Fate reserves
For a bright manhood, there is no such word as fail!”

True, many persevering persons fail as men call failure, but it is


only like the tiger’s crouch before a high leap. Discovering the
bounds through a sense of such, life thenceforth turns all its
capacities into right and effective uses. “To change and to change for
the better, are two different things,” says an old German proverb.
Pestalozzi, the great educator, made several failures in early life,
which he made stepping stones to success. Washington’s military
career was a series of failures. He shared in Braddock’s defeat at Fort
Duquesne. He was beaten at Long Island, driven from New York and
forced to retreat through New Jersey and across the Delaware, when
he suddenly turned like a lion at bay, recrossed the icy stream and
overwhelmed the Hessians at Trenton. This rapid movement and his
attack at Germantown first led observers like Frederick the Great to
recognize his military genius. Peter Cooper failed in making hats,
failed as a cabinet maker, locomotive builder and grocer, but as often
as he failed he tried and tried again until he could stand upon his feet
alone, then crowned his victory by giving a million dollars to help
poor boys in time to come. Horace Greeley tried three or four lines of
business before he founded the Tribune, and made it worth a million
dollars. Patrick Henry failed as merchant and farmer, but resorting
to law and politics was a brilliant success. Stephen A. Douglas made
dinner tables, bedsteads and bureaus many a long year before he
made himself a “giant” on the floor of Congress. Abraham Lincoln
failed to make both ends meet by chopping wood, failed to earn his
salt in the galley-slave life of a Mississippi flat-boatman; he had not
even wit enough to run a grocery, and yet he made himself the
grandest character of the nineteenth century, an emancipator of four
million slaves. General Grant failed at everything. At the age of
thirty-nine he was obscure, at forty-three his picture hung in the
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

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.

Let us accompany you on the journey of exploring knowledge and


personal growth!

textbookfull.com

You might also like