File: ch_install.html

package info (click to toggle)
erlang-doc-html 1%3A10.b.1a-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 22,488 kB
  • ctags: 9,933
  • sloc: erlang: 505; ansic: 323; perl: 61; sh: 45; makefile: 39
file content (155 lines) | stat: -rw-r--r-- 4,544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.2 -->
<HTML>
<HEAD>
  <TITLE>Installing cosTransactions</TITLE>
  <SCRIPT type="text/javascript" src="../../../../doc/erlresolvelinks.js">
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
      ALINK="#FF0000">
<CENTER>
<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif"></A>
</CENTER>
<A NAME="3"><!-- Empty --></A>
<H2>3 Installing cosTransactions</H2>
<A NAME="3.1"><!-- Empty --></A>
<H3>3.1  Installation Process </H3>

<P>This chapter describes how to install 
<A HREF="cosTransactions.html">cosTransactions</A> 
in an Erlang Environment.

<A NAME="3.1.1"><!-- Empty --></A>
<H4>3.1.1 Preparation</H4>

<P> Before starting the installation process for cosTransactions,
the application Orber must be running.

<P> The cosTransactions application must be able to log progress to disk. The log files are
created in the current directory as &#34;oe_name@machine_type_timestamp&#34;. Hence, <CODE>read</CODE> and 
<CODE>write</CODE> rights must be granted. If the transaction completes in an orderly fashion the 
logfiles are removed, but not if an error, which demenads human intervention, occur.
<A NAME="3.1.2"><!-- Empty --></A>
<H4>3.1.2 Configuration</H4>

<P> When using the Transaction Service the <CODE>cosTransactions</CODE> application 
must be started using either <CODE>cosTransactions:start()</CODE> or 
<CODE>application:start(cosTransactions)</CODE>.


<P> The following application configuration parameters exist:

<P>
<UL>

<LI>
<CODE>maxRetries</CODE> - default is 40 times, i.e., if a transaction participant is unreachable
the application will retry to contact it <CODE>N</CODE> times. Reaching the maximum is considered to be a disaster.

</LI>


<LI>
<CODE>comFailWait</CODE> - default is 5000 milliseconds, i.e., before the application
retries to contact unreachable transaction participants the application wait <CODE>Time</CODE> milliseconds.

</LI>


</UL>

<P>     Then the <A HREF="CosTransactions_TransactionFactory.html">Transaction Factory</A>
must be started:

<P>
<UL>

<LI>
<CODE>cosTransactions:start_factory()</CODE> - starts and returns a reference to a factory using default configuration parameters.
</LI>


<LI>
<CODE>cosTransactions:start_factory(Options)</CODE> - starts and returns a reference to a factory using given configuration parameters.
</LI>


</UL>

<P> The following options exist:


<P>
<UL>

<LI>
<CODE>{hash_max, HashValue}</CODE> - 
         This value denotes the upper bound of the hash value the <A HREF="CosTransactions_Coordinator.html">Coordinator</A> uses.
Default is <CODE>1013</CODE>. HashValue must be an integer.

</LI>


<LI>
<CODE>{allow_subtr, Boolean}</CODE> -
         If set to true it is possible to create <A HREF="CosTransactions_Coordinator.html">subtransactions</A>.
Default is <CODE>true</CODE>.

</LI>


<LI>
<CODE>{typecheck, Boolean}</CODE> -
If set to to true all transaction operation's arguments will be type-checked.
Default is <CODE>true</CODE>.
</LI>


<LI>
<CODE>{tty, Boolean}</CODE> - 
Enables or disables error printouts to the tty. 
If Flag is false, all text that the error logger would have sent to the terminal is discarded. 
If Flag is true, error messages are sent to the terminal screen. 

</LI>


<LI>
<CODE>{logfile, FileName}</CODE> -
This function makes it possible to store all system information in <CODE>FileName</CODE> (string()).
It can be used in combination with the tty(false) item to have a silent system, 
where all system information are logged to a file. 
As default no logfile is used.
</LI>


<LI>
<CODE>{maxRetries, Integer}</CODE> -
default is 40 times, i.e., if a transaction participant is unreachable the application will 
retry to contact it <CODE>N</CODE> times. Reaching the maximum is considered to be a disaster.
This option overrides the application configuration parameter.
</LI>


<LI>
<CODE>{comFailWait, Integer}</CODE> -
default is 5000 milliseconds, i.e., before the application retries to contact unreachable 
transaction participants the application wait <CODE>Time</CODE> milliseconds.
This option overrides the application configuration parameter.
</LI>


</UL>

<P> The Factory is now ready to use. For a more detailed description see <A HREF="ch_example.html">Examples</A>.

<CENTER>
<HR>
<SMALL>
Copyright &copy; 1991-2004
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>