alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (sample-05.xml)

This example Java source code file (sample-05.xml) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

adding, cdata, commons-rocket, commons-space, configuration, configuring, inject, jakarta, launching, the, utf-8, you

The sample-05.xml Java example source code

<?xml version="1.0" encoding="UTF-8"?>
<!-- this sample file tests CDATA sections -->
<chapter id="rockets">
    <title>Rocket Launching

    <sect1 id="rocket-configuration">
        <title>Configuration

        <para>
            Configuring rockets should look very familiar if you're used
            to Jakarta Commons-Rocket or Commons-Space. You will first
            create a normal
            <literal>ContextSource
            then wrap it in a
            <literal>RocketContextSource
            .
            <informalexample>
				<programlisting>
            </informalexample>
            In a real world example you would probably configure the
            rocket options and enable connection validation; the above
            serves as an example to demonstrate the general idea.
        </para>

        <sect2 id="rocket-advanced-configuration">
            <title>Validation Configuration

            <para>
                Adding validation and a few rocket configuration tweaks to
                the above example is straight forward. Inject a
                <literal>RocketContextValidator
                and set when validation should occur and the rocket is
                ready to go.
                <informalexample>
					<programlisting>
                </informalexample>
                The above example will test each
                <literal>RocketContext
                before it is passed to the client application and test
                <literal>RocketContext
                s that have been sitting idle in orbit.
            </para>
		</sect2>
	</sect1>
</chapter>

Other Java examples (source code examples)

Here is a short list of links related to this Java sample-05.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.