Di Pisa | Beginning Java and Flex | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 500 Seiten

Di Pisa Beginning Java and Flex

Migrating Java, Spring, Hibernate and Maven Developers to Adobe Flex
1. ed
ISBN: 978-1-4302-2386-3
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

Migrating Java, Spring, Hibernate and Maven Developers to Adobe Flex

E-Book, Englisch, 500 Seiten

ISBN: 978-1-4302-2386-3
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



Over the past few years, the now-open source Adobe Flex framework has been adopted by the Java community as the preferred framework for Java rich Internet applications (RIAs) using Flash for the presentation layer. Flex helps Java developers to build and maintain expressive web/desktop applications that deploy consistently on all major browsers, desktops, and operating systems. Beginning Java and Flex describes new, simpler, and faster ways to develop enterprise RIAs. This book is not only for Java or Flex developers, but also for all web developers who want to increase their productivity and the quality of their development. The aim of the book is to teach the new frontier of web development using open source, agile, lightweight Java frameworks with Flex. Java lightweight framework programming helps Flex developers create dynamic-looking enterprise applications. Flex and Java are becoming very popular for both business and interactive applications.

Filippo di Pisa is a Java and ActionScript/Flex developer. He has been developing in different languages for more than 10 years, focusing on enterprise applications and games. Thanks to his strong passion for language programming and software engineering, he learned different high-productivity technologies like Java, Spring, Hibernate, Ageci Security, ActionScript, Flex, ColdFusion, Fusebox, JavaScript, Perl, and others. Because of his interest in game development, he trains daily using artificial intelligence, physics, mathematics, and 3D engines like Papervision. Filippo is also a fan of agile and XP development. In 1995, while he was working for his own company, he also managed a small web room to provide hosting and housing solutions, and he learned a lot about Linux distributions Debian and Red Hat, Windows NT, DNS servers, mail servers, and so on.

