~ubuntu-branches/ubuntu/utopic/jetty/utopic-proposed

« back to all changes in this revision

Viewing changes to examples/test-jndi-webapp/src/main/webapp/index.html

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2009-08-09 08:48:10 UTC
  • Revision ID: james.westby@ubuntu.com-20090809084810-k522b97ind2robyd
ImportĀ upstreamĀ versionĀ 6.1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
  <HEAD>
 
3
    <TITLE>Powered By Jetty</TITLE>
 
4
    <META http-equiv="Pragma" content="no-cache">
 
5
    <META http-equiv="Cache-Control" content="no-cache,no-store">
 
6
  </HEAD>
 
7
<BODY>
 
8
<A HREF="http://jetty.mortbay.org/jetty6"><IMG SRC="http://jetty.mortbay.org/jetty/images/jetty_banner.gif"></A>
 
9
<P>
 
10
<h1>Jetty and JNDI</h1>
 
11
 
 
12
<p>
 
13
This example shows how to configure and lookup resources such as DataSources, a JTA transaction manager and a java.mail.Session in JNDI. The demo shows you how to perform a distributed transaction across two different databases, and how to send email.
 
14
</p>
 
15
 
 
16
<h2>Preparation</h2>
 
17
<p>
 
18
Follow the instructions in the README-test-jndi.txt file in $JETTY-HOME/contexts.
 
19
<p>
 
20
Now you can start the demo:
 
21
<blockquote>
 
22
<pre>
 
23
  > java -jar start.jar
 
24
</pre>
 
25
</blockquote>
 
26
</p>
 
27
<p>If you want to use the Mail demonstration, you will need to edit the <code>$JETTY-HOME/contexts/test-jndi.xml</code> file and change the smtp authentication information and properties appropriately for your environment.
 
28
</p>
 
29
<h2>The Datasources/Transaction Demo</h2>
 
30
<p>
 
31
Click <code>Commit</code> to make a distributed update to 2 different databases, or <code>Rollback</code> to prevent the update from happening.
 
32
</p>
 
33
<form action="test" method="post">
 
34
      <input type="radio" name="completion" value="commit" checked="true"> Commit<BR>
 
35
      <input type="radio" name="completion" value="rollback"> Rollback<BR>
 
36
      <P>
 
37
      <button type="submit">Completion</button>
 
38
</form>
 
39
<h2> The Mail Demo </h2>
 
40
 
 
41
 
 
42
<form action="test" method="post">
 
43
    <p>Send a test email to:&nbsp;<input type="text" name="mailto" maxlength="30"/></p>
 
44
    <p>From:&nbsp;<input type="text" name="mailfrom" maxlength="30"/></p>
 
45
    <button type="submit">Send</button>
 
46
<form>
 
47
 
 
48
 
 
49
</BODY>
 
50
</HTML>