Brilliant. I've read a lot about Flex and Java but finally this book has given me a full picture and thanks to the author's Maven archetype I can now start a Flex-Spring-Hibernate-BlazeDs application with all the relevant libraries by simply using the eclipse maven plugin.
The book is full of great examples and there's even a chapter helping configure our eclipse IDE with all plugins needed to develop flex-java EE applications.
I definitely recommend this book to others.
Author(s): Filippo di Pisa
Edition: 1st Edition.
Publisher: Apress
Year: 2010
Language: English
Commentary: +OCR
Pages: 448
Beginning Java and Flex: Migrating Java, Spring, Hibernate, and Maven Developers to\rAdobe Flex\r......Page
Contents at a Glance......Page 5
Contents......Page 6
About the Author......Page 13
About the Technical Reviewer......Page 14
Acknowledgments......Page 15
Who This Book Is For......Page 16
The Book......Page 17
Why Java?......Page 20
Why Java and ActionScript Together?......Page 21
Benefits of Lightweight Frameworks......Page 22
Introduction to Spring......Page 23
Introduction to Hibernate......Page 27
The Benefits of Hibernate......Page 28
Introduction to BlazeDS......Page 29
BlazeDS vs. Adobe LiveCycle Data Services......Page 30
Flex vs. Ajax......Page 32
Flex, Flash Cs3, and ActionScript......Page 33
Basic Diagrams......Page 34
Summary......Page 37
Architecture......Page 40
The Service Layer......Page 44
The Data Access Layer......Page 46
The Domain Model......Page 47
Summary......Page 49
The Source Code Editor: Eclipse IDE......Page 50
Eclipse Projects......Page 51
Eclipse Plug-ins......Page 54
Installing Eclipse......Page 55
Configure Eclipse for Flex and J2EE......Page 56
Version Control: Subversion......Page 59
Using SVN with the Command-Line Client......Page 61
Installing Subclipse......Page 67
The Database Tools: MySQL......Page 68
Install MySQL on Windows......Page 69
Installing MySQL on a Mac......Page 71
Adding the MySQL GUI Tools......Page 72
Basic MySQL Operation from the Command Line......Page 73
Basic MySQL Operations Using MySQL Query Browser......Page 76
The Java Application Container: Tomcat......Page 82
Installing Tomcat......Page 83
Tomcat Configuration Files......Page 84
Installing the Flex Builder......Page 85
Installing the Flex SDK 4......Page 88
The Build, Test and Deploy Tool: Maven......Page 90
Configuring Maven......Page 91
Creating Your First Maven Project......Page 92
The POM Document......Page 94
Using Maven Plug-ins......Page 96
Using Repositories......Page 98
Deploying Your Application......Page 100
Creating a Maven Archetype......Page 101
Useful Maven Commands......Page 102
Summary......Page 106
Inversion of Control......Page 108
Spring Modules......Page 110
Spring Maven Dependencies......Page 112
Creating a Spring Project......Page 116
XML-Based Configuration......Page 127
Constructor Dependency Injection......Page 128
Setter Dependency Injection......Page 130
Injecting Lists and Collections......Page 131
Spring Configuration Annotations......Page 136
Using the Annotations @PostConstruct and @PreDestroy......Page 139
Using the Annotations @Component and @Repository......Page 141
Properties......Page 144
Summary......Page 148
The DAO Design Pattern......Page 150
Introduction to Plain Old JDBC......Page 152
JDBC Template......Page 160
JDBC DAO Support......Page 161
Add Hibernate to your Spring Project......Page 167
Configure Hibernate......Page 169
XML-Based Configuration......Page 172
Mapping a Database Table......Page 173
Mapping a Database Table......Page 176
Mapping a One-to-One Relationship......Page 180
Mapping a One-to-Many or a Many-to-One Relationship......Page 183
Mapping a Many-to-Many Relationship......Page 186
Using Hibernate with Spring......Page 192
Querying Using HQL......Page 193
Passing Parameters in HQL Queries......Page 194
Named Queries......Page 195
HQL and Hibernate Support Matrix......Page 196
Introduction to Transactions......Page 198
Summary......Page 201
Introduction to Spring Security......Page 202
The Importance of Filters......Page 203
Authentication and Authorization......Page 205
Authentication Methods......Page 206
Decision Managers and Voters......Page 211
Summary......Page 213
Flex Components......Page 214
The Flex Framework Architecture......Page 215
Flex Builder......Page 217
Create a Project......Page 218
Build an Application......Page 224
Run an Application......Page 225
Navigate between Classes......Page 226
Shortcut keys......Page 227
Flex Components......Page 228
Layout Containers......Page 232
Navigation Containers......Page 233
Standard Controls......Page 234
Data-Driven Controls......Page 236
Menu-Based Controls......Page 237
Using External CSS Styles......Page 238
Use Flex with Flash IDE......Page 241
Create Flash Animations for Flex......Page 245
Flex Events......Page 248
Custom Events......Page 252
Data Binding......Page 256
Creating Custom Components......Page 258
MXML Custom Components......Page 259
AS Custom Components......Page 260
Deploying Custom Components......Page 264
SWC Libraries......Page 265
RSL libraries......Page 266
Summary......Page 268
An Overview of Data Models......Page 270
Data Collections......Page 275
Access to Remote Data......Page 280
HTTPService Components......Page 281
Building Our First Java and Flex Application......Page 282
RemoteObject Component......Page 305
WebService Component......Page 308
Using Eclipse Web Services Explorer......Page 310
Using the WebService Component......Page 312
Creating ActionScript Code to Consume a Web Service using Flex Builder......Page 313
Storing Data on the Local Machine......Page 317
Summary......Page 319
Flex BlazeDS Architecture......Page 322
Configuring BlazeDS......Page 324
Using Remoting Services......Page 328
Creating a Flex Java POJO BlazeDS Application......Page 330
Creating the Server Data Model......Page 334
Creating the DAO Layer......Page 336
Creating a Test Case Using JUnit......Page 341
Creating the Service Layer......Page 345
Configuring Eclipse to Run and Debug a Maven Application......Page 347
Creating the Flex Client......Page 351
Creating a Simple Chat Application......Page 357
Creating and Configuring the Maven BlazeDS Project......Page 358
Creating the Flex Project......Page 363
Creating the Flex Code for Real-Time Messaging......Page 367
Summary......Page 371
The Flex-Spring-Hibernate Maven Archetype......Page 372
Using the Flex-Spring-Hibernate Archetype......Page 376
Configuring the Application......Page 380
The Data Model UML Diagrams......Page 382
The DAOs UML Diagrams......Page 384
The Service Layer UML Diagram......Page 385
Architecting Application Security......Page 386
Injecting the Spring Beans......Page 387
Flex Client GUI Architecture......Page 388
Coding the Domain Objects......Page 392
Coding the Hibernate DAO objects......Page 399
Create a Test Case......Page 401
Coding the Service layer......Page 405
Export Spring Services to BlazeDS......Page 409
Coding the Flex GUI application......Page 410
Add a Login Form to Flex......Page 414
Summary......Page 433
Index......Page 434