Di Pisa Beginning Java and Flex jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;5
2;Table of contents;6
3;About the Author;13
4;About the Technical Reviewer;14
5;Acknowledgments;15
6;Introduction;16
6.1;Who This Book Is For;16
6.2;The Book;17
7;CHAPTER 1 Developing with Java and Flex;19
7.1;Why Java?;19
7.2;Why ActionScript?;20
7.3;Why Java and ActionScript Together?;20
7.4;Introduction to Spring;22
7.5;Programming Using Lightweight Frameworks;21
7.5.1;Benefits of Lightweight Frameworks;21
7.6;Introduction to Hibernate;26
7.6.1;The Benefits of Hibernate;27
7.7;Introduction to BlazeDS;28
7.7.1;BlazeDS vs. Adobe LiveCycle Data Services;29
7.8;Introduction to Flex;31
7.8.1;Flex vs. Ajax;31
7.8.2;Flex, Flash Cs3, and ActionScript;32
7.8.3;ActionScript vs. MXML;33
7.9;Introduction to UML;33
7.9.1;Basic Diagrams;33
7.10;Summary;36
8;CHAPTER 2 Presenting the SampleApplication;38
8.1;Architecture;38
8.2;The Presentation Layer;42
8.3;The Service Layer;42
8.4;The Data Access Layer;44
8.5;The Domain Model;45
8.6;Summary;47
9;CHAPTER 3 Configuring YourDevelopment Environment;48
9.1;The Source Code Editor: Eclipse IDE;48
9.1.1;Eclipse Projects;49
9.1.2;Eclipse Plug-ins;52
9.1.3;Installing Eclipse;53
9.1.4;Configure Eclipse for Flex and J2EE;54
9.2;Version Control: Subversion;57
9.2.1;Subversion Installation;59
9.2.2;Basic SVN Project Structure;59
9.2.3;Using SVN with the Command-Line Client;59
9.2.4;Installing Subclipse;65
9.3;The Database Tools: MySQL;66
9.3.1;Install MySQL on Windows;67
9.3.2;Installing MySQL on a Mac;69
9.3.3;Adding the MySQL GUI Tools;70
9.3.4;Basic MySQL Operation from the Command Line;71
9.3.5;Basic MySQL Operations Using MySQL Query Browser;74
9.4;The Java Application Container: Tomcat;80
9.4.1;Installing Tomcat;81
9.4.2;Tomcat Directories;82
9.4.3;Tomcat Configuration Files;82
9.5;The Presentation Tools: Flex Builder;83
9.5.1;Installing the Flex Builder;83
9.5.2;Installing the Flex SDK 4;86
9.6;The Build, Test and Deploy Tool: Maven;88
9.6.1;Installing Maven;89
9.6.2;Configuring Maven;89
9.6.3;Installing the Maven Eclipse Plug-in;90
9.6.4;Creating Your First Maven Project;90
9.6.5;The POM Document;92
9.6.6;Building a Project with Maven;94
9.6.7;Using Maven Plug-ins;94
9.6.8;Using Maven Dependencies;96
9.6.9;Using Repositories;96
9.6.10;Deploying Your Application;98
9.6.11;Creating a Maven Archetype;99
9.6.12;Flex Maven Archetypes;100
9.6.13;Useful Maven Commands;100
9.7;Summary;104
10;CHAPTER 4 Inversion of Control;105
10.1;Spring Modules;107
10.2;Spring Maven Dependencies;109
10.3;Creating a Spring Project;113
10.4;Configure the Spring Container;124
10.4.1;XML-Based Configuration;124
10.4.1.1;Writing XML Bean Definitions;125
10.4.1.2;Constructor Dependency Injection;125
10.4.1.3;Setter Dependency Injection;127
10.4.1.4;Inner Beans;128
10.4.2;Injecting Lists and Collections;128
10.4.3;Annotation-Based Configuration;133
10.4.3.1;Spring Configuration Annotations;133
10.4.3.2;Using the Annotations @PostConstruct and @PreDestroy;136
10.4.3.3;Using the Annotations @Component and @Repository;138
10.4.4;The Bean Factory;141
10.4.5;ApplicationContext and WebApplicationContext;141
10.4.6;Properties;141
10.5;Summary;145
11;CHAPTER 5 Spring JDBC and Hibernate;146
11.1;The DAO Design Pattern;146
11.2;Introduction to Plain Old JDBC;148
11.3;Introduction to Spring JDBC;156
11.3.1;JDBC Template;156
11.3.2;JDBC DAO Support;157
11.4;Hibernate and Spring;163
11.4.1;Add Hibernate to your Spring Project;163
11.4.2;Configure Hibernate;165
11.4.3;XML-Based Configuration;168
11.4.3.1;Mapping a Database Table;169
11.4.4;Annotation-Based Configuration;172
11.4.4.1;Mapping a Database Table;172
11.4.4.2;Mapping a One-to-One Relationship;176
11.4.4.3;Mapping a One-to-Many or a Many-to-One Relationship;179
11.4.4.4;Mapping a Many-to-Many Relationship;182
11.5;Using Hibernate with Spring;188
11.5.1;Querying Using HQL;189
11.5.1.1;Passing Parameters in HQL Queries;190
11.5.1.2;Named Queries;191
11.5.2;HQL and Hibernate Support Matrix;192
11.5.3;Use Native SQL;194
11.5.4;Introduction to Transactions;194
11.5.5;Summary;197
12;CHAPTER 6 Spring Security;198
12.1;Introduction to Spring Security;198
12.2;Web Authorization Using URL Patterns;199
12.3;The Importance of Filters;199
12.4;Authentication and Authorization;201
12.4.1;Authentication Methods;202
12.4.2;Decision Managers and Voters;207
12.5;Summary;209
13;CHAPTER 7 Flex (The View Layer);210
13.1;The FlashPlayer Overview;210
13.2;Flex Components;210
13.3;Flex Development Overview;213
13.4;Flex Builder;213
13.4.1;Create a Project;214
13.4.2;Flex Builder Perspectives;220
13.4.3;Build an Application;220
13.4.4;Run an Application;221
13.4.5;Debug an Application;222
13.4.6;Navigate between Classes;222
13.4.7;Shortcut keys;223
13.5;Flex Components;224
13.5.1;Containers;228
13.5.2;Layout Containers;228
13.5.3;Navigation Containers;229
13.5.4;Control Components;230
13.5.4.1;Standard Controls;230
13.5.4.2;Data-Driven Controls;232
13.5.4.3;Text Controls;233
13.5.4.4;Menu-Based Controls;233
13.6;Using External CSS Styles;234
13.7;Use Flex with Flash IDE;237
13.7.1;Create Flash Animations for Flex;241
13.8;Flex Events;244
13.8.1;Custom Events;248
13.9;Data Binding;252
13.10;Creating Custom Components;254
13.10.1;MXML Custom Components;255
13.10.2;AS Custom Components;256
13.10.3;Deploying Custom Components;260
13.10.3.1;SWC Libraries;261
13.10.3.2;RSL libraries;262
13.11;Summary;264
14;CHAPTER 8 Working with Data in Flex;265
14.1;An Overview of Data Models;265
14.2;Structuring Data for Views;270
14.2.1;Data Collections;270
14.3;Access to Remote Data;275
14.3.1;HTTPService Components;276
14.3.2;Building Our First Java and Flex Application;277
14.3.3;RemoteObject Component;300
14.3.4;WebService Component;303
14.3.5;Using Eclipse Web Services Explorer;305
14.3.6;Using the WebService Component;307
14.3.7;Creating ActionScript Code to Consume a Web Service using Flex Builder;308
14.4;Storing Data on the Local Machine;312
14.5;Summary;314
15;CHAPTER 9 BlazeDS;316
15.1;Flex BlazeDS Architecture;316
15.2;Configuring BlazeDS;318
15.3;Using Remoting Services;322
15.3.1;Creating a Flex Java POJO BlazeDS Application;324
15.3.1.1;Creating the DAO Layer;330
15.3.1.2;Creating a Test Case Using JUnit;335
15.3.1.3;Creating the Service Layer;339
15.3.1.4;Configuring Eclipse to Run and Debug a Maven Application;341
15.3.2;Creating the Flex Client;345
15.4;Using Messaging Services;351
15.4.1;Real-Time Messaging with BlazeDS;351
15.4.2;Creating a Simple Chat Application;351
15.4.2.1;Creating and Configuring the Maven BlazeDS Project;352
15.4.2.2;Creating the Flex Project;357
15.4.2.3;Creating the Flex Code for Real-Time Messaging;361
15.5;Summary;365
16;CHAPTER 10 Using Flex, Spring, and HibernateTogether;366
16.1;The Flex-Spring-Hibernate Maven Archetype;366
16.1.1;Using the Flex-Spring-Hibernate Archetype;370
16.2;Configuring the Application;374
16.3;Planning the Application with UML;376
16.3.1;The Data Model UML Diagrams;376
16.3.2;The DAOs UML Diagrams;378
16.3.3;The Service Layer UML Diagram;379
16.3.4;Architecting Application Security;380
16.3.5;Injecting the Spring Beans;381
16.4;Flex Client GUI Architecture;382
16.5;Develop the Flex-Java-Spring-Hibernate Application;386
16.5.1;Coding the Domain Objects;386
16.5.2;Coding the Hibernate DAO objects;393
16.5.3;Create a Test Case;395
16.5.4;Coding the Service layer;399
16.5.5;Export Spring Services to BlazeDS;403
16.5.6;Coding the Flex GUI application;404
16.5.7;Add a Login Form to Flex;408
16.6;Summary;427
17;Index;428



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.