Java EE 5 Development using GlassFish Application Server 1st Ed. Edition David R. Heffelfinger pdf download
Java EE 5 Development using GlassFish Application Server 1st Ed. Edition David R. Heffelfinger pdf download
https://ebookfinal.com/download/java-ee-5-development-using-
glassfish-application-server-1st-ed-edition-david-r-heffelfinger/
https://ebookfinal.com/download/java-ee-7-development-with-
netbeans-8-3rd-edition-david-r-heffelfinger/
https://ebookfinal.com/download/the-java-ee-5-tutorial-2nd-ed-edition-
eric-jendrock/
https://ebookfinal.com/download/jasperreports-reporting-for-java-
developers-1st-edition-david-heffelfinger/
https://ebookfinal.com/download/java-ee-development-with-eclipse-2nd-
edition-ram-kulkarni/
Websphere J2ee Application Development for the IBM Server
Iseries Server 1st ed Edition Ibm Redbooks
https://ebookfinal.com/download/websphere-j2ee-application-
development-for-the-ibm-server-iseries-server-1st-ed-edition-ibm-
redbooks/
https://ebookfinal.com/download/websphere-application-server-
express-v6-developers-guide-and-development-examples-1st-ed-edition-
bill-moore/
https://ebookfinal.com/download/java-1-5-tiger-a-developer-s-
notebook-1st-ed-edition-david-flanagan/
https://ebookfinal.com/download/beginning-ios-5-application-
development-1st-edition-wei-meng-lee/
https://ebookfinal.com/download/java-ee-6-pocket-guide-1st-edition-
arun-gupta/
Java EE 5 Development using GlassFish Application
Server 1st Ed. Edition David R. Heffelfinger Digital
Instant Download
Author(s): David R. Heffelfinger
ISBN(s): 9781847192608, 1847192602
Edition: 1st Ed.
File Details: PDF, 7.30 MB
Year: 2007
Language: english
Java EE 5 Development using
GlassFish Application Server
David R. Heffelfinger
BIRMINGHAM - MUMBAI
Java EE 5 Development using GlassFish
Application Server
The complete guide to installing and configuring the GlassFish
Application Server and developing Java EE 5 applications to be
deployed to this server
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, Packt Publishing,
nor its dealers or 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 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-847192-60-8
www.packtpub.com
Reviewers Indexer
Meenakshi Verma Monica Ajmera
Kim Mark Lewis
Proofreader
Acquisition Editor Chris Smith
Priyanka Baruah
Production Coordinator
Technical Editor Shantanu Zagade
Ajay.S
Cover Designer
Editorial Manager Shantanu Zagade
Dipali Chittar
Project Manager
Patricia Weir
About the Author
I would also like to thank the Packt Publishing staff for their help
and support in getting this book published. I am especially grateful
to Priyanka Baruah, who first contacted me regarding this book,
Patricia Weir for her patience regarding the several changes to the
book's outline, Sagara Naik for keeping track of the schedule. I
would also like to thank the technical reviewers, Kim Lewis and
Meenakshi Verma for providing excellent suggestions. Last but not
least, I would also like to thank Douglas Paterson, who gave me the
opportunity to get my first book published (and who wished to
work on a second book with me) for supporting my decision to work
on this book.
About the Reviewers
Meenakshi Verma has more than nine years of experience in Analysis, Design,
Development, and Implementation of stand-alone and web-based applications using
various languages like Java-based technologies, C, and BBx. She is proficient in
developing applications using J2EE technologies.
Meenakshi has also done the technical review of the Packt book titled Jasper Reports
for Java Developers by David Heffelfinger.
Kim Mark Lewis has been a consultant since 1991 to the US Federal Government,
working on financial and human resource systems for a variety of agencies such
as NASA, the Federal Communications Commission, the Federal Reserve Board,
the Department of the Army, and the Department of the Navy. Kim divides his
professional programming life between Java and .NET. He is married and has one
daughter and is currently living in the Washington D.C. area.
Table of Contents
Preface 1
Chapter 1: Getting Started with GlassFish 5
Overview of Java EE and GlassFish 5
GlassFish Advantages 6
Obtaining GlassFish 7
Installing GlassFish 8
GlassFish Dependencies 8
Performing the Installation 8
Verifying the Installation 10
Deploying Our First Java EE Application 12
Deploying an Application through the Web Console 12
Undeploying an Application through the Web Console 17
Deploying an Application through the Command Line 19
Undeploying an Application through the Command Line 20
GlassFish Domains Explained 21
Creating Domains 21
Deleting Domains 23
Stopping a Domain 23
Setting Up Database Connectivity 24
Setting Up Connection Pools 24
Summary 31
Chapter 2: Servlet Development and Deployment 33
Writing Our First Servlet 34
Compiling the Servlet 36
Configuring the Servlet 37
Packaging the Web Application 38
Deploying the Web Application 40
Testing the Web Application 40
Processing HTML Forms 42
Table of Contents
[ ii ]
Table of Contents
[ iii ]
Table of Contents
<h:selectOneMenu> 218
<h:selectOneRadio> 218
Additional JSF Tag Libraries 218
Summary 219
Chapter 7: Java Messaging Service 221
Setting Up GlassFish for JMS 221
Setting Up a JMS Connection Factory 221
Setting Up a JMS Message Queue 226
Setting Up a JMS Message Topic 227
Message Queues 228
Sending Messages to a Message Queue 228
Retrieving Messages from a Message Queue 232
Asynchronously Receiving Messages from a Message Queue 234
Browsing Message Queues 237
Message Topics 239
Sending Messages to a Message Topic 239
Receiving Messages from a Message Topic 241
Creating Durable Subscribers 243
Summary 246
Chapter 8: Security 247
Security Realms 247
Predefined Security Realms 248
admin-realm 249
The file Realm 251
The certificate Realm 265
Defining Additional Realms 273
Defining Additional File Realms 273
Defining Additional Certificate Realms 274
Defining an LDAP Realm 275
Defining a Solaris Realm 276
Defining a JDBC Realm 277
Defining Custom Realms 283
Summary 289
Chapter 9: Enterprise JavaBeans 291
Session Beans 292
Simple Session Bean 292
A More Realistic Example 295
Invoking Session Beans from Web Applications 298
Message-Driven Beans 301
Transactions in Enterprise Java Beans 302
Container-Managed Transactions 302
Bean-Managed Transactions 306
[ iv ]
Table of Contents
[]
Preface
Project GlassFish was formally announced at the 2005 JavaOne conference. Version
one of the GlassFish application server was released to the public approximately
a year later, at the 2006 JavaOne conference. GlassFish version one became the
reference implementation for the Java EE 5 specification, and as such, was the first
available application server compliant with this specification.
While releasing the first available Java EE 5 application server was a tremendous
accomplishment, the first version of GlassFish lacked some enterprise features such
as clustering and High Availability. GlassFish version 2, released in September 2007,
added these and other enterprise features, in addition to other features such as an
enhanced web based administration console.
This book will guide you through the development and deployment of Java
EE 5-compliant application on GlassFish version 2. It also covers application
development using frameworks that build on top of the Java EE 5 specification,
including Facelets, Ajax4jsf, and Seam.
Chapter 2 covers how to develop server-side web applications using the Servlet API.
Chapter 3 explains how to develop web applications using JavaServer Pages (JSPs),
including how to develop and use JSP custom tags.
Chapter 5 explains how to use the JSP Standard Tag Library (JSTL) when developing
JavaServer Pages.
Chapter 6 covers how to develop applications using the JavaServer Faces (JSF)
component framework to build web applications.
Chapter 8 covers securing J2EE applications through the Java Authentication and
Authorization Service (JAAS).
Chapter 9 discusses how to develop Enterprise Java Beans that adhere to the
EJB 3 specification.
Chapter 10 explains how to develop and deploy web services that conform to the
JAX-WS 2.1 specification.
Conventions
In this book, you will find a number of styles of text that distinguish between
different kinds of information. Here are some examples of these styles, and an
explanation of their meaning.
There are three styles for code. Code words in text are shown as follows: "We can
include other contexts through the use of the include directive."
[]
Preface
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items will be made bold:
</head>
<body>
<p>Server date and time: <% out.print(new Date()); %>
</p>
</body>
New terms and important words are introduced in a bold-type font. Words that you
see on the screen, in menus or dialog boxes for example, appear in our text like this:
"clicking the Next button moves you to the next screen".
Reader Feedback
Feedback from our readers is always welcome. Let us know what you think about
this book, what you liked or may have disliked. Reader feedback is important for us
to develop titles that you really get the most out of.
If there is a book that you need and would like to see us publish, please send
us a note in the SUGGEST A TITLE form on www.packtpub.com or email
suggest@packtpub.com.
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 on www.packtpub.com/authors.
[]
Preface
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.
Errata
Although we have taken every care to ensure the accuracy of our contents, mistakes
do happen. If you find a mistake in one of our books—maybe a mistake in text or
code—we would be grateful if you would report this to us. By doing this you can
save other readers from frustration, and help to improve subsequent versions of
this book. If you find any errata, report them by visiting http://www.packtpub.
com/support, selecting your book, clicking on the Submit Errata link, and entering
the details of your errata. Once your errata are verified, your submission will be
accepted and the errata added to the list of existing errata. The existing errata can be
viewed by selecting your title from http://www.packtpub.com/support.
Questions
You can contact us at questions@packtpub.com if you are having a problem with
some aspect of the book, and we will do our best to address it.
[]
Getting Started with
GlassFish
In this chapter, we will discuss how to get started with GlassFish. Some of the topics
discussed in this chapter are:
Commercial application servers include BEA's Weblogic, IBM's Websphere, and the
Oracle Application Server.
Getting Started with GlassFish
Like all Java EE-compliant application servers, GlassFish provides the necessary
libraries to allow us to develop and deploy Java applications compliant with
Java EE specifications.
GlassFish Advantages
With so many options in Java EE application servers, why choose GlassFish? Besides
the obvious advantage of GlassFish being available free of charge, it offers the
following benefits:
[]
Chapter 1
Obtaining GlassFish
GlassFish can be downloaded from https://glassfish.dev.java.net by clicking
an image that looks like this:
The image should be near the top right window of the page.
After clicking on the image, and scrolling down to a section titled Binary builds
around the middle of the resulting page, you should see links to download GlassFish
for several different architectures. Currently Solaris Sparc, Solaris x86, Windows,
Linux, and MacOS are supported.
[]
Discovering Diverse Content Through
Random Scribd Documents
grandeur of the mountain-torrent, I should at that time have given a
preference to a little of the “mountain dew.”
Presently, I heard the shrill sound of the fife issuing from underneath
the sacks, to the tune of “Over the hills and far away,” and was
about requesting the driver to stop, until I joined my companion in
his lair, when a smart lash upon the flank of the near horse made
him dart off at a pace which defied all the efforts of the Welsh boor
to check. With his right arm holding fast by the front rail of the
caravan, he with his left pulled with all his strength to keep the
horses in the road, and we dashed along, first upon one side, and
then upon the other, for the middle was never kept, until I began to
look out for the most comfortable landing place. I then caught hold
of the near horse’s rein, while he tugged away at the other. The
seat was slippery, and the reins were wet, and our united efforts
would have failed in checking their speed; but espying a hill about
half a mile a-head of us,
“Now then, keep ’em together,” said I, “and let them have their race
out, for they must stop at yonder hill.”
All this time the fife was whistling like mad, “Go to the devil and
shake yourselves;” and Mr. Whiffler was luxuriating in blessed
ignorance of our danger.
Having made up my mind to the worst, but hoping for the best, I
regaled myself with a sup of brandy from the pistol at my side, and
then handed it to the driver, who drank—as if he liked it. We by this
time reached the foot of the hill, at the same slashing pace, and
began the ascent in a first rate style; but, when we had got about
half way up, we were startled by a loud cry behind us, and, upon
turning my head, I saw poor Mr. Whiffler seated in the middle of the
road, flourishing his musical cane, and shouting most vociferously
for us to stop. It seemed that he was amusing himself with his
favourite airs, and never felt the gradual retiring motion of the sacks
as we ascended the hill, until he was fairly shot out at the tail of the
van, where he lay sprawling; but, thanks to the friendly sacks,
unhurt.
Our frisky Flander’s steeds, coming to the push at the steep rising
ground, relaxed in their rapid course, became quiet as lambs, and at
the summit of the bill were very glad to come to a dead halt to
recover their breath; giving my musical friend ample time to come
up with us, which he had no sooner done, than, as if nothing had
occurred worth mentioning, he resumed his situation in the van, and
struck up “Drops of brandy.” I took the hint, and presented him with
my reserve, which he emptied with much apparent satisfaction, and
returned the flask with thankfulness. Then resuming his unwearying
amusement, he never ceased until we reached the inn at Corwen;
not the principal one, but a small house on the right of the street
opposite to the Owen Glyndwr; which latter has a gigantic head over
the door, much resembling the Saracen’s of Snow Hill notoriety.
I discovered the landlord of “The Welsh Harp” to be the proprietor of
the van, and that the driver was his son. He also followed the
occupation of watch and fishing tackle maker, and I willingly,
therefore, took up my quarters with this specimen of Welsh rusticity,
when invited, in preference to quartering at the great inn with the
great head, as also did Mr. Whiffler.
The first question put to the jolly landlord, was, “What can you give
us to eat?” It was about three o’clock in the day.
“Why, sir, I have a nice roast duck and some peas, which were
intended for John’s,” meaning our van-driver, “dinner; but I shall be
able to find something else for him.”
“And how long, pray, will it be before it is ready?”
“A quarter of an hour.”
“Very well, that will do; and, in the interim, I’ll borrow one of your
coats, and we will visit the church, if there is anything in it worth
looking at.”
No sooner said than done; and a large blue coat, with two heavy
capes, and brass buttons of the size of crown pieces, was
immediately brought forth, which I slipped into, it fitting me—like a
sack! No matter—my own was thoroughly drenched, and was
hanging before a blazing fire in the kitchen, reeking like a leg of
mutton, hot from the boiler.
“Would you like to slip into a pair of my leather breeches?” inquired
my hospitable host.
This I thankfully declined, upon looking at the difference of our
dimensions. My piping friend was comfortably seated in the chimney
corner, and observing “that he had never frequented church since he
was married, having received at that time a shock he could never
recover,” he commenced playing the beautiful air of “My ain fireside,”
whilst I, turning most heroically to the right about, again braved the
“pelting of the pitiless storm,” accompanied by John, our driver, who,
in a few minutes, conducted me to the ancient edifice.
On one side of the altar is the lid of a coffin, which has the following
inscription:
Corwen College,
For six widows of the Clergymen
Of the church of England,
Who died possessed of cures of souls,
In the county of Merionethshire.
Built and endowed
A.D MDCCL by the legacy of
William Egton Esq.
Of Plas-warren.
VALE OF EDEYRNION.
The mountains here, upon either side, are covered with plantations,
and the beautiful Dee winds gracefully in the centre of the valley,
through delightful meadows, while corn fields wave upon the sloping
banks, and everything presents to the eye the appearance of
freshness and fertility, cheerfulness and content. At the bridge near
Llandderfel, a small village, which is first observed upon the opposite
bank of the Dee, a splendid view presents itself. The river here is
broad, shallow, and deep, by turns, and looking up or down the vale,
its meandering sportiveness charms the eye. At the extremity of the
valley is a lofty mountain, planted to the summit, which seems so
closely to envelop it, as to prevent all egress. To stand upon this
bridge at sunset, and listen to the whistle of the sheep boy as he
trudges merrily along the road, the song of the husbandman, or the
joyous laugh of the milkmaids—sounds that float upon the silent air
for miles, at such an hour,—the twittering of the birds, before they
hide their heads beneath their wings to seek repose—the low craik
of the rail, amidst the corn—and sweeter than all, the music of the
river, discharging liquid sounds from its transparent bosom,—creates
a sensation which we are at a loss how to express. Excess of
pleasure becomes painful; and, overpowered with delight, nature
asserts her influence, and we experience the luxury of tears!—at
least, I did, and I pity from my soul the man who is unfortunately
incapable of a similar feeling.
Passing through the little village of Llanver, and crossing a stream
over the bridge close by the lodge of Mr. Price of Rhewlas, I at
length arrived at the Bull’s Head in the town, to which house I had
been recommended by a passing traveller; and, tired with my day’s
exertions, called for a tea-dinner and slippers.
BALA.
Both these luxuries were furnished me by the fair hands of Martha
Jones, the landlady’s unmarried sister, a lively, black-eyed, pretty
lass, who, in being a spinster, proves that the Bala lads are greatly
deficient in taste, or that Martha has set her cap at something better
than is to be found in Bala.
Two gentlemen were seated in the room when I entered, each of
whom were discussing the merits of a glass of brandy and water.
One of them (a young man who I afterwards discovered was a
captain’s clerk in the East India service, upon leave,) was making
himself particularly entertaining to his companion, by relating a
number of anecdotes about a relative, a clergyman, whose residence
is somewhere in the neighbourhood.
“Ha! ha! ha! you remember the time when the dinner was given at
—; well, the old boy as usual, had got too much grog aboard, and
without a rudder, began to crowd sail for the stable—my eyes! how
he did traverse! but at last, a gale took his topsail right aback, and
capsising him into the kennel, he began to roar out for help. ‘What’s
the matter?’ cried twenty voices at a time. ‘Oh help! help me up,’
cried the old boy, ‘for I’m the Lord’s servant!’ ‘Ay, ay,’ cried one, ‘and
you’re like all the rest of ’em, want a good deal of looking after.’ Ha,
ha, ha!”
This anecdote, required another glass of brandy and water to wash
it down; which being brought, this irreverend humorist rehearsed a
number of other circumstances concerning his eccentric relative,
amongst which was a story of his ascending the pulpit, to preach a
sermon, “and kneeling down,” said he, “he placed his hand upon the
cushion, in the attitude of prayer, closed his port holes, and fell into
a—sound sleep! The congregation waited—and waited—until their
patience was quite exhausted, and one after another began to heave
anchor. The clerk, at last, ventured to awaken his pastor just in time
for him to see the last of his parishioners leaving the church.”
I was truly sorry to find, upon inquiry, that this was but too true a
tale of the old man, whose years are many, and who must be well
aware, that a very short time can elapse, before he will become a
tenant of the grave.
Wearied with the conversation, I rang for my bed candle, and retired
to rest.
CHAPTER VI.
Seated upon a rock that projects into the lake (under the shadow of
which is the boat house of Mr. Price, of Rhewlas, of whom, more
anon) I commenced my solitary pastime; but my eyes continually
wandered from the float, to the surrounding scenery, which is of a
pleasing rather than an imposing nature. The lake was slightly
ruffled by a refreshing breeze, which fortunately sprang up, and
prevented me from dissolving in the heat of the sun. It is about four
miles in length, and in some parts it is forty yards in depth. The
shores are sloping, the soil gravelly, and delightfully variegated with
plantations of trees and shrubs. Towards the head of the lake, the
mountains are upon a very grand scale, and rival Snowdon in their
altitude; Arran Fowddwy is the loftiest of these, near the summit of
which, upon its eastern side, beneath a huge crag, is situated a lake,
which affords excellent sport to the angler, although the fish are not
of the finest quality.
Arrenig Vawr, (or great), which is nearly as lofty as Arran Fowddwy,
and rises upon the N.W. side of the Llyn, has also a lake, containing
trout of a large size, which are noted for rejecting the artificial fly;
but, about half way up the Arrenig Vâch, (or little) is a lake, which
when a light breeze sweeps along its surface, will amply reward the
angler for his trouble, in reaching it. A morning, and an evening, at
each of these places, enable me to state thus much, for the benefit
of the disciples of Isaac Walton.
I was suddenly aroused from a dream of pleasure, which I was
enjoying, with my eyes open, by a tug at my line, reminding me,
that a fish had swallowed the hook. After a little coquetting, which
lovers usually make use of, I brought it to my arms, and then thrust
it into my bag; a fine perch! I now resolved, to begin in earnest,
and in an hour, by my temptation and insinuation, contrived to
obtain a very handsome dish, with which I returned upon my pony
to the inn, resigning them and myself to the care of Martha Jones.
This was the only uncomfortable evening I passed at the Bull—and
with respect be it spoken, all my uneasiness was occasioned, by the
magistrates of the county, who had met to discuss the important
business of their various districts, and to join in the
All the while, the honest landlord, who resembled a “turtle on his
hind fins,” waddled about in high glee. It was a great day for the
Bull’s Head! and his joy resembled Dennis Bulgruddery’s, of the Red
Cow, when he saw a traveller on the heath, walking in the direction
of his long neglected hostelry. The confusion of sounds distracted
my brain, and I was almost tempted to exclaim, in the language of
Falstaff,
CADER IDRIS,
the loftiest mountain in Merionethshire, and the second in North
Wales, is said to be 950 yards in perpendicular height from Dolgelly
Green. Cader Idris literally means “Idris’s chair,” where he is
supposed to have studied astrology; and Idris is a name attributed
to Enoch, the founder of astronomy. Mr. Edward Jones, to whom the
public are indebted for his learned and ingenious work, entitled “The
Bardic Museum,” observes that “Cær Idris implies the city of the
learned:” and Mr. Rowland, in his “Mona Antiqua,” mentions a place
in Anglesea called Cær Idris, also Bôd Idris, or “Idris’s abode or
mansion,” in Yale, Denbighshire, which still retains the name, as well
as that of Llêch Idris, or “the shelter of Idris,” a farm so called, at
Trawsoynydd in Merionethshire, which also may imply the grave of
Idris. Idris is supposed to have flourished in the third or fourth
century, and his genealogy from an old manuscript, runs thus:
—“Idris Gawr ab Gwyddno, ab Tibion, ab Cunedda Wledig.”
Snowdon and Cader Idris were formerly supposed to be the
Parnassian hills of Wales, and none but good bards could claim so
elevated a seat.
Idris, the champion or bard, invented the harp; or, if the Gomerian
Britons brought that instrument into the country when they first
inhabited the island, it seems to have been lost and forgotten; for
Idris is said to have invented something similar; but it is probable he
only made some improvement on the ancient harp, or perhaps his
superior skill in performing on it might have gained him that
reputation. From all that can be gathered from tradition, he was a
learned man, an astrologer, and a bard; and it is likely that the
summit of this mountain was chosen by him, to examine from
thence the movements of the heavenly bodies, to write his inspired
verses, or to frame laws for the government and benefit of his
country.
The walk from this spot to Dolgelly is exceedingly beautiful; and as
the tourist approaches the town before crossing the bridge which is
flung over the river Mawddach, a sign of some importance attracts
his attention upon the right: it runs thus:
R. PUGH,
Guide General
To the Waterfalls, Cader Idris,
And all the curious scenery in
The vicinity of Dolgelly.
N.B. Licenced to let saddled horses.
DOLGELLY,
or Dolgellen, the Dale of the Hazel, is the principal market town in
Merionethshire, and the assizes are held here, alternately with Bala.
The town hall, the most important building, is a neat stone edifice,
erected in the year 1825, and cost £3000. It is built near the banks
of the river Wnion, (pronounced Oonion) and the court room is fitted
up with every necessary accommodation for the officers of justice.
In the hall is a very fine portrait of Sir R. W. Vaughan, Bart., painted
by Sir M. A. Shee, F.R.A.
Part of an old building, called “Cwrt Plâs yn-y Drêv,” or the Town-hall
Court is still remaining, amongst a range of wretched hovels, at the
back of the post office, in which a parliament was held by Owen
Glyndwr. The county jail at the outskirts of the town is of a
semicircular form, built of stone, and was erected in 1811, at an
expense of £5000.
St. Mary’s Church is a neat limestone edifice, of Grecian architecture,
with a handsome tower, and an expansive nave. In it is an ancient
monument of an armed knight, who is represented in a suit of mail,
helmet, a neck guard, a sword in his hand, and a dog at his feet; a
lion passant gardant is on his shield, upon which is inscribed: “Hic
jacet Mauric Filius Ynyr Vychan.” There is a modern one lately
erected to the memory of Baron Richards.
The town is celebrated for a manufacture of coarse woollen cloths
and flannels, called webs. The old town hall is used for various
purposes; English church service is performed there every other
Sunday; it is also used as a national school, and children are there
taught to sing the church psalms. It is likewise known as the
theatre, and a Mr. Glover (son of Mrs. Glover, of the London
theatres) is the manager. It is kept open sometimes for two months
successively; admittance to boxes 2s, pit 1s.
Those fond of fine scenery should ascend the mountain from the
north side of the vale, to obtain the best view of the town, as it lies
sheltered at the foot of the majestic Cader Idris, which rears its lofty
shoulders in the clouds.
Clustering woods adorn the opposite range of mountains, as they
slope in irregular masses westward to the ocean; and in the midst
may be distinguished the residences of Mr. Reveley and Captain
Anwyl.
The river beautifully meandering through the green meadows, the
solemn quietude that prevails around, disturbed only by the sound of
the church clock, marking the progress of the fleeting hours with
lengthened tone, which, like the music of another world, sweeps
through the enchanting vale, combine to render this a place where
those not wedded to routs, masquerades, gambling and
licentiousness, might wish to live and die.
Dolgelly contains several good inns, of which the most frequented
are the Golden lion, the Angel and the Ship. Comfortable lodgings
may likewise be obtained, at a cheap rate, by those who desire to
remain in the neighbourhood for the purpose of making excursions
to the falls, Kymmer Abbey, and Nannau Park, the fishing stations,
Dol y Gamedd on the Avon, Llyn Cregenan, Llyn Gador, Llyn Geirw,
Tal y llyn, &c. [176]
DOLUWCHEOGRYD,
the residence of Mr. Roland Williams, is delightfully situated on the
side of a mountain rising from this vale. I have read of a man who
made search through the world for true hospitality, and returned to
his cell without finding it. It is certain that he never entered the
abode of Mr. R. Williams, which is the habitation of unaffected
kindness, unpresuming intelligence, and unostentatious hospitality—
the retreat of peace, love and friendship, where the stranger is
received with warmth and cordiality, his wants anxiously anticipated
and administered to, where the cheerful glass is rendered doubly
valuable by the accompaniment of a hearty welcome, and where the
administering hands of the fair inmates render every species of
generosity doubly dear to the favoured individual who is admitted
into that happy sanctuary. The only feeling of regret I experienced
while at Doluwcheogryd was occasioned by the necessity of leaving
it so soon.
The tourist should not quit Dolgelly without visiting the waterfalls,
which, after heavy rains, are very magnificent. As I was still
suffering from the severe sprain, I was accommodated by Mr.
Williams, who also obliged me with his company, with a very fine
horse to carry me to the falls; and bold and sure-footed, he
performed his duty nobly, in spite of crags, cliffs, hills and hollows.
Passing the house of Miss Madock, daughter of the late William
Alexander Madock, Esq., we came to the cataract.
THE RHAIADR DU
is situated in the grounds belonging to this lady, called Dôl
melynllyn. Here the torrent leaps from a height of sixty feet over
precipitous rocks, and plunges with a violence that seems to shake
the crags and trees around, into a deep pool, from which it proceeds
adown the dingle, over black and broken fragments, to the river
Mawddach. A footpath conducts the tourist to the bottom of the
falls, from which, stepping upon some loose stones in the middle of
the stream, he will obtain the best view of the cataract. A walk of
about three miles brings him to the falls of the Mawddach and Pistyll
y Cain, returning from which, he may visit Y Vanner, or Kymmer
Abbey, founded in 1198, by Meredith and Griffith, lords of Merioneth,
dedicated to St. Mary, and inhabited by monks of the Cistertian
order. It is not now, however, worthy of the tourist’s attention. But
Nannau Park, the seat of Sir Robert William Vaughan, will afford
much pleasure to those who visit it. The grounds are thickly
wooded, and the mansion is supposed to occupy the highest ground
of any residence in Britain. The approach to it is five miles in length;
it stands 702 feet above the level of the sea; and the park is
celebrated for its venison. Previously to the year 1814, there stood
an oak in this park which bore a name terrible to the ears of the
peasantry: it was called
BARMOUTH,
the coach stopped at the Cors-y-gedol arms; but I proceeded to the
Commercial inn, where there is very good accommodation, and a
good look-out seaward. A warm bath of sea water refreshed me;
and by the star light I strolled upon the sands, which are very hard
and pleasant to walk upon, while my repast was preparing at the
inn. The night was calm and serene, and my mind naturally adapted
itself to the surrounding scene. “The brave o’erhanging firmament—
the majestical roof fretted with golden fire,” appeared to me far from
being “a foul and pestilent congregation of vapours.” My soul took
wing, and bounded from star to star, leaping the realms of space,
and plunging into infinity, till wearied with its immeasurable flight, it
resought its earthly tenement, and my body, which it left
immoveable, as if transformed to marble, resumed its functions.
The low moan of the ocean swam on my ear, like heavenly music. A
light breeze brought with it delicious freshness; and, as I looked
towards the land, all seemed as quiet as the abode of peace. The
lights from the houses had a pleasing effect, as they streamed
through the windows, row above row, under and upon the side of
the overhanging cliffs.
I returned to “mine inn,” and my meal being despatched, retired to
bed.
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.
ebookfinal.com