This repository was archived by the owner on Jan 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathconnectorexample002.html
More file actions
611 lines (599 loc) · 22.7 KB
/
Copy pathconnectorexample002.html
File metadata and controls
611 lines (599 loc) · 22.7 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>The trading Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/style.css" rel="stylesheet">
<script src="https://use.fontawesome.com/96c4d89611.js"></script>
</head>
<body>
<table id="doc-title" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">
<b>Java Platform, Enterprise Edition (Java EE) 8</b><br />
<b>The Java EE Tutorial</b>
<!-- <p class="beta">Beta Draft (Pre-General Availability)</p> -->
</td>
</tr>
</table>
<hr />
<table width="90%" id="top-nav" cellspacing="0" cellpadding="0">
<colgroup>
<col width="12%"/>
<col width="12%"/>
<col width="*"/>
</colgroup>
<tr>
<td align="left">
<a href="connectorexample001.html">
<span class="vector-font"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></span>
<span style="position:relative;top:-2px;">Previous</span>
</a>
</td>
<td align="left">
<a href="connectorexample003.html">
<span class=" vector-font"><i class="fa fa-arrow-circle-right vector-font" aria-hidden="true"></i></span>
<span style="position:relative;top:-2px;">Next</span>
</a>
</td>
<td align="right">
<a href="toc.html">
<span class=" vector-font"><i class="fa fa-list vector-font" aria-hidden="true"></i></span>
<span style="position:relative;top:-2px;">Contents</span>
</a>
</td>
</tr>
</table>
<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p><a id="CHDFHAID"></a><a id="the-trading-example"></a></p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_the_trading_example">The trading Example</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The <code>trading</code> example demonstrates how to implement and use a simple
outbound resource adapter that submits requests to a legacy EIS using a
TCP socket. The example demonstrates the scenario in
<a href="#CHDHADIG">Figure 56-1</a> and consists of the following modules:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><code>trading-eis</code>: A Java SE program that simulates a legacy EIS</p>
</li>
<li>
<p><code>trading-rar</code>: The outbound resource adapter implementation</p>
</li>
<li>
<p><code>trading-war</code>: A web application that uses the resource adapter</p>
</li>
<li>
<p><code>trading-ear</code>: An enterprise archive that contains the resource
adapter and the web application</p>
</li>
</ul>
</div>
<div id="CHDHADIG" class="paragraph">
<div class="title"><strong>Figure 56-1 The trading Example</strong></div>
<p><span class="image"><img src="img/javaeett_dt_054.png" alt="This figure shows the trading example components: a deployed WAR and RAR that communicate with the EIS over a TCP socket."></span></p>
</div>
<div class="paragraph">
<p>The <code>trading-eis</code> module is an auxiliary project that resembles a legacy
stock trading execution platform. It contains a Java SE program that
listens for trading requests in plain text on a TCP socket. The program
replies to trading requests with a status value, a confirmation number,
and the dollar amounts for the requested shares and fees. For example, a
request-response pair would look like this:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">>> BUY 1000 ZZZZ MARKET
<< EXECUTED #1234567 TOTAL 50400.00 FEE 252.00</code></pre>
</div>
</div>
<div class="paragraph">
<p>The <code>trading-rar</code> module implements the outbound contract of the Java EE
Connector Architecture to submit requests and obtain responses from the
legacy stock trading execution platform. The <code>trading-rar</code> module
provides and implements a custom client interface for Java EE
applications to use. This interface is simpler than the Common Client
Interface (CCI).</p>
</div>
<div class="paragraph">
<p>The <code>trading-war</code> module is a web application with a JavaServer Faces
interface and a managed bean. This application enables clients to submit
trades to the EIS using the resource adapter provided by the
<code>trading-rar</code> module. The <code>trading-war</code> module uses the custom client
interface provided by the resource adapter to obtain connections to the
EIS.</p>
</div>
<div class="paragraph">
<p><a id="CHDFADJD"></a><a id="using-the-outbound-resource-adapter"></a></p>
</div>
<div class="sect2">
<h3 id="_using_the_outbound_resource_adapter">Using the Outbound Resource Adapter</h3>
<div class="paragraph">
<p>In most cases, Java EE application developers use outbound resource
adapters developed by a third party. Outbound resource adapters either
implement the Common Client Interface (CCI) or provide a custom
interface for applications to interact with the EIS. Outbound resource
adapters provide Java EE applications with the following elements:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Connection factories</p>
</li>
<li>
<p>Connection handles</p>
</li>
<li>
<p>Other interfaces and objects specific to the EIS domain</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Java EE applications obtain an instance of the connection factory via
resource injection and then use the factory object to obtain connection
handles to the EIS. The connection handles enable the application to
make requests and obtain information from the EIS.</p>
</div>
<div class="paragraph">
<p>The <code>trading-rar</code> module provides a custom client interface that
consists of the classes listed in <a href="#CHDCHJAC">Table 56-1</a>.</p>
</div>
<div class="paragraph">
<p><a id="sthref242"></a><a id="CHDCHJAC"></a></p>
</div>
<div class="paragraph">
<p><strong>Table 56-1 Classes and Interfaces in the javaeetutorial.trading.rar.api
Package</strong></p>
</div>
<table class="tableblock frame-all grid-all" style="width: 80%;">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>API Component</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Description</strong></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeOrder</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Represents a trade order for the EIS</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeResponse</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Represents a response from the EIS to a trade request</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeConnection</code></p></td>
<td class="tableblock halign-left valign-top"><div><div class="paragraph">
<p>Represents a connection handle to the EIS</p>
</div>
<div class="paragraph">
<p>Provides a method for applications to submit trades to the EIS</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeConnectionFactory</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Enables applications to obtain connection
handles to the EIS</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeProcessingException</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Indicates that a problem occurred
processing a trade request</p></td>
</tr>
</tbody>
</table>
<div class="paragraph">
<p>The <code>ResourceAccessBean</code> managed bean in the <code>trading-war</code> module
configures a connection factory for the <code>trading-rar</code> resource adapter
by using the <code>@ConnectionFactoryDefinition</code> annotation as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">@Named
@SessionScoped
@ConnectionFactoryDefinition(
name = "java:comp/env/eis/TradeConnectionFactory",
interfaceName = "javaeetutorial.trading.rar.api.TradeConnectionFactory",
resourceAdapter = "#trading-rar",
minPoolSize = 5,
transactionSupport =
TransactionSupport.TransactionSupportLevel.NoTransaction
)
public class ResourceAccessBean implements Serializable { ... }</code></pre>
</div>
</div>
<div class="paragraph">
<p>The <code>name</code> parameter specifies the JNDI name for the connection factory.
This example registers the connection factory in the <code>java:comp</code> scope.
You can use the <code>ConnectionFactoryDefinition</code> annotation to specify a
different scope, such as <code>java:global</code>, <code>java:app</code>, or <code>java:module</code>.
The <code>AdministeredObjectDefinition</code> annotation also enables you to
register administered connector objects in the JNDI namespace.</p>
</div>
<div class="paragraph">
<p>The <code>interfaceName</code> parameter specifies the interface implemented by the
connection factory included in the resource adapter. In this example,
this is a custom interface.</p>
</div>
<div class="paragraph">
<p>The <code>resourceAdapter</code> parameter specifies the name of the resource
adapter that contains the connection factory implementation. The <code>#</code>
prefix in <code>#trading-rar</code> indicates that <code>trading-rar</code> is an embedded
resource adapter that is bundled in the same EAR as this web
application.</p>
</div>
<table class="tableblock frame-all grid-all spread">
<colgroup>
<col style="width: 100%;">
</colgroup>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div><div class="paragraph">
<p><strong>Note</strong>:</p>
</div>
<div class="paragraph">
<p>You can also configure a connection factory for a previously deployed
outbound resource adapter using the administration commands from your
application server. However, this is a vendor-specific procedure.</p>
</div></div></td>
</tr>
</tbody>
</table>
<div class="paragraph">
<p>The managed bean obtains a connection factory object using resource
injection as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">...
public class ResourceAccessBean implements Serializable {
@Resource(lookup = "java:comp/env/eis/TradeConnectionFactory")
private TradeConnectionFactory connectionFactory;
...
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>The managed bean uses the connection factory to obtain connection
handles as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">TradeConnection connection = connectionFactory.getConnection();</code></pre>
</div>
</div>
<div class="paragraph">
<p>The resource adapter returns a connection handle associated with a
physical connection to the EIS. Once a connection handle is available,
the managed bean submits a trade and obtains the response as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">TradeOrder order = new TradeOrder();
order.setNShares(1000);
order.setTicker(TradeOrder.Ticker.YYYY);
order.setOrderType(TradeOrder.OrderType.BUY);
order.setOrderClass(TradeOrder.OrderClass.MARKET);
...
try {
TradeResponse response = connection.submitOrder(order);
...
} catch (TradeProcessingException ex) { ... }</code></pre>
</div>
</div>
<div class="paragraph">
<p><a id="sthref243"></a><a id="implementing-the-outbound-resource-adapter"></a></p>
</div>
</div>
<div class="sect2">
<h3 id="_implementing_the_outbound_resource_adapter">Implementing the Outbound Resource Adapter</h3>
<div class="paragraph">
<p>The <code>trading-rar</code> module implements the outbound contract and a custom
client interface for the simple legacy stock trading platform EIS used
in this example. The architecture of the outbound resource adapter is
shown in <a href="#CHDIGAJE">Figure 56-2</a>.</p>
</div>
<div id="CHDIGAJE" class="paragraph">
<div class="title"><strong>Figure 56-2 Architecture of the trading Example</strong></div>
<p><span class="image"><img src="img/javaeett_dt_055.png" alt="This figure shows the classes in each of the modules of the trading example."></span></p>
</div>
<div class="paragraph">
<p>The <code>trading-rar</code> module implements the interfaces listed in
<a href="#CHDIBBIC">Table 56-2</a>.</p>
</div>
<div class="paragraph">
<p><a id="sthref245"></a><a id="CHDIBBIC"></a></p>
</div>
<div class="paragraph">
<p><strong>Table 56-2 Interfaces Implemented in the trading-rar Module</strong></p>
</div>
<table class="tableblock frame-all grid-all" style="width: 99%;">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 60%;">
</colgroup>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Package</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Interface</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Description</strong></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>javax.resource.spi</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>ResourceAdapter</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Defines the lifecycle methods
of the resource adapter</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>javax.resource.spi</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>ManagedConnectionFactory</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Defines a connection
factory that the connection manager from the application server uses to
obtain physical connections to the EIS</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>javax.resource.spi</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>ManagedConnection</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Defines a physical
connection to the EIS that can be managed by the connection manager</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>trading.rar.api</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeConnectionFactory</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Defines a connection
factory that applications use to obtain connection handles</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>trading.rar.api</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TradeConnection</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Defines a connection handle that
applications use to interact with the EIS</p></td>
</tr>
</tbody>
</table>
<div class="paragraph">
<p>When the <code>trading-ear</code> archive is deployed and a connection pool
resource is configured as described in <a href="#CHDFADJD">Using the Outbound
Resource Adapter</a>, the application server creates
<code>TradeConnectionFactory</code> objects that applications can obtain using
resource injection. The <code>TradeConnectionFactory</code> implementation
delegates creating connections to the connection manager provided by the
application server.</p>
</div>
<div class="paragraph">
<p>The connection manager uses the <code>ManagedConnectionFactory</code>
implementation to obtain physical connections to the EIS and maintains a
pool of active physical connections. When an application requests a
connection handle, the connection manager associates a connection from
the pool with a new connection handle that the application can use.
Connection pooling improves application performance and simplifies
resource adapter development.</p>
</div>
<div class="paragraph">
<p>For more details, see the code and the comments in the <code>trading-rar</code>
module.</p>
</div>
<div class="paragraph">
<p><a id="sthref246"></a><a id="running-the-trading-example"></a></p>
</div>
</div>
<div class="sect2">
<h3 id="_running_the_trading_example">Running the trading Example</h3>
<div class="paragraph">
<p>You can use either NetBeans IDE or Maven to build, package, deploy, and
run the <code>trading</code> example.</p>
</div>
<div class="paragraph">
<p>The following topics are addressed here:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><a href="#BABCHDDC">To Run the trading Example Using NetBeans IDE</a></p>
</li>
<li>
<p><a href="#BABFJAAG">To Run the trading Example Using Maven</a></p>
</li>
</ul>
</div>
<div class="paragraph">
<p><a id="BABCHDDC"></a><a id="to-run-the-trading-example-using-netbeans-ide"></a></p>
</div>
<div class="sect3">
<h4 id="_to_run_the_trading_example_using_netbeans_ide">To Run the trading Example Using NetBeans IDE</h4>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Make sure that GlassFish Server has been started (see
<a href="usingexamples002.html#BNADI">Starting and Stopping GlassFish
Server</a>).</p>
</li>
<li>
<p>From the File menu, choose Open Project.</p>
</li>
<li>
<p>In the Open Project dialog box, navigate to:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">tut-install/examples/connectors</code></pre>
</div>
</div>
</li>
<li>
<p>Select the <code>trading</code> folder.</p>
</li>
<li>
<p>Click Open Project.</p>
</li>
<li>
<p>In the Projects tab, expand the <code>trading</code> node.</p>
</li>
<li>
<p>Right-click the <code>trading-eis</code> module and select Open Project.</p>
</li>
<li>
<p>Right-click the <code>trading-eis</code> project and select Run.</p>
<div class="paragraph">
<p>The messages from the EIS appear in the Output tab:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">Trade execution server listening on port 4004.</code></pre>
</div>
</div>
</li>
<li>
<p>Right-click the <code>trading-ear</code> project and select Build.</p>
<div class="paragraph">
<p>This command packages the resource adapter and the web application in an
EAR file and deploys it to GlassFish Server.</p>
</div>
</li>
<li>
<p>Open the following URL in a web browser:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">http://localhost:8080/trading/</code></pre>
</div>
</div>
<div class="paragraph">
<p>The web interface enables you to connect to the EIS and submit trades.
The server log shows the requests from the web application and the call
sequence that provides connection handles from the resource adapter.</p>
</div>
</li>
<li>
<p>Before undeploying the <code>trading-ear</code> application, close the
<code>trading-eis</code> application from the status bar.</p>
</li>
</ol>
</div>
<div class="paragraph">
<p><a id="BABFJAAG"></a><a id="to-run-the-trading-example-using-maven"></a></p>
</div>
</div>
<div class="sect3">
<h4 id="_to_run_the_trading_example_using_maven">To Run the trading Example Using Maven</h4>
<div class="olist arabic">
<ol class="arabic">
<li>
<p>Make sure that GlassFish Server has been started (see
<a href="usingexamples002.html#BNADI">Starting and Stopping GlassFish
Server</a>).</p>
</li>
<li>
<p>In a terminal window, go to:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">tut-install/examples/connectors/trading/</code></pre>
</div>
</div>
</li>
<li>
<p>Enter the following command:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">mvn install</code></pre>
</div>
</div>
<div class="paragraph">
<p>This command builds and packages the resource adapter and the web
application into an EAR archive and deploys it to GlassFish Server.</p>
</div>
</li>
<li>
<p>In the same terminal window, go to the <code>trading-eis</code> directory:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">cd trading-eis</code></pre>
</div>
</div>
</li>
<li>
<p>Enter the following command to run the trade execution platform:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">mvn exec:java</code></pre>
</div>
</div>
<div class="paragraph">
<p>The messages from the EIS appear in the terminal window:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">Trade execution server listening on port 4004.</code></pre>
</div>
</div>
</li>
<li>
<p>Open the following URL in a web browser:</p>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-oac_no_warn" data-lang="oac_no_warn">http://localhost:8080/trading/</code></pre>
</div>
</div>
<div class="paragraph">
<p>The web interface enables you to connect to the EIS and submit trades.
The server log shows the requests from the web application and the call
sequence that provides connection handles from the resource adapter.</p>
</div>
</li>
<li>
<p>Before undeploying the <code>trading-ear</code> application, press Ctrl+C on
the terminal window to close the <code>trading-eis</code> application.</p>
</li>
</ol>
</div>
</div>
</div>
</div>
</div>
<hr />
<table width="90%" id="bottom-nav" cellspacing="0" cellpadding="0">
<colgroup>
<col width="12%"/>
<col width="12%"/>
<col width="*"/>
</colgroup>
<tr>
<td align="left">
<a href="connectorexample001.html">
<span class=" vector-font"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></span>
<span style="position:relative;top:-2px;">Previous</span>
</a>
</td>
<td align="left">
<a href="connectorexample003.html">
<span class="vector-font"><i class="fa fa-arrow-circle-right vector-font" aria-hidden="true"></i></span>
<span style="position:relative;top:-2px;">Next</span>
</a>
</td>
<td align="right">
<a href="toc.html">
<span class="vector-font"><i class="fa fa-list vector-font" aria-hidden="true"></i></span>
<span style="position:relative;top:-2px;">Contents</span>
</a>
</td>
</tr>
</table>
<span id="copyright">
<a href="img/cpyr.adoc">
<img src="img/oracle.gif" height="10px" alt="Oracle Logo" />
<span>Copyright © 2017, Oracle and/or its affiliates. All rights reserved.</span>
</a>
</span>
<!--<p align="center" class="beta">Beta Draft (Pre-General Availability)</p> -->
</body>
</html>