~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/cosTransactions/doc/src/ch_install.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="latin1" ?>
 
2
<!DOCTYPE chapter SYSTEM "chapter.dtd">
 
3
 
 
4
<chapter>
 
5
  <header>
 
6
    <copyright>
 
7
      <year>1999</year>
 
8
      <year>2008</year>
 
9
      <holder>Ericsson AB, All Rights Reserved</holder>
 
10
    </copyright>
 
11
    <legalnotice>
 
12
  The contents of this file are subject to the Erlang Public License,
 
13
  Version 1.1, (the "License"); you may not use this file except in
 
14
  compliance with the License. You should have received a copy of the
 
15
  Erlang Public License along with this software. If not, it can be
 
16
  retrieved online at http://www.erlang.org/.
 
17
 
 
18
  Software distributed under the License is distributed on an "AS IS"
 
19
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
20
  the License for the specific language governing rights and limitations
 
21
  under the License.
 
22
 
 
23
  The Initial Developer of the Original Code is Ericsson AB.
 
24
    </legalnotice>
 
25
 
 
26
    <title>Installing cosTransactions</title>
 
27
    <prepared></prepared>
 
28
    <docno></docno>
 
29
    <date>1999-04-20</date>
 
30
    <rev></rev>
 
31
  </header>
 
32
 
 
33
  <section>
 
34
    <title>Installation Process </title>
 
35
    <p>This chapter describes how to install 
 
36
      <seealso marker="cosTransactions">cosTransactions</seealso> 
 
37
      in an Erlang Environment.
 
38
      </p>
 
39
 
 
40
    <section>
 
41
      <title>Preparation</title>
 
42
      <p>Before starting the installation process for cosTransactions,
 
43
        the application Orber must be running.</p>
 
44
      <p>The cosTransactions application must be able to log progress to disk. The log files are
 
45
        created in the current directory as "oe_name@machine_type_timestamp". Hence, <c>read</c> and 
 
46
        <c>write</c> rights must be granted. If the transaction completes in an orderly fashion the 
 
47
        logfiles are removed, but not if an error, which demands human intervention, occur.</p>
 
48
    </section>
 
49
 
 
50
    <section>
 
51
      <title>Configuration</title>
 
52
      <p>When using the Transaction Service the <c>cosTransactions</c> application 
 
53
        must be started using either <c>cosTransactions:start()</c> or 
 
54
        <c>application:start(cosTransactions)</c>.
 
55
        </p>
 
56
      <p>The following application configuration parameters exist:</p>
 
57
      <list type="bulleted">
 
58
        <item><c>maxRetries</c> - default is 40 times, i.e., if a transaction participant is unreachable
 
59
         the application will retry to contact it <c>N</c> times. Reaching the maximum is considered to be a disaster.</item>
 
60
        <item><c>comFailWait</c> - default is 5000 milliseconds, i.e., before the application
 
61
         retries to contact unreachable transaction participants the application wait <c>Time</c> milliseconds.</item>
 
62
      </list>
 
63
      <p>Then the <seealso marker="CosTransactions_TransactionFactory">Transaction Factory</seealso>
 
64
        must be started:</p>
 
65
      <list type="bulleted">
 
66
        <item><c>cosTransactions:start_factory()</c> - starts and returns a reference to a factory using default configuration parameters.</item>
 
67
        <item><c>cosTransactions:start_factory(Options)</c> - starts and returns a reference to a factory using given configuration parameters.</item>
 
68
      </list>
 
69
      <p>The following options exist:
 
70
        </p>
 
71
      <list type="bulleted">
 
72
        <item><c>{hash_max, HashValue}</c> - 
 
73
         This value denotes the upper bound of the hash value the <seealso marker="CosTransactions_Coordinator">Coordinator</seealso>  uses.
 
74
         Default is <c>1013</c>. HashValue must be an integer.</item>
 
75
        <item><c>{allow_subtr, Boolean}</c> -
 
76
         If set to true it is possible to create <seealso marker="CosTransactions_Coordinator">subtransactions</seealso>.
 
77
         Default is <c>true</c>.</item>
 
78
        <item><c>{typecheck, Boolean}</c> -
 
79
         If set to to true all transaction operation's arguments will be type-checked.
 
80
         Default is <c>true</c>.</item>
 
81
        <item><c>{tty, Boolean}</c> -  
 
82
         Enables or disables error printouts to the tty. 
 
83
         If Flag is false, all text that the error logger would have sent to the terminal is discarded. 
 
84
         If Flag is true, error messages are sent to the terminal screen. </item>
 
85
        <item><c>{logfile, FileName}</c> -
 
86
         This function makes it possible to store all system information in <c>FileName</c> (string()).
 
87
         It can be used in combination with the tty(false) item to have a silent system, 
 
88
         where all system information are logged to a file. 
 
89
         As default no logfile is used.</item>
 
90
        <item><c>{maxRetries, Integer}</c> -
 
91
         default is 40 times, i.e., if a transaction participant is unreachable the application will 
 
92
         retry to contact it <c>N</c> times. Reaching the maximum is considered to be a disaster.
 
93
         This option overrides the application configuration parameter.</item>
 
94
        <item><c>{comFailWait, Integer}</c> -
 
95
         default is 5000 milliseconds, i.e., before the application retries to contact unreachable 
 
96
         transaction participants the application wait <c>Time</c> milliseconds.
 
97
         This option overrides the application configuration parameter.</item>
 
98
      </list>
 
99
      <p>The Factory is now ready to use. For a more detailed description see <seealso marker="ch_example">Examples</seealso>.
 
100
        </p>
 
101
    </section>
 
102
  </section>
 
103
</chapter>
 
104