• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Conectando Flex4 y Spring Framework
 

Conectando Flex4 y Spring Framework

on

  • 1,535 views

Presentación donde se explica como conectar flex con Spring Framework utilizando el proyecto BlazeDS.

Presentación donde se explica como conectar flex con Spring Framework utilizando el proyecto BlazeDS.

Statistics

Views

Total Views
1,535
Views on SlideShare
1,534
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://localhost 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Conectando Flex4 y Spring Framework Conectando Flex4 y Spring Framework Presentation Transcript

    • 1
      Conectando Flex 4 y Spring Framework
      Josue Mancilla (@jujomago)
      Adobe UserGroup Bolivia Manager
      www.augbolivia.org
    • 2
      Agenda
      DescripciónSpringSource
      DescripciónPlataforma Flash
      Arquitectura de BlazeDS
      Spring BlazeDS Integration
      Servicios RPC
      Servicios de Mensajeria
      Demos
      Preguntas
    • 3
      Por que Spring y Flex ?
    • 4
      Spring esunasoluciónestandar, madura y robustaparaAplicaciones Java Empresariales.
      Spring no estaligado a unatecnologia de clienteespecifico.
      Adobe flex es la solucionobviaparadesarrolladores spring quequierenhacer RIAs
      No esnecesarioabandonar la inversion de Spring en servidorparahacer RIAs.
    • 5
      Arquitectura Plataforma Adobe Flash
    • 6
      Adobe AIR
      RTMP/S
      AMF/S
      HTTP/S
      SOAP
      .swf
      .swf
      Como funciona Flex en el Browser
      Flex Builder IDE
      Browser
      MXML and ActionScript
      Flash Player
      Flex SDK
      MXML
      ActionScript
      Flex Class Library
      Web Server
      Compile
      XML/HTTP
      REST
      SOAP Web Services
      J2EE Application Server
      BlazeDS or
      LC Data Services
      Existing Applications and Infrastructure
    • BlazeDs características principales
      BlazeDS
      RPC Services
      ServiceAdapters
      Web Service
      JMS
      HTTP Service
      Java
      RemotingService
      MessagingService
      Custom
      Publsh & Suscribe
      Collaboration
      Real Time Data Push
      7
      Proxy Service
    • Arquitectura cliente Flex
      8
    • Formato AMF (ActionMessageFormat)
      9
      http://www.jamesward.com/census2/
    • Arquitectura BlazeDS
      10
    • Serialización de Datos
      Java Class
      ActionScriptClass
      11
    • BlazeDs y Spring-BlazeDS-Integration
      Toda la configuración
      se hace al estilo de Spring DI.
      messaging-config.xml
      proxy-config.xml
      • Spring Security
      • Spring AOP
      • Transacciones
      • Anotaciones
      • Motores de Persistencia (Ibatis, Hibernate)
      remoting-config.xml
      services-config.xml
      12
    • Primeros pasos con Spring-BlazeDS
      <flex:message-broker />
      <!-- Bootstraps and exposestheBlazeDSMessageBroker -->
      <bean id="_messageBroker" class="org.springframework.flex.core.MessageBrokerFactoryBean">
      <propertyname="servicesConfigPath" value="classpath*:services-config.xml" />
      </bean>
      Sobrescribiendo la configuración
      <flex:message-broker>
      <flex:remoting-service default-channels="my-amf"/>
      <flex:message-service default-channels="my-polling-amf" />
      </flex:message-broker>
      13
    • RPC Services - RemoteObject
      Servidor
      <bean id="productService" class="flex.samples.product.ProductServiceImpl" />
      <!-- Expose the productService bean for BlazeDSremoting-->
      <flex:remoting-destination ref="productService" />
      <bean id="productService" class="flex.samples.product.ProductServiceImpl" >
      <flex:remoting-destination />
      </bean>
      Cliente
      <s:RemoteObjectid="remoteService" destination="productService” endpoint="http://localhost:8084/TestDriveFlex/messagebroker/amf" />
      14
    • MessageServices
      Servidor
      <flex:message-destination id="event-bus" />
      Cliente
      <s:Producer id="emisor" channelSet="{chs}" destination="event-bus" />
      <s:Consumer id="receptor" channelSet="{chs}" destination="event-bus" />
      15
    • Demos
      16
    • Demos
      Gracias !
      17