Beginning Java and Flex

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

By Filippo di Pisa

Beginning Java and Flex Cover Image

Beginning Java and Flex describes new, simpler, and faster ways to develop enterprise rich Internet applications (RIAs) by integrating the Adobe Flex framework with Java technologies like Spring, Hibernate, and more.

Full Description

  • ISBN13: 978-1-4302-2385-6
  • User Level: Beginner to Intermediate
  • Publication Date: January 5, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $46.99
  • eBook Price: $32.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

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.

What you’ll learn

  • What Adobe Flex is and how to use it in your Java development of the presentation tier or rich clients
  • How to use Spring, Hibernate, and/or Maven with Flex
  • How to use Flex and Java to create rich Internet applications and/or clients
  • How to create Flash-based/enabled business applications
  • How to write more stable Java-based Flex applications and reusable code
  • How to create some Flash-based game applications

Who this book is for

This book is for Java developers who want to get into Flex, Spring, Hibernate, and/or Maven, and for all Flex developers who want to create projects with the most frequently used Java frameworks. Also, this book could be interesting for most other web developers because Java/Flex, once learned, will increase their productivity and the quality of their development.

Table of Contents

Table of Contents

  1. Developing with Java and Flex
  2. Presenting the Sample Application
  3. Configuring Your Development Environment
  4. Inversion of Control
  5. Spring JDBC and Hibernate
  6. Spring Security
  7. Flex (The View Layer)
  8. Working with Data in Flex
  9. BlazeDS
  10. Using Flex, Spring, and Hibernate Together   
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 109:

"The XML above will inject a bean of type Message with id=“message”. Spring supports both
constructor and dependency injection."

Correction :
"The XML above will inject a bean of type Message with id=“message”. Spring supports both
constructor and setter dependency injection."

On page 144:

The the applicationContent.xml file is incorrect.
The listing shows a hibernate configuration rather than the required jdbc template implemetation.

Should be something like : -

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">

<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:jdbc.properties</value>
</list>
</property>
</bean>

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${jdbc.driverClassName}"/>
<property name="url" value="${jdbc.url}"/>
<property name="username" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
</bean>

<bean id="userDao" class="com.apress.flexjava.usermanager.dao.jdbc.UserDaoSpringJdbcImpl">
<property name="dataSource" ref="dataSource"/>
</bean>
</beans>

On page 145:
bad xml config, project can't compile.

Need to remove:
<bean
class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />

and also

<!-- Hibernate SessionFactory -->


On page 190:

In Chapter 6 (Spring security) http://www.filippodipisa.it/books/apress/flexandjava/chapter06/ldap/usersAndGroups.l
diff link is not working.