-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07.html
93 lines (89 loc) · 4.68 KB
/
07.html
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
<!DOCTYPE html>
<html>
<head>
<title>AIP Week 7: Naming (JNDI) and dependency injection (CDI)</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link href="resources/normalize.css" rel="stylesheet" />
<link href="resources/stylize.css" rel="stylesheet" />
</head>
<body>
<div class="menu">
<ul>
<li><a href="https://online.uts.edu.au/">UTS Online</a></li>
<li class="title">/</li>
<li><a href="index.html">Learning</a></li>
<li class="title">/</li>
<li class="title">Week 7</li>
</ul>
<ul>
<li class="title">Study</li>
<li><a href="07-practice.html">Practice</a></li>
<li><a href="07-challenge.html">Challenge</a></li>
<li><a href="07-solutions.html">Solutions</a></li>
</ul>
</div>
<div class="container">
<h1>Naming (JNDI) and dependency injection (CDI)</h1>
<p><i>Study for Week 7: 12 September</i></p>
<p>This week you will see how to access configuration that is managed by a Java EE container. In addition, you will see how the container can automatically manage different scopes.</p>
<div class="section">
<a name="outcomes"></a>
<input id="outcomes" type="checkbox" autocomplete="off" />
<label for="outcomes"><h2>Outcomes</h2></label>
<div class="content">
<p>At the end of this session, you should be able to:</p>
<ul>
<li>Explain the need for applications to access context provided by an application container</li>
<li>Identify and differentiate two approaches to obtaining context: lookup and dependency injection</li>
<li>Use JNDI in a web application to look up settings and services provided by the Java EE container</li>
<li>Use CDI in a web application to inject dependencies provided by the Java EE container</li>
</ul>
</div>
</div>
<div class="section">
<a name="warmup"></a>
<input id="warmup" type="checkbox" autocomplete="off" />
<label for="warmup"><h2>Warm up study and videos</h2></label>
<div class="content">
<div class="download"><a href="07/slides.pdf"><img src="resources/slides.png" />Full slides and detailed notes</a></div>
<h3>Managing contexts in an application server</h3>
<div class="videocontainer"><iframe width="640" height="360" src="https://www.youtube.com/embed/LFgwL_0Xoc8?rel=0" frameborder="0" allowfullscreen></iframe></div>
<h3>Java Naming and Directory Interface (JNDI)</h3>
<div class="videocontainer"><iframe width="640" height="360" src="https://www.youtube.com/embed/kU6Bgc62TtU?rel=0" frameborder="0" allowfullscreen></iframe></div>
<h3>Contexts and Dependency Injection (CDI)</h3>
<div class="videocontainer"><iframe width="640" height="360" src="https://www.youtube.com/embed/6foMvG1E520?rel=0" frameborder="0" allowfullscreen></iframe></div>
</div>
</div>
<div class="section">
<a name="deeper"></a>
<input id="deeper" type="checkbox" autocomplete="off" />
<label for="deeper"><h2>Deeper study</h2></label>
<div class="content">
<p>I recommend reading Chapter 2 of Beginning Java EE 7: <br>
<a href="http://find.lib.uts.edu.au/?R=OPAC_b2874770">http://find.lib.uts.edu.au/?R=OPAC_b2874770</a></p>
</div>
</div>
<div class="section">
<a name="quiz"></a>
<input id="quiz" type="checkbox" autocomplete="off" />
<label for="quiz"><h2>Preparation activities</h2></label>
<div class="content">
<p>The preparation activity for this week is a quiz that can be found on UTS Online.</p>
</div>
</div>
<div class="section">
<a name="handson"></a>
<input id="handson" type="checkbox" autocomplete="off" />
<label for="handson"><h2>Practical exercises</h2></label>
<div class="content">
<ul>
<li><a href="07-practice.html">Hands-on practical exercises</a></li>
<li><a href="07-challenge.html">Challenge problems</a></li>
<li><a href="07-solutions.html">Sample solutions</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>