Real World Java EE - Night Hacks (Adam Bien).pdf
(
1210 KB
)
Pobierz
Real World Java EE
Night Hacks
Dissecting the Business Tier
Adam Bien (blog.adam-bien.com)
http://press.adam-bien.com
Real World Java EE Night Hacks
—
Dissecting the Business Tier
by Adam Bien
Copyright © 2011 press.adam-bien.com. All rights reserved.
Published by press.adam-bien.com.
For more information or feedback, contact abien@adam-bien.com.
Cover Picture:
The front picture is the porch of the Moscone Center in San Francisco and was
taken during the 2010 JavaOne conference. The name “x-ray” is inspired by the under side of the
porch :-).
Cover Designer:
Kinga Bien (http://design.graphikerin.com)
Editor:
Karen Perkins (http://www.linkedin.com/in/karenjperkins)
Printing History:
April 2011 Iteration One (First Edition)
ISBN 978-0-557-07832-5
Table of Contents
Foreword
Preface
Setting the Stage
Gathering the Requirements
Functional Requirements and the Problem Statement
Non-Functional Requirements
Constraints
The Big Picture
Next Iteration: The Simplest Possible (Working) Solution
Protected Variations …With Distribution
Back to the Roots
X-ray Probe
Dinosaur Infrastructure
XML Configuration—A
Dinosaur Use Case
Intercept and Forward
Threads for Robustness
JMX or Logging?
The Self-Contained REST Client
HTTPRequestRESTInterceptor at Large
Sending MetaData with REST or KISS in Second Iteration
Don't Test Everything
Testing the X-ray Probe
X-ray REST Services
Give Me Some REST
Convenient Transactions
EJB and POJO Injection
Eventual Consistency with Singletons
Singletons Are Not Completely Dead
@Asynchronous or Not
3
7
9
11
12
12
13
14
15
21
21
24
29
29
29
30
31
35
39
42
49
51
53
59
59
63
65
66
67
70
Persistence for Availability
When @Asynchronous Becomes Dangerous
Who Reads Logs—Or How to Monitor Your Application
MXBeans—The Easy Way to Expose Cohesive Data
Distributing Events Without JMS—Leaner Than an Observer
REST for Monitoring
XML over Annotations?
Events...And the Type Is Not Enough
REST and HTML Serialization
Configuration
Over Convention with Inversion of Control
Easy Extensibility for the Unlikely Case
RESTful Configuration
Logger Injection
Unit Test Is Not Integration Test
Injection and Infrastructure Testing with Aliens
Accidental Performance Improvement of Factor 250
X-ray Consumer Client
REST Client in a Class
Timeouts Are Crucial
Velocity Integration
Roller Integration
Development Process
Build and Deployment
Continuous Integration and QA
Fitnesse + Java EE = Good Friends
Build Your Fitnesse
Continuous Quality Feedback with Sonar
Git/Mercurial in the Clouds
...In the Real World
Java EE Loves Stress and Laughs About JUnit
4
72
76
77
79
83
86
90
91
95
98
102
103
106
109
110
118
123
123
126
127
128
131
131
135
138
144
147
148
149
151
Stress (Test) Kills Slowly
Finding Bugs with Stress Tests
...and How Did It Perform?
Lessons Learned
Entity Control Boundary: The Perhaps Simplest Possible Architecture
Inversion of Thinking
Business Components
Entity Control Boundary
Boundary
Control
Entity
Some Statistics
151
152
153
155
157
157
157
159
159
160
161
165
5
Plik z chomika:
riot000
Inne pliki z tego folderu:
Real World Java EE Patterns - Rethinking Best Pracitces (2009, Adam Bien).pdf
(6527 KB)
Real World Java EE - Rethinking Best Practices - Adam Bien presentation.pdf
(2797 KB)
Real World Java EE - Night Hacks (Adam Bien).pdf
(1210 KB)
real_world_java_ee_patterns.pdf
(883 KB)
Book Real World Java EE Patterns Ret... - Dokumenty Google.htm
(421 KB)
Inne foldery tego chomika:
Java reference cards
Java SE7 books
Oracle Certified Associate Java SE 7 Programmer Practice Exams (1Z0-803)
Zgłoś jeśli
naruszono regulamin