BlazeDS

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    BlazeDS - Presentation Transcript

    1.  
    2. “ I am a Dumb developer”
    3. Things to know!
      • Data Connectivity
      • Role of LCDS
      • Data Management
      • Web Service
      • Remote Service ( RPC ?)
      • Proxy Service
      • JMS (pub-sub model)
      • What’s that “I” in RIA?
    4. Game begins!
      • What is BlazeDS?
        • Java remoting and Messaging Technology.
        • Enables developers to connect to back-end distributed data and push data in real-time to Adobe Flex and Adobe AIR applications
        • Open Source
        • From SOAP to AMF (Action Message Format)
        • 10 times faster than XML based protocols, how?
        • Previously known as Adobe LCDS
    5. Interaction with RPC
    6. Using RPC components
      • Instead of Contacting services, RPC components contact “Destinations”
      • Destination: Manageable Service Endpoints
      • Managed using XML based configuration file
      • “ Remote Object” not possible without BlazeDS
      • Adobe Flash Player blocks request to any external hosts, solution?
    7. Understanding RPC
      • Crossdomain.xml required ( For apps that are not using BlazeDS )
      • XML file that indicates
        • Data and documents are available to SWF files served from certain/all domains
        • Must be in “web root” of the server
    8. AMF – “10 times faster”
      • Compact binary format for data serialization/ deserialization and remote method invocation.
      • Object encoding controls how objects are represented in Action Message Format (AMF).
      • Representation that can be transferred over HTTP/HTTPS.
      • As data size increases the performance benefits of using BlazeDS increase exponentially. 
    9. Fast, How?
      • AMF improves performance by
        • Dramatically compressing the size of data transferred.
        • Parsing binary data into objects in memory far more efficiently than parsing XML data.
    10. Quick Brief
      • Message Agents
        • Message Producers & Consumers
        • Exchange messages through a common destination
      • Channel and endpoints
        • Formats, Translates messages into network-specific form.
        • Delivers to the endpoint (on the server)
        • Server-Side Channel Unmarshals messages
        • Configuration settings ( XML files) at runtime
      • Message Broker
        • Routes messages to the appropriate service based on its type
      • Channel Types
    11. Configuration file
      • Channel Configuration
        • Configure channels using services-config.xml
        • AMF protocol use an optimization technique
        • Assign channel at runtime( AS Code) by creating a ChannelSet object, and adding a channel to it.
          • Var cs:ChannelSet = new ChannelSet();
          • Var channel:Channel = new AMFChannel(“name”, endpoint)
          • cs.addChannel(channel);
          • Remoteobject.channelSet = cs;
    12. Remote Object component
      • Access methods of server-side java objects.
      • No need to specify 0bjects as operations in web services
      • Use RemoteObject component in MXML/AS
      • Server - Proxied access to an RPC service
      • Communication happens over a “destination”
      • Configured in the remoting-config.xml
        • RPC method or URL, channel, adapter
      • Asynchronous communication
        • AsyncToken object
    13. Configure other Service
      • Http Service and web service use proxy-service.xml
        • Limit access to specific URL
        • Provide Security
    14. Things overlooked
      • How adapters are created?
      • How serialization happens between AS and Java?
      • How to pass parameters to remote objects?
        • Use <mx:method>
      • How is data polled?
        • Long Polling
        • Polling
        • Real-time polling
    15. Configuring BlazeDS
      • Tomcat
        • Unzip the blazeds-turnkey file on to your C: drive
        • Blazeds comes with Tomcat default.
        • Create a new application: C:lazeds omcatwebapps
        • Copy & paste the META-INF, WEB-INF folder from the samples (zip) file.
        • Store all your java class files in WEB-INF/classes folder
        • Configure remoting-config.xml under WEB-INF/flex/ for all your remoting related details (destinations)
          • Create a <property/> and a specify a <source/>
        • Configure messaging-config.xml under WEB-INF/flex for all your messaging (real-time) by adding your destination
        • For all other service related details use the proxy-config.xml
        • Give references of all these xml files in services-config.xml (done by default)
        • Run your application http://<localhost/ip>:<portno>/<appname>
    16. Configure BlazeDS with Jboss
      • Create a new project : {jboss_root}/server/default/deploy
        • Put your war/ear/sar folder here or create a folder with “.war” type
        • Include the META-INF & WEB-INF folder in the war
        • Restart your server if it does not “Hot deploy”
        • Run your application http://<localhost/ip>:<portno>/<appname>
    17. Hmmm… I don’t remember anything?? Questions?

    + PriyankPriyank, 2 years ago

    custom

    3348 views, 2 favs, 2 embeds more stats

    An overview of the BlazeDS, an open source data ser more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3348
      • 3316 on SlideShare
      • 32 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 81
    Most viewed embeds
    • 25 views on http://priyank-genius.blogspot.com
    • 7 views on http://priyankkapadia.com

    more

    All embeds
    • 25 views on http://priyank-genius.blogspot.com
    • 7 views on http://priyankkapadia.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories