<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sujit Reddy G - The Evangelist</title>
	<atom:link href="http://sujitreddyg.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sujitreddyg.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sat, 21 Nov 2009 07:34:26 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='sujitreddyg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/84bcee6cc79ba3906fce7ff6acf18017?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Sujit Reddy G - The Evangelist</title>
		<link>http://sujitreddyg.wordpress.com</link>
	</image>
			<item>
		<title>LiveCycle Data Services (LCDS) 3 Released</title>
		<link>http://sujitreddyg.wordpress.com/2009/11/21/livecycle-data-services-lcds-3-released/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/11/21/livecycle-data-services-lcds-3-released/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 07:33:37 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Flex and Java]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[flex and lcds]]></category>
		<category><![CDATA[lcds 3 released]]></category>
		<category><![CDATA[lcds 3.0 released]]></category>
		<category><![CDATA[lcds3 released]]></category>
		<category><![CDATA[livecycle dataservices 3]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=988</guid>
		<description><![CDATA[LiveCycle Data Services 3.0 is released as part of LiveCycle ES 2  

What&#8217;s New

Model driven development of Flex applications
Reliable Messaging
Throttling
Edge Server
Load test harness: Simulate Flex clients in Java

Documentation:
LiveCycle Data Services ES2 Quick Starts &#8211; http://www.adobe.com/go/learn_lcds3_modeling_howto
Other documentation &#8211; http://help.adobe.com/en_US/livecycle/9.0/lc_ds_list.html
Download Developer Version
You can Download the trial or a free developer version to get started from this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=988&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>LiveCycle Data Services 3.0 is released as part of LiveCycle ES 2 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <a href="http://anilchannappa.org/" target="_blank"><br />
</a></p>
<p><strong>What&#8217;s New</strong></p>
<ol>
<li>Model driven development of Flex applications</li>
<li>Reliable Messaging</li>
<li>Throttling</li>
<li>Edge Server</li>
<li>Load test harness: Simulate Flex clients in Java</li>
</ol>
<p><strong>Documentation:</strong></p>
<p>LiveCycle Data Services ES2 Quick Starts &#8211; <a href="http://www.adobe.com/go/learn_lcds3_modeling_howto" target="_blank">http://www.adobe.com/go/learn_lcds3_modeling_howto</a></p>
<p>Other documentation &#8211; <a href="http://help.adobe.com/en_US/livecycle/9.0/lc_ds_list.html" target="_blank">http://help.adobe.com/en_US/livecycle/9.0/lc_ds_list.html</a></p>
<p><strong>Download Developer Version</strong></p>
<p>You can Download the trial or a free developer version to get started from this URL <a href="http://www.adobe.com/go/trylivecycle_dataservices" target="_blank">http://www.adobe.com/go/trylivecycle_dataservices</a></p>
<p>Please find more details regarding the announcement on Anil Channappa&#8217;s (Product Manager LCDS and BlazeDS) blog at this URL <a href="http://anilchannappa.org/2009/11/20/lcds-3-0-released/" target="_blank">http://anilchannappa.org/2009/11/20/lcds-3-0-released/</a></p>
<p>Congratulations to the entire LiveCycle Data Services team &#8230; LCDS team Rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/988/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/988/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/988/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=988&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/11/21/livecycle-data-services-lcds-3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>
	</item>
		<item>
		<title>Speaking at Adobe devsummit Chennai and Hyderabad</title>
		<link>http://sujitreddyg.wordpress.com/2009/11/09/speaking-at-adobe-devsummit-chennai-and-hyderabad/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/11/09/speaking-at-adobe-devsummit-chennai-and-hyderabad/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 13:52:57 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Flex and Java]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[flex and lcds]]></category>
		<category><![CDATA[adobe devsummit]]></category>
		<category><![CDATA[Adobe events]]></category>
		<category><![CDATA[adobe flash platform]]></category>
		<category><![CDATA[adobe flash platform events]]></category>
		<category><![CDATA[data centric development]]></category>
		<category><![CDATA[mode driven development]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=975</guid>
		<description><![CDATA[I will be speaking on Data Centric Development on Adobe Flash Platform and also will be handling the Learn by doing &#8211; Part 2: Integrate with server session along with Prashant Singh.
Summit attendees will get a complimentary Flex Builder 3 Professional License. Please find session abstracts and more details below  

Adobe devsummit is the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=975&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I will be speaking on <strong>Data Centric Development on Adobe Flash Platform</strong> and also will be handling the <strong>Learn by doing &#8211; Part 2:</strong><strong> Integrate with server</strong> session along with <a href="http://prashants.wordpress.com/" target="_blank">Prashant Singh</a>.</p>
<p>Summit attendees will get a complimentary Flex Builder 3 Professional License. Please find session abstracts and more details below <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/home.html" target="_blank"><img class="aligncenter" src="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/Badges/Badge_speaker_hybd&amp;ch.jpg" alt="I am speaking at Adobe devsummit" width="200" height="260" /></a></p>
<p>Adobe devsummit is the biggest annual developer event focused on the Adobe Flash Platform. This event attracts a rich demographic mix spanning designers and developers in India. Adobe has consistently showcased path breaking technologies at devsummit.</p>
<p>For the first time Adobe devsummit is coming to <strong>Chennai</strong>, India (<strong>24<sup>th</sup> November</strong>, 2009) and <strong>Hyderabad</strong>, India (<strong>1<sup>st</sup> December</strong>, 2009). Please find more details on Adobe devsummit Chennai and Hyderabad and register at this URL <a href="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/home.html" target="_blank">http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/home.html</a></p>
<p>Excited to meet the developers in Chennai and Hyderabad <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Session Abstracts</strong></p>
<p><span style="text-decoration:underline;"><strong>Data Centric Development on Adobe Flash Platform</strong></span></p>
<p>See how to build an engaging Flex application for any server side technology productively. While application created with Flex and Flash already have ability to communicate with various back ends, see how data services can add power to a back end.</p>
<p>This session starts with showing how to use <strong>Data-Centric Development</strong> feature in <strong>Flash Builder 4</strong> to productively create Flex applications connecting to various server technologies. Next, see how the brand new <strong>model-driven development</strong> feature of <strong>LiveCycle Data Services ES</strong> allows you to build and maintain data-driven Flex applications with an unprecedented level of productivity and flexibility.</p>
<p><span style="text-decoration:underline;"><strong>Learn by doing &#8211; Part 2: Integrate with server</strong></span><strong> </strong></p>
<p>Learn how to connect your Flex application to servers for retrieving/storing data; and also deploy your application. We will demonstrate how you can connect to various server technologies like Java, .NET and PHP using remoting and web services. You will also learn how to use the Data-Centric development feature in Flash Builder 4 to develop Flex applications that connect with various server technologies.</p>
<p>If you are living in and around Chennai or Hyderabad, go ahead and register for the summit <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Catch you all at the summit <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/975/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/975/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/975/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/975/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/975/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/975/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/975/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/975/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/975/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/975/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=975&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/11/09/speaking-at-adobe-devsummit-chennai-and-hyderabad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://endtoend.in/apps/forms/adobe/DevSummitNovDec09/Badges/Badge_speaker_hybd&#38;ch.jpg" medium="image">
			<media:title type="html">I am speaking at Adobe devsummit</media:title>
		</media:content>
	</item>
		<item>
		<title>Call for sessions at Adobe DevSummit, Chennai and Hyderabad</title>
		<link>http://sujitreddyg.wordpress.com/2009/10/22/call-for-sessions-at-adobe-devsummit-chennai-and-hyderabad/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/10/22/call-for-sessions-at-adobe-devsummit-chennai-and-hyderabad/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 12:56:29 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[announcements]]></category>
		<category><![CDATA[adobe devsummit]]></category>
		<category><![CDATA[adobe devsummit india]]></category>
		<category><![CDATA[call for speakers adobe devsummit]]></category>
		<category><![CDATA[devsummit]]></category>
		<category><![CDATA[devsummit india]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=971</guid>
		<description><![CDATA[
Adobe DevSummit is the biggest annual developer event focused on the Adobe Flash Platform. This event attracts a rich demographic mix spanning designers and developers in India. Adobe has consistently showcased path breaking technologies at DevSummit.
For the first time DevSummit is coming to Chennai and Hyderabad. DevSummit in Chennai will be on 24th November, 2009 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=971&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:center;"><img class="size-medium wp-image-972 aligncenter" title="Adobe DevSummit, 2009 Chennai and Hyderabad" src="http://sujitreddyg.files.wordpress.com/2009/10/adobe-devsummit.jpg?w=300&#038;h=33" alt="Adobe DevSummit, 2009 Chennai and Hyderabad" width="300" height="33" /></p>
<p>Adobe DevSummit is the biggest annual developer event focused on the Adobe Flash Platform. This event attracts a rich demographic mix spanning designers and developers in India. Adobe has consistently showcased path breaking technologies at DevSummit.</p>
<p>For the first time DevSummit is coming to Chennai and Hyderabad. DevSummit in <strong>Chennai </strong>will be on <strong>24th November</strong>, 2009 and in <strong>Hyderabad </strong>on <strong>1st December</strong>, 2009. We will be posting more details on the event and venue soon <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>We would love to have the experts from the Adobe developer community take the stage and share their knowledge and insights on Adobe Flash Platform. Please find more details and submit your session proposals at the URL below.</p>
<p><a href="http://flashahead.adobe.com/events/devsummitsessionproposals/" target="_blank">http://flashahead.adobe.com/events/devsummitsessionproposals/</a></p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/971/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/971/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/971/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=971&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/10/22/call-for-sessions-at-adobe-devsummit-chennai-and-hyderabad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/adobe-devsummit.jpg?w=300" medium="image">
			<media:title type="html">Adobe DevSummit, 2009 Chennai and Hyderabad</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby on Rails extension for Flash Builder 4</title>
		<link>http://sujitreddyg.wordpress.com/2009/10/13/ruby-on-rails-extension-for-flash-builder-4/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/10/13/ruby-on-rails-extension-for-flash-builder-4/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 07:26:47 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[data centric development using flex and ruby on rails]]></category>
		<category><![CDATA[dcd using flex and ruby on rails]]></category>
		<category><![CDATA[flash builder and ruby on rails]]></category>
		<category><![CDATA[flashbuilder4]]></category>
		<category><![CDATA[flex and ruby on rails]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=961</guid>
		<description><![CDATA[Adobe Flash Builder4 beta 2 is available on http://labs.adobe.com for downloading. One of the themes of Flash Builder 4 is to make data-centric development a lot more easier.  You can find articles on developing Flex application for various server technologies using Flash Builder 4 at this URL http://sujitreddyg.wordpress.com/flash-builder-4
The Data Centric work flows in Flash [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=961&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Adobe Flash Builder4 beta 2 is available on http://labs.adobe.com for downloading. One of the themes of Flash Builder 4 is to make data-centric development a lot more easier.  You can find articles on developing Flex application for various server technologies using Flash Builder 4 at this URL <a href="http://sujitreddyg.wordpress.com/flash-builder-4" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4</a></p>
<p>The Data Centric work flows in Flash Builder 4 are designed to be extensible i.e. you can add a new plugin to Flash Builder by implementing the interfaces exposed by Flash Builder and add support for any back end of your choice.</p>
<p><a href="http://www.linkedin.com/pub/gaurav-priyadarshi/4/69b/71" target="_blank">Gaurav Priyadarshi</a> from Adobe Flex team extended to add support for consuming AMF(Remoting) based services running on a Ruby on Rails driven server.</p>
<p>You need Flash Builder 4 beta 2 to use this plugin, download and install Flash Builder 4 from this URL <a href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank">http://labs.adobe.com/technologies/flashbuilder4/</a> and then follow instructions below to set up Ruby on Rails plugin.</p>
<p>Please download the plugin and install from this URL <a href="http://dcdror.riaforge.org/" target="_blank">http://dcdror.riaforge.org/</a></p>
<p>Details on installing the plugin and setting up Ruby on Rails project can be found at this URL <a href="http://dcdror.riaforge.org/blog/index.cfm/2009/10/9/Using-Ruby-On-Rails-plugin-for-DCD" target="_blank">http://dcdror.riaforge.org/blog/index.cfm/2009/10/9/Using-Ruby-On-Rails-plugin-for-DCD</a></p>
<p>Details on using the plugin can be found at this URL <a href="http://dcdror.riaforge.org/blog/index.cfm/2009/10/9/Using-the-plugin-from-FlashBuilder4" target="_blank">http://dcdror.riaforge.org/blog/index.cfm/2009/10/9/Using-the-plugin-from-FlashBuilder4</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/961/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=961&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/10/13/ruby-on-rails-extension-for-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Flex and LCDS based CRUD application using Flash Builder 4</title>
		<link>http://sujitreddyg.wordpress.com/2009/10/13/building-flex-and-lcds-based-crud-application-using-flash-builder-4/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/10/13/building-flex-and-lcds-based-crud-application-using-flash-builder-4/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 06:09:16 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex and Java]]></category>
		<category><![CDATA[flex and lcds]]></category>
		<category><![CDATA[flash builder with lcds]]></category>
		<category><![CDATA[sample application using lcds and flash builder]]></category>
		<category><![CDATA[sample application using LCDs and flex]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=926</guid>
		<description><![CDATA[In this article we will create a CRUD application using Adobe Flex and LiveCycle Data Services. Flash Builder 4 allows developers to build Flex front end for LiveCycle Data Services (LCDS) Data management service destinations with just couple of clicks, so we will use Flash Builder 4 to develop this application.
Below are the steps we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=926&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In this article we will create a CRUD application using Adobe Flex and LiveCycle Data Services. Flash Builder 4 allows developers to build Flex front end for LiveCycle Data Services (LCDS) Data management service destinations with just couple of clicks, so we will use Flash Builder 4 to develop this application.</p>
<p>Below are the steps we will follow to complete our application</p>
<ol>
<li>Set up LiveCycle Data Services</li>
<li>Use Flash Builder to generate Flex code to invoke methods in Java class on the server</li>
<li>Retrieve data from server and display in the application</li>
<li>Allow user to add/update/delete entries from the application</li>
</ol>
<p>In this article we will be building a Flex application for a Data Management service destination in the samples application called <em>lcds-samples</em> bundled with LiveCycle Data Services 3 Beta 3.</p>
<p>Article allows you to skip any of steps mentioned above and copy the code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Let’s get started <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can download the completed project from here <a href="http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD.zip" target="_blank">http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD.zip</a></p>
<p><strong>Install LCDS 3</strong></p>
<p>Download LiveCycle Data Services 3 from this URL <a href="http://labs.adobe.com/technologies/livecycle_dataservices3/" target="_blank">http://labs.adobe.com/technologies/livecycle_dataservices3/</a>. You will be downloading a file named<em> livecycle_dataservices3_b3_win_100509.exe</em>, execute this file to install. I have installed LCDS 3 with Tomcat to <em>C:\lcds3beta3</em></p>
<p><strong>Enabling RDSDispatchServlet</strong></p>
<p>Flash Builder uses the <em>RDSDispatchServlet </em>(part of LCDS) to retrieve destinations information from the server. By default the <em>RDSDispatchServlet</em> is commented out in <em>web.xml</em>. Open <em>C:\lcds3beta3\tomcat\webapps\lcds\WEB-INF\web.xml</em> using a text editor and remove comment around <em>RDSDispatchServlet </em>Servlet definition and the URL mapping as shown below. Also set the useAppserverSecurity parameter value to “false” as shown below.</p>
<p><em> &lt;servlet&gt;</em></p>
<p><em> &lt;servlet-name&gt;RDSDispatchServlet&lt;/servlet-name&gt;</em></p>
<p><em> &lt;display-name&gt;RDSDispatchServlet&lt;/display-name&gt;</em></p>
<p><em> &lt;servlet-class&gt;flex.rds.server.servlet.FrontEndServlet&lt;/servlet-class&gt;</em></p>
<p><em> &lt;init-param&gt;</em></p>
<p><em> &lt;param-name&gt;useAppserverSecurity&lt;/param-name&gt;</em></p>
<p><em> &lt;param-value&gt;false&lt;/param-value&gt;</em></p>
<p><em> &lt;/init-param&gt; </em></p>
<p><em> &lt;load-on-startup&gt;10&lt;/load-on-startup&gt;</em></p>
<p><em> &lt;/servlet&gt;</em></p>
<p><em> &lt;servlet-mapping id=&#8221;RDS_DISPATCH_MAPPING&#8221;&gt;</em></p>
<p><em> &lt;servlet-name&gt;RDSDispatchServlet&lt;/servlet-name&gt;</em></p>
<p><em> &lt;url-pattern&gt;/CFIDE/main/ide.cfm&lt;/url-pattern&gt;</em></p>
<p><em> &lt;/servlet-mapping&gt; </em></p>
<p><strong>Defining item class name</strong></p>
<p>Set the <em>item-class</em> property of the Data Management service destination in Data Management service configuration file (<em>C:\lcds3beta3\tomcat\webapps\lcds-samples\WEB-INF\flex\data-management-config.xml</em>) to the name of the object type which the assembler is expecting. Flash Builder 4 DCD requires this property to be set for the destinations you want to consume using DCD in Flash Builder. All the sample destinations in LCDS 3 beta 3 have this property set. Sample destination used in this article has <em>item-class</em> property set to <em>flex.samples.product.Product</em> class as shown below.</p>
<p><em> &lt;properties&gt;</em></p>
<p><em> &lt;source&gt;flex.samples.product.ProductAssembler&lt;/source&gt;</em></p>
<p><em> &lt;scope&gt;application&lt;/scope&gt;</em></p>
<p><em> &lt;item-class&gt;flex.samples.product.Product&lt;/item-class&gt;</em></p>
<p><em> &lt;metadata&gt;</em></p>
<p><em> &lt;identity property=&#8221;productId&#8221;/&gt;</em></p>
<p><em> &lt;/metadata&gt;</em></p>
<p><em> &lt;network&gt;</em></p>
<p><em> &lt;paging enabled=&#8221;false&#8221; pageSize=&#8221;10&#8243; /&gt;</em></p>
<p><em> &lt;/network&gt;</em></p>
<p><em> &lt;/properties&gt;</em></p>
<p><em> &lt;/destination&gt;</em></p>
<p><strong>Start LCDS server</strong></p>
<p>Start LCDS samples data base from the start menu, <em>start -&gt; All Programs -&gt; Adobe -&gt; LiveCycle Data Services ES 3.0 -&gt; Start Samples Database</em></p>
<p>Start LCDS server from the start menu, <em>start -&gt; All Programs -&gt; Adobe -&gt; LiveCycle Data Services ES 3.0 -&gt; Start LiveCycle Data Services Server</em></p>
<p>Please make sure both the database and the server are started.</p>
<p>We have everything ready to develop a Flex application for data management service destinations using Flash Builder 4.</p>
<p><strong>Create a Flex project</strong></p>
<p>Start Flash Builder 4 from the start menu, <em>start -&gt; All Programs -&gt; Adobe -&gt; Adobe Flash Builder Beta 2</em></p>
<p>Create a Flex project from the file menu. You will see a window launched with options to fill project properties as shown in the image below. Fill project properties as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/12.png" target="_blank"><img class="aligncenter size-medium wp-image-927" title="1" src="http://sujitreddyg.files.wordpress.com/2009/10/12.png?w=300&#038;h=181" alt="1" width="300" height="181" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set project name to <em>LCDSCRUD</em></li>
<li>Let the Application type be <em>Web</em></li>
<li>Set the SDK version to <em>3.4</em></li>
<li>Set the Application server type to <em>J2EE</em></li>
<li>Select <em>Use remote object access service </em>check box</li>
<li><em>6. </em>Select <em>LiveCycle Data Services ES</em></li>
<li><em>7. </em>Click next to continue<em> </em></li>
</ol>
<p>Now we need to set the server properties, you will see a screen with options to set the server properties as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/23.png" target="_blank"><img class="aligncenter size-medium wp-image-928" title="2" src="http://sujitreddyg.files.wordpress.com/2009/10/23.png?w=300&#038;h=181" alt="2" width="300" height="181" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set the Root folder to <em>c:\lcds3beta3\tomcat\webapps\lcds-samples</em></li>
<li>Set the Root URL to <em>http://localhost:8400/lcds-samples</em></li>
<li>Set the Context root to <em>/lcds-samples</em></li>
<li>Leave the Output folder to default, which is on the server</li>
<li>Click finish to continue</li>
</ol>
<p>All we have to do now is to see how we can consume the service and create a Flex application. With Flash Builder 4 this is very simple, let’s see how Data centric Development (DCD) features in Flash Builder 4 lets us easily consume data management services and bind them to UI controls.</p>
<p><strong>Consuming data management services from Flash Builder 4</strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/31.png" target="_blank"><img class="aligncenter size-medium wp-image-929" title="3" src="http://sujitreddyg.files.wordpress.com/2009/10/31.png?w=300&#038;h=180" alt="3" width="300" height="180" /></a></p>
<ol>
<li>Select the Data/Services window shown in the image above. If this is not visible, select it from Window -&gt; Data/Services</li>
<li>Click on “Connect to Data/Service” in the Data/Services window</li>
</ol>
<p>You will see a window launched with options to select the type of service as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/41.png" target="_blank"><img class="aligncenter size-medium wp-image-930" title="4" src="http://sujitreddyg.files.wordpress.com/2009/10/41.png?w=300&#038;h=180" alt="4" width="300" height="180" /></a></p>
<p>In this screen, select <em>LCDS</em> and click on Next to continue. You will be prompted for credentials, since we don’t have RDS authentication enabled, just select <em>No password required</em> check box and click OK to continue.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/51.png" target="_blank"><img class="aligncenter size-medium wp-image-931" title="5" src="http://sujitreddyg.files.wordpress.com/2009/10/51.png?w=300&#038;h=180" alt="5" width="300" height="180" /></a></p>
<p>Now Flash Builder will retrieve all the Remoting service and Data Management service destinations exposed by the web application and displays as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/61.png" target="_blank"><img class="aligncenter size-medium wp-image-932" title="6" src="http://sujitreddyg.files.wordpress.com/2009/10/61.png?w=300&#038;h=181" alt="6" width="300" height="181" /></a></p>
<p>Our server settings are configured to point to the sample application bundled with LCDS called <em>lcds-samples</em>. This web application has lots of destinations exposed as shown in the image above. Destinations whose <em>service-type</em> is <em>remoting-service</em> are the Remoting service destinations and the ones whose <em>service-type</em> is <em>data-service</em> are the Data Management service destinations. In this sample we will use the “inventory” data management service destination. Select the destination and click on Finish to continue.</p>
<p>Flash Builder will generate all code required to consume the service selected and will list the <em>Inventory </em>service in the services explorer as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/71.png" target="_blank"><img class="aligncenter size-medium wp-image-933" title="7" src="http://sujitreddyg.files.wordpress.com/2009/10/71.png?w=300&#038;h=180" alt="7" width="300" height="180" /></a></p>
<p>You can also see that the return types for the operations (functions/methods of assembler) are properly set. Now that we have the service created, let’s create UI.</p>
<p><strong>Creating UI</strong></p>
<p>Please copy the code from this URL <a href="http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD_1.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD_1.mxml.txt</a> into your main application file (<em>LCDSCRUD.mxml</em> in this sample). Code in the URL will add UI controls required for this sample application. After copying the code, your Flash Builder design view should look as shown in the image below.</p>
<p><strong>Note:</strong> In this article to refer to a control, we will use value set for the id property of the controls.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/81.png" target="_blank"><img class="aligncenter size-medium wp-image-934" title="8" src="http://sujitreddyg.files.wordpress.com/2009/10/81.png?w=300&#038;h=180" alt="8" width="300" height="180" /></a></p>
<p><strong>Create Form for the Customer data type</strong></p>
<p>We will display the details of the product entry selected in the <em>listProducts</em> control (created in previous step) in <em>formSelected</em><em>Product</em>. Using Flash Builder you can bind a Form control to an entity instance.  Right click on the <em>formSelectedProduct</em> and select “Bind to Data” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/91.png" target="_blank"><img class="aligncenter size-medium wp-image-935" title="9" src="http://sujitreddyg.files.wordpress.com/2009/10/91.png?w=300&#038;h=180" alt="9" width="300" height="180" /></a></p>
<p>Flash Builder will display window as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/101.png" target="_blank"><img class="aligncenter size-medium wp-image-936" title="10" src="http://sujitreddyg.files.wordpress.com/2009/10/101.png?w=300&#038;h=180" alt="10" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>We want the Form items to be generated based on a data type (<em>Product</em>) so select “Data type”</li>
<li>Select <em>Product</em> from the list of data types</li>
<li>We want the form to be editable, so select the “Make form editable” check box</li>
<li>Flash Builder will display the list of properties in the selected data type as shown in the image below. Flash Builder will also assign a UI control which it will use to display the property value as shown in the image below.</li>
</ol>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/112.png" target="_blank"><img class="aligncenter size-medium wp-image-937" title="11" src="http://sujitreddyg.files.wordpress.com/2009/10/112.png?w=300&#038;h=181" alt="11" width="300" height="181" /></a></p>
<p>In this window, you can select the items which you want to be included in the form and UI control in which you want the property value to be displayed. You can also arrange the controls in the order in which you want them to be displayed. Select, arrange the properties and modify the controls as shown in the image above.</p>
<p>Flash Builder will add FormItems to <em>formSelectedProduct</em> and binds the values of the controls under <em>formSelectedProduct</em> to <em>Product</em> instance. In this sample Flash Builder generated a <em>Product</em> instance with “product” as its id. So we will refer to the <em>Product</em> instance bound to the items in <em>formSelectedProduct</em> as p<em>roduct</em>.</p>
<p><strong>Binding data to UI Controls</strong></p>
<p>Now that we have our UI is ready, let’s get the data from the server and display it in the application.</p>
<p>Right click on the List and click on “Bind to Data ..” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/131.png" target="_blank"><img class="aligncenter size-medium wp-image-938" title="13" src="http://sujitreddyg.files.wordpress.com/2009/10/131.png?w=300&#038;h=180" alt="13" width="300" height="180" /></a></p>
<p>Flash Builder will display window as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/141.png" target="_blank"><img class="aligncenter size-medium wp-image-939" title="14" src="http://sujitreddyg.files.wordpress.com/2009/10/141.png?w=300&#038;h=180" alt="14" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>Select New service call</li>
<li>Set Service to <em>ProductService</em></li>
<li>Set Operation to <em>fill(): Product[]</em></li>
<li>Set Bing to field to <em>name</em></li>
<li>Click on OK to continue</li>
</ol>
<p>In previous step we bound the service call result to <em>listProducts</em> component, <em>listProducts</em> will send a request to the <em>fill()</em> function on the server and displays the result.</p>
<p><em>listProducts</em> is displaying only the name of the Product, so let’s display complete details of the product in <em>formSelectedProduct</em>. Right click on the <em>listProducts</em> and select “Generate Change Handler” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/151.png" target="_blank"><img class="aligncenter size-medium wp-image-940" title="15" src="http://sujitreddyg.files.wordpress.com/2009/10/151.png?w=300&#038;h=180" alt="15" width="300" height="180" /></a></p>
<p>Flash Builder will generate a function which will be invoked when user selects a different item in the <em>listProducts</em>. Flash Builder will also switch the view to Source view as shown in the image below, so that you can write code in the handler function generated.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/161.png" target="_blank"><img class="aligncenter size-medium wp-image-941" title="16" src="http://sujitreddyg.files.wordpress.com/2009/10/161.png?w=300&#038;h=180" alt="16" width="300" height="180" /></a></p>
<p>Add the code below to the generated change handler function as shown in the image above.</p>
<p><em>product = listProducts.selectedItem as Product;</em></p>
<p>In the code snippet above, p<em>roduct</em> is the instance of <em>Product</em> which was bound to the <em>formSelectedProduct</em>. In the code above, we are passing the reference of the selected <em>Product</em> instance in <em>listProducts</em> to the <em>Product</em> instance bound to <em>formSelectedProduct</em>. This line of code will populate <em>formSelectedProduct</em> with details of the selected product in <em>listProducts</em> control.</p>
<p>Now, let’s keep <em>formSelectedProduct</em> populated with values of the first Product entry in <em>listProducts</em> as soon as the product data is loaded from the server.</p>
<p><strong>Understanding the CallResponder</strong></p>
<p>How will you know when the data is returned from the server? For each service call generated in the application there will be a <em>CallResponder</em> class instance associated with it. CallResponder dispatches <em>result</em> event when the call to the service is successful and the data returned from the server can be accessed using a property called <em>lastResult </em>in<em> CallResponder</em> instance. To map the <em>CallResponder</em> instance with the service call, you have to pass the reference of the <em>AsyncToken</em> returned by the service call to the <em>token </em>property of the <em>CallResponder</em>.  You can see service call <em>AsyncToken</em> reference passed to the <em>CallResponder</em> in <em>listProducts_creationCompleteHandler</em> function as shown below.</p>
<p><em>protected function listProducts_creationCompleteHandler(event:FlexEvent):void</em></p>
<p><em>{</em></p>
<p><em> fillResult.token = productService.fill();</em></p>
<p><em>}</em></p>
<p><em>CallResponder</em> class will dispatch <em>result</em> event when the data is retrieved successfully from the server. You can add a handler to the <em>result</em> event to perform any logic when the server response is successful. In our case we will keep the first product in the <em>listProducts</em> to be selected and its value to be displayed in <em>formSelectedProduct</em> as soon as the data from the server is loaded on to the client.</p>
<p>Add a result event handler to the <em>fillResult</em> CallResponder as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/18.png" target="_blank"><img class="aligncenter size-medium wp-image-942" title="18" src="http://sujitreddyg.files.wordpress.com/2009/10/18.png?w=300&#038;h=181" alt="18" width="300" height="181" /></a></p>
<p>In the generated result handler add the following code. In the code below list is the List instance added in previous steps.</p>
<p><em>protected function fillResult_resultHandler(event:ResultEvent):void</em></p>
<p><em>{</em></p>
<p><em> if(listProducts != null)</em></p>
<p><em> {</em></p>
<p><em> listProducts.selectedIndex = 0;</em></p>
<p><em> product = listProducts.selectedItem as Product;</em></p>
<p><em> }</em></p>
<p><em>}</em></p>
<p>You can see the LCDSCRUD.mxml file with code till this step at this URL <a href="http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD_2.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD_2.mxml.txt</a></p>
<p>At this point you can save and run the application. Application will launch in a browser and displays the data retrieved from the server as shown in the image below. You can view details of the products by selecting them from the list.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/191.png" target="_blank"><img class="aligncenter size-medium wp-image-943" title="19" src="http://sujitreddyg.files.wordpress.com/2009/10/191.png?w=300&#038;h=180" alt="19" width="300" height="180" /></a></p>
<p><strong>Performing Add/Update/Delete operations</strong></p>
<p>Any data retrieved from a Data Management service destinations are managed on the client i.e. any changes made to the objects on the client will reflect on the server immediately. Since we want to commit changes to the server only on user interaction, let’s turn off the <em>autoCommit</em> property to false. Add the code below to <em>listProducts_creationCompleteHandler</em> function to turn off auto commit as shown in the image below.</p>
<p><em>productService.serviceControl.autoCommit = false;</em></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/201.png" target="_blank"><img class="aligncenter size-medium wp-image-944" title="20" src="http://sujitreddyg.files.wordpress.com/2009/10/201.png?w=300&#038;h=180" alt="20" width="300" height="180" /></a></p>
<p>Let’s invoke functions in the <em>productService</em> AS3 class when user clicks on Add/Update/Delete buttons created earlier.</p>
<p>Right click on the button labeled “Add” (id = “btnAdd”) and select “Generate Service Call ..” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/213.png" target="_blank"><img class="aligncenter size-medium wp-image-945" title="21" src="http://sujitreddyg.files.wordpress.com/2009/10/213.png?w=300&#038;h=181" alt="21" width="300" height="181" /></a></p>
<p>Flash Builder displays window as shown in the image below, in which you can select the service call which you want to invoke when user clicks on the Button.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/221.png" target="_blank"><img class="aligncenter size-medium wp-image-946" title="22" src="http://sujitreddyg.files.wordpress.com/2009/10/221.png?w=300&#038;h=180" alt="22" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set the Service to <em>ProductService</em></li>
<li>Set the Operation to <em>createProduct(arg0:Product)</em></li>
<li>Click on OK to continue</li>
</ol>
<p>The <em>createProduct</em> function selected expects an argument of the type <em>Product</em>. So Flash Builder 4 will switch to the source view and lets you enter the argument as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/231.png" target="_blank"><img class="aligncenter size-medium wp-image-947" title="23" src="http://sujitreddyg.files.wordpress.com/2009/10/231.png?w=300&#038;h=180" alt="23" width="300" height="180" /></a></p>
<p>We are creating a new instance of<em> Product </em>with default values to few properties and pass the reference to <em>createProduct </em>function. We pass the newly created Product instance reference to <em>product</em> so that user can modify the values of newly created product from <em>formSelectedProduct</em> control.</p>
<p>Code in the button click handler function will look as shown below. In the code snippet below we are also passing the <em>AsyncToken</em> returned by <em>createProduct</em> function to <em>createProductResult</em>, so that <em>createProductResult</em> object will dispatch <em>result</em> event when the service call is successful.</p>
<p><em>protected function btnAdd_clickHandler(event:MouseEvent):void</em></p>
<p><em>{</em></p>
<p><em> var newProduct:Product = new Product();</em></p>
<p><em> newProduct.category = &#8220;Enter category&#8221;;</em></p>
<p><em> newProduct.description = &#8220;Product description&#8221;;</em></p>
<p><em> newProduct.name = &#8220;Enter Name&#8221;;</em></p>
<p><em> newProduct.price = 0;</em></p>
<p><em> newProduct.qtyInStock = 0;</em></p>
<p><em> product = newProduct;</em></p>
<p><em> createProductResult.token = productService.createProduct(newProduct); </em></p>
<p><em>}</em></p>
<p>If you remember we turned off auto commit, so we need to call when user clicks the <em>btnCommit. </em>We also need to make sure the <em>btnCommit</em> is enabled only if there are any changes to the data on the client and that’s very simple just bind the <em>btnCommit</em> enabled property to <em>commitRequired</em> property as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/26.png" target="_blank"><img class="aligncenter size-medium wp-image-948" title="26" src="http://sujitreddyg.files.wordpress.com/2009/10/26.png?w=300&#038;h=181" alt="26" width="300" height="181" /></a></p>
<p>In the btnCommit_clickHandler function add the code below to commit all changes to the server.</p>
<p><em>protected function btnCommit_clickHandler(event:MouseEvent):void</em></p>
<p><em>{</em></p>
<p><em> productService.serviceControl.commit();</em></p>
<p><em>}</em></p>
<p>Similarly generate service calls for Update and Delete buttons, select <em>updateProduct</em> and <em>deleteProduct</em> operations respectively and pass the same <em>product</em> object as argument. You can view/copy the completed LCDSCRUD.mxml file at this URL <a href="http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/LCDSCRUD.mxml.txt</a></p>
<p>Save and run your application. You will see your application launched in a browser and ready for performing CRUD operations on the database entries.</p>
<p>More articles on how to use Flash Builder 4 are available at this URL <a href="../../../../../flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<p>We developed a complete CRUD application for Data Management service destination in just few minutes. Flash Builder 4 and LCDS rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/926/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=926&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/10/13/building-flex-and-lcds-based-crud-application-using-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/12.png?w=300" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/23.png?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/31.png?w=300" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/41.png?w=300" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/51.png?w=300" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/61.png?w=300" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/71.png?w=300" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/81.png?w=300" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/91.png?w=300" medium="image">
			<media:title type="html">9</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/101.png?w=300" medium="image">
			<media:title type="html">10</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/112.png?w=300" medium="image">
			<media:title type="html">11</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/131.png?w=300" medium="image">
			<media:title type="html">13</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/141.png?w=300" medium="image">
			<media:title type="html">14</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/151.png?w=300" medium="image">
			<media:title type="html">15</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/161.png?w=300" medium="image">
			<media:title type="html">16</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/18.png?w=300" medium="image">
			<media:title type="html">18</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/191.png?w=300" medium="image">
			<media:title type="html">19</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/201.png?w=300" medium="image">
			<media:title type="html">20</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/213.png?w=300" medium="image">
			<media:title type="html">21</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/221.png?w=300" medium="image">
			<media:title type="html">22</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/231.png?w=300" medium="image">
			<media:title type="html">23</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/26.png?w=300" medium="image">
			<media:title type="html">26</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Flex and Java based CRUD application using Flash Builder 4</title>
		<link>http://sujitreddyg.wordpress.com/2009/10/12/building-flex-and-java-based-crud-application-using-flash-builder-4/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/10/12/building-flex-and-java-based-crud-application-using-flash-builder-4/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 07:17:10 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex and BlazeDS]]></category>
		<category><![CDATA[Flex and Java]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[crud application using flex and blazeds]]></category>
		<category><![CDATA[crud application using flex and java]]></category>
		<category><![CDATA[flex based crud application]]></category>
		<category><![CDATA[sample application using flex and java]]></category>
		<category><![CDATA[sample application using flex java and flash builder 4]]></category>
		<category><![CDATA[web application using flex and blazeds]]></category>
		<category><![CDATA[web application using flex and java]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=899</guid>
		<description><![CDATA[In this article we will create a CRUD application using Adobe Flex and Java. Flash Builder 4 allows you to build Flex front end for Java classes on the server with just couple of clicks, so we will use Flash Builder 4 to develop the application.
BlazeDS is a Java based server technology from Adobe which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=899&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In this article we will create a CRUD application using Adobe Flex and Java. Flash Builder 4 allows you to build Flex front end for Java classes on the server with just couple of clicks, so we will use Flash Builder 4 to develop the application.</p>
<p>BlazeDS is a Java based server technology from Adobe which lets you invoke methods in Java class on server from your Flex applications. BlazeDS is the best solution for integrating Flex with Java so obviously we will use this in our sample project.</p>
<p>Below are the steps we will follow to complete our application</p>
<ol>
<li>Set up BlazeDS (copying files <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</li>
<li>Expose Java class as Remoting service destination</li>
<li>Use Flash Builder to generate Flex code to invoke methods in Java class on the server</li>
<li>Retrieve data from server and display in the application</li>
<li>Allow user to add/update/delete entries in a database table from the application</li>
</ol>
<p>Article allows you to skip any of steps mentioned above and copy the code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Let’s get started <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can download the completed project from here <a href="http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD.zip" target="_blank">http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD.zip</a></p>
<p><strong>Set up BlazeDS</strong></p>
<p>Download BlazeDS from this URL <a href="http://flexorg.wip3.adobe.com/blazeds/trunk/11835/blazeds-bin-4.0.0.11835.zip" target="_blank">http://flexorg.wip3.adobe.com/blazeds/trunk/11835/blazeds-bin-4.0.0.11835.zip</a> follow instructions at this URL to setup BlazeDS <a href="../../../../../2009/04/07/setting-up-blazeds/" target="_blank">http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/</a></p>
<p>Once BlazeDS is setup you need to expose the Java class as Remoting destination, visit this URL to know how to expose a Java class as Remoting destination <a href="../../../../../2008/01/14/invoking-java-methods-from-adobe-flex/" target="_blank">http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/</a></p>
<p>After exposing your Java class as Remoting destination using BlazeDS, follow steps below to build the Flex application.</p>
<p>In this sample we will expose <a href="http://sujitreddyg.com/fb4articles/beta2/SimpleCustomerService.java.txt" target="_blank">SimpleCustomerService.Java</a> as Remoting destination. <em>SimpleCustomerService</em> communicates with database and returns <a href="http://sujitreddyg.com/fb4articles/beta2/SimpleCustomer.java.txt" target="_blank">SimpleCustomer</a> objects.</p>
<p><strong>Setting up BlazeDS RDSDispatchServlet</strong></p>
<p>After setting up BlazeDS, you have to enable RDSDisptachServlet, which is used by Flash Builder 4 to get destination details. This is disabled by default. It’s very simple all you have to do is to un-comment/add the Servlet mapping in the web.xml.</p>
<p>Copy the Servlet URL mapping and declaration for the RDSDispatchServlet below and copy it into your web application web.xml under &lt;web-app&gt; node.</p>
<p><em>&lt;servlet&gt;</em><br />
<em>&lt;servlet-name&gt;RDSDispatchServlet&lt;/servlet-name&gt;</em><br />
<em>&lt;display-name&gt;RDSDispatchServlet&lt;/display-name&gt;</em><br />
<em>&lt;servlet-class&gt;flex.rds.server.servlet.FrontEndServlet&lt;/servlet-class&gt;</em><br />
<em>&lt;init-param&gt;</em><br />
<em>&lt;param-name&gt;useAppserverSecurity&lt;/param-name&gt;</em><br />
<em>&lt;param-value&gt;false&lt;/param-value&gt;</em><br />
<em>&lt;/init-param&gt;</em><br />
<em>&lt;load-on-startup&gt;10&lt;/load-on-startup&gt;</em><br />
<em>&lt;/servlet&gt;</em><br />
<em>&lt;servlet-mapping id=”RDS_DISPATCH_MAPPING”&gt;</em><br />
<em>&lt;servlet-name&gt;RDSDispatchServlet&lt;/servlet-name&gt;</em><br />
<em>&lt;url-pattern&gt;/CFIDE/main/ide.cfm&lt;/url-pattern&gt;</em><br />
<em>&lt;/servlet-mapping&gt;</em></p>
<p><strong>Install Flash Builder 4</strong></p>
<p>Download and install Flash Builder 4 from this URL <a href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank">http://labs.adobe.com/technologies/flashbuilder4/</a></p>
<p><strong>Creating new Flex project with BlazeDS server configurations</strong></p>
<p><strong>Create new Flex project</strong></p>
<p>Create a new Flex project from the File menu and enter project details as shown below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/11.png" target="_blank"><img class="aligncenter size-medium wp-image-902" title="1" src="http://sujitreddyg.files.wordpress.com/2009/10/11.png?w=300&#038;h=180" alt="1" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>Enter project name</li>
<li>set “Web (runs in Adobe Flash Player)” as the application type</li>
<li>Set the Flex SDK to Flex 3.4</li>
<li>Set the application server type to J2EE</li>
<li>Select BlazeDS</li>
<li>Click on Next to continue</li>
</ol>
<p><strong>Configure J2EE server settings</strong></p>
<p style="text-align:center;"><strong><a href="http://sujitreddyg.files.wordpress.com/2009/10/21.png" target="_blank"><img class="aligncenter size-medium wp-image-903" title="2" src="http://sujitreddyg.files.wordpress.com/2009/10/21.png?w=300&#038;h=180" alt="2" width="300" height="180" /></a><br />
</strong></p>
<p>In this screen:</p>
<ol>
<li>Set the <em>Root folder</em> to the root folder of your web application with BlazeDS configured. Its <em>C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\demo</em> in this sample</li>
<li>Set the <em>Root URL</em> to root URL of your BlazeDS enabled web application</li>
<li>Set the <em>Context root</em> to context root of your BlazeDS enabled web application</li>
<li>Leave the output folder to default value</li>
<li>Click on validate configuration button</li>
<li>Click finish to continue</li>
</ol>
<p><strong>Using DCD feature to connect to consume Remoting Service</strong></p>
<p>DCD or Data-Centric Development is one of the advancements to the Flash Builder 4 which lets you develop data centric applications very easily. In this sample we will see how to create a Flex application which consumes BlazeDS Remoting service. Same steps can be followed for LCDS Remoting services also.</p>
<p><strong>Creating Service using DCD</strong></p>
<p style="text-align:center;"><strong><a href="http://sujitreddyg.files.wordpress.com/2009/10/3.png" target="_blank"><img class="aligncenter size-medium wp-image-904" title="3" src="http://sujitreddyg.files.wordpress.com/2009/10/3.png?w=300&#038;h=180" alt="3" width="300" height="180" /></a><br />
</strong></p>
<p><strong> </strong></p>
<ol>
<li>Select the Data/Services window shown in the image above. If this is not visible, select it from Window -&gt; Data/Services</li>
<li>Click on “Connect to Data/Service” in the Data/Services window</li>
<li>Window as shown in the image below will be launched</li>
</ol>
<p><strong> </strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/4.png" target="_blank"><img class="aligncenter size-medium wp-image-905" title="4" src="http://sujitreddyg.files.wordpress.com/2009/10/4.png?w=300&#038;h=181" alt="4" width="300" height="181" /></a></p>
<p>Select BlazeDS and click on Next. Flash Builder will display a window asking for RDS credentials. Since we turned off security for our RDSServlet in the web.xml, select “No password required” and click on OK to continue.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/5.png" target="_blank"><img class="aligncenter size-medium wp-image-906" title="5" src="http://sujitreddyg.files.wordpress.com/2009/10/5.png?w=300&#038;h=181" alt="5" width="300" height="181" /></a></p>
<p><strong>Selecting Remoting destination</strong></p>
<p>You can see that Flash Builder listed all service destinations exposed from your web application as shown in the screen below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/6.png" target="_blank"><img class="aligncenter size-medium wp-image-907" title="6" src="http://sujitreddyg.files.wordpress.com/2009/10/6.png?w=300&#038;h=181" alt="6" width="300" height="181" /></a></p>
<p>In this screen we are selecting the destination the newly created service should use. Select a destination (<em>SimpleCustomerServiceDestination</em> in this sample) and click on Finish to continue.</p>
<p>Code for invoking the Remoting service will be generated, you can see the service and its operations (methods exposed by the Java class) being displayed in the “Data/Services” window and in the package explorer.</p>
<p><a href="http://sujitreddyg.files.wordpress.com/2009/10/7.png"><img class="aligncenter size-medium wp-image-908" title="7" src="http://sujitreddyg.files.wordpress.com/2009/10/7.png?w=300&#038;h=180" alt="7" width="300" height="180" /></a></p>
<p>Flash Builder 4 introspects return types for the Java class methods and creates AS3 classes for any custom Java classes.  We have the service class ready, let’s create UI.</p>
<p><strong>Creating UI</strong></p>
<p>Please copy the code from this URL <a href="http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD_1.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD_1.mxml.txt</a> into your main application file (<em>BlazeDSCRUD.mxml</em> in this sample). Code in the URL will add UI controls required for this sample application. After copying the code, your Flash Builder design view should look as shown in the image below.</p>
<p><strong>Note:</strong> In this article to refer to a control, we will use value set for the id property of the controls.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/8.png" target="_blank"><img class="aligncenter size-medium wp-image-909" title="8" src="http://sujitreddyg.files.wordpress.com/2009/10/8.png?w=300&#038;h=180" alt="8" width="300" height="180" /></a></p>
<p><em> </em></p>
<p><strong>Create Form for the Customer data type</strong></p>
<p>We will display the details of the customer entry selected in the <em>listCustomers</em> control (created in previous step) in <em>formSelectedCustomer</em>. Using Flash Builder you can bind a Form control to an entity instance.  Right click on the <em>formSelectedCustomer</em> and select “Bind to Data” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/9.png" target="_blank"><img class="aligncenter size-medium wp-image-910" title="9" src="http://sujitreddyg.files.wordpress.com/2009/10/9.png?w=300&#038;h=180" alt="9" width="300" height="180" /></a></p>
<p>Flash Builder will display window as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/10.png" target="_blank"><img class="aligncenter size-medium wp-image-911" title="10" src="http://sujitreddyg.files.wordpress.com/2009/10/10.png?w=300&#038;h=180" alt="10" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>We want the Form items to be generated based on a data type (<em>SimpleCustomer</em>) so select “Data type”</li>
<li>Select <em>SimpleCustomer</em> from the list of data types</li>
<li>We want the form to be editable, so select the “Make form editable” check box</li>
<li>Flash Builder will display the list of properties in the selected data type as shown in the image below. Flash Builder will also assign a UI control which it will use to display the property value as shown in the image below.</li>
</ol>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/111.png" target="_blank"><img class="aligncenter size-medium wp-image-912" title="11" src="http://sujitreddyg.files.wordpress.com/2009/10/111.png?w=300&#038;h=180" alt="11" width="300" height="180" /></a></p>
<p>In this window, you can select the items which you want to be included in the form and UI control in which you want the property value to be displayed. You can also arrange the controls in the order in which you want them to be displayed. Arrange the properties and modify the controls as shown in the image above.</p>
<p>Flash Builder will add FormItems to <em>formSelectedCustomer</em> and binds the values of the controls under <em>formSelectedCustomer</em> to <em>SimpleCustomer</em> instance. In this sample Flash Builder generated a <em>SimpleCustomer</em> instance with “simpleCustomer” as its id. So we will refer to the <em>SimpleCustomer</em> instance bound to the items in <em>formSelectedCustomer</em> as <em>simpleCustomer</em>.</p>
<p><strong>Binding data to UI Controls</strong></p>
<p>Now that we have our UI is ready, let’s get the data from the server and display it in the application.</p>
<p>Right click on the List and click on “Bind to Data ..” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/13.png" target="_blank"><img class="aligncenter size-medium wp-image-913" title="13" src="http://sujitreddyg.files.wordpress.com/2009/10/13.png?w=300&#038;h=180" alt="13" width="300" height="180" /></a></p>
<p>Flash Builder will display window as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/14.png" target="_blank"><img class="aligncenter size-medium wp-image-914" title="14" src="http://sujitreddyg.files.wordpress.com/2009/10/14.png?w=300&#038;h=181" alt="14" width="300" height="181" /></a></p>
<p>In this screen:</p>
<ol>
<li>Select New service call</li>
<li>Set Service to <em>SimpleCustomerServiceDestination</em></li>
<li>Set Operation to <em>getAllCustomers(): SimpleCustomer[]</em></li>
<li>Set Bing to field to <em>customerName</em></li>
<li>Click on OK to continue</li>
</ol>
<p>In previous step we bound the service call result to <em>listCustomers</em> component, <em>listCustomers</em> will send a request to the <em>getAllCustomers()</em> function on the server and displays the result.</p>
<p><em>listCustomers</em> is displaying only the name of the customer, so let’s display complete details of the  customer in <em>formSelectedCustomer</em>. Right click on the <em>listCustomers</em> and select “Generate Change Handler” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/15.png" target="_blank"><img class="aligncenter size-medium wp-image-915" title="15" src="http://sujitreddyg.files.wordpress.com/2009/10/15.png?w=300&#038;h=181" alt="15" width="300" height="181" /></a></p>
<p>Flash Builder will generate a function which will be invoked when user selects a different item in the <em>listCustomers</em>. Flash Builder will also switch the view to Source view as shown in the image below, so that you can write code in the handler function generated.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/16.png" target="_blank"><img class="aligncenter size-medium wp-image-916" title="16" src="http://sujitreddyg.files.wordpress.com/2009/10/16.png?w=300&#038;h=180" alt="16" width="300" height="180" /></a></p>
<p>Add the code below to the generated change handler function as shown in the image above.</p>
<p><em>simpleCustomer = listCustomers.selectedItem as SimpleCustomer;</em></p>
<p>In the code snippet above, <em>simpleCustomer</em> is the instance of <em>SimpleCustomer</em> which was bound to the <em>formSelectedCustomer</em>. In the code above, we are passing the reference of the selected <em>SimpleCustomer</em> instance in <em>listCustomers</em> to the <em>SimpleCustomer</em> instance bound to <em>formSelectedCustomer</em>. This line of code will populate <em>formSelectedCustomer</em> with details of the selected customer in <em>listCustomers</em> control.</p>
<p>Now, let’s keep <em>formSelectedCustomer</em> populated with values of the first customer entry in <em>listCustomers</em> as soon as the customer data is loaded from the server.</p>
<p><strong>Understanding the CallResponder</strong></p>
<p>How will you know when the data is returned from the server? For each service call generated in the application there will be a <em>CallResponder</em> class instance associated with it. CallResponder dispatches <em>result</em> event when the call to the service is successful and the data returned from the server can be accessed using a property called <em>lastResult </em>in<em> CallResponder</em> instance. To map the <em>CallResponder</em> instance with the service call, you have to pass the reference of the <em>AsyncToken</em> returned by the service call to the <em>token </em>property of the <em>CallResponder</em>.  You can see service call <em>AsyncToken</em> reference passed to the <em>CallResponder</em> in <em>listCustomers_creationCompleteHandler</em> function as shown below.</p>
<p><em>protected function listCustomers_creationCompleteHandler(event:FlexEvent):void</em></p>
<p><em>{</em></p>
<p><em> getAllCustomersResult.token = simpleCustomerServiceDestination.getAllCustomers();</em></p>
<p><em>}</em></p>
<p><em>CallResponder</em> class will dispatch <em>result</em> event when the data is retrieved successfully from the server. You can add a handler to the <em>result</em> event to perform any logic when the server response is successful. In our case we will keep the first Customer in the <em>listCustomers</em> to be selected and its value to be displayed in <em>formSelectedCustomer</em> as soon as the data from the server is loaded on to the client.</p>
<p>Add a result event handler to the <em>getAllCustomersResult</em> CallResponder as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/17.png" target="_blank"><img class="aligncenter size-medium wp-image-917" title="17" src="http://sujitreddyg.files.wordpress.com/2009/10/17.png?w=300&#038;h=180" alt="17" width="300" height="180" /></a></p>
<p>In the generated result handler add the following code. In the code below list is the List instance added in previous steps.</p>
<p><em>if(listCustomers != null)</em></p>
<p><em>{</em></p>
<p><em>listCustomers.selectedIndex = 0;</em></p>
<p><em> simpleCustomer = listCustomers.selectedItem as SimpleCustomer;</em></p>
<p><em>}</em></p>
<p>You can see the BlazeDSCRUD.mxml file with code till this step at this URL <a href="http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD_2.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD_2.mxml.txt</a></p>
<p>At this point you can save and run the application. Application will launch in a browser and displays the data retrieved from the server as shown in the image below. You can view details of the customs by selecting them from the list.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/19.png" target="_blank"><img class="aligncenter size-medium wp-image-918" title="19" src="http://sujitreddyg.files.wordpress.com/2009/10/19.png?w=300&#038;h=181" alt="19" width="300" height="181" /></a></p>
<p><strong>Performing Add/Update/Delete operations</strong></p>
<p>In the <em>SimpleCustomerService</em> Java class on the server we have methods which can perform Add/Update/Delete operations in the database. If you observe Flash Builder generated AS3 functions in <em>SimpleCustomerServiceDestination.as</em> class for each public method of the selected Remoting destination including the addCustomer() , updateCustomer() and deleteCustomer(). We just have to invoke these AS3 function in order to invoke corresponding Java method on the server.</p>
<p>Let’s invoke functions in the <em>SimpleCustomerDestination</em> AS3 class when user clicks on Add/Update/Delete buttons created earlier.</p>
<p>Right click on the button labeled “Add” (id = “btnAdd”) and select “Generate Service Call ..” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/20.png" target="_blank"><img class="aligncenter size-medium wp-image-920" title="20" src="http://sujitreddyg.files.wordpress.com/2009/10/20.png?w=300&#038;h=180" alt="20" width="300" height="180" /></a></p>
<p>Flash Builder displays window as shown in the image below, in which you can select the service call which you want to invoke when user clicks on the Button.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/212.png" target="_blank"><img class="aligncenter size-medium wp-image-921" title="21" src="http://sujitreddyg.files.wordpress.com/2009/10/212.png?w=300&#038;h=181" alt="21" width="300" height="181" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set the Service to <em>SimpleCustomerServiceDestination</em></li>
<li>Set the Operation to <em>addCustomer(arg0:SimpleCustomer)</em></li>
<li>Click on OK to continue</li>
</ol>
<p>The <em>addCustomer</em> function selected expects an argument of the type <em>SimpleCustomer</em> . So Flash Builder 4 will switch to the source view and lets you enter the argument as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/22.png" target="_blank"><img class="aligncenter size-medium wp-image-922" title="22" src="http://sujitreddyg.files.wordpress.com/2009/10/22.png?w=300&#038;h=181" alt="22" width="300" height="181" /></a></p>
<p><em>simpleCustomer</em> is the object which is bound to <em>formSelectedCustomer</em> and so any changes made by the user in <em>formSelectedCustomer</em> control will reflect in the <em>simpleCustomer</em> instance so pass <em>simpleCustomer</em> as an argument to the <em>addCustomer</em> function as shown in the image above. Code in the button click handler function will look as shown below. In the code snippet below we are passing the <em>AsyncToken</em> returned by <em>addCustomer</em> function to <em>addCustomerResult</em>, so that <em>addCustomerResult</em> object will dispatch <em>result</em> event when the service call is successful.</p>
<p><em>protected function btnAdd_clickHandler(event:MouseEvent):void</em></p>
<p><em>{</em></p>
<p><em> addCustomerResult.token = simpleCustomerServiceDestination.addCustomer(simpleCustomer);</em></p>
<p><em>} </em></p>
<p>Similarly generate service calls for Update and Delete buttons, select <em>updateCustomer</em> and <em>deleteCustomer</em> operations respectively and pass the same <em>simpleCustomer</em> object as argument. After generating service calls for other two buttons your application code in this URL <a href="http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD_3.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD_3.mxml.txt</a></p>
<p>Clicking on the Add/Update/Delete buttons will reflect the changes on the server. Let’s get the updated collection of customers from the server by invoking <em>getAllCustomers</em> function of the <em>SimpleCustomerServiceDestination</em> class if the Add/Update/Delete operations are successful.</p>
<p>You will have <em>CallResponder</em> instances created for Add, Update and Delete service calls in the application, invoke <em>getAllCustomers()</em> function in the result event of these call responders so that we will get updated customers list after Add, Update and Delete operation are performed successfully.</p>
<p>You can view/copy the completed BlazeDSCRUD.mxml file at this URL <a href="http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD.mxml.txt" target="_blank">http://sujitreddyg.com/fb4articles/beta2/BlazeDSCRUD.mxml.txt</a></p>
<p>Save and run your application. You will see your application launched in a browser and ready for performing CRUD operations on the database entries.</p>
<p>Data centric applications can be developed very easily and effectively using Data Centric Development features in Flash Builder 4. Try enabling client side data management and client side data paging for the service used in this article, you can find the articles at the URL below. Please find more articles on using features in Flash Builder 4 at this URL <a href="../../../../../flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<p>Adobe Rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/899/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/899/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/899/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=899&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/10/12/building-flex-and-java-based-crud-application-using-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/11.png?w=300" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/21.png?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/3.png?w=300" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/4.png?w=300" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/5.png?w=300" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/6.png?w=300" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/7.png?w=300" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/8.png?w=300" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/9.png?w=300" medium="image">
			<media:title type="html">9</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/10.png?w=300" medium="image">
			<media:title type="html">10</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/111.png?w=300" medium="image">
			<media:title type="html">11</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/13.png?w=300" medium="image">
			<media:title type="html">13</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/14.png?w=300" medium="image">
			<media:title type="html">14</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/15.png?w=300" medium="image">
			<media:title type="html">15</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/16.png?w=300" medium="image">
			<media:title type="html">16</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/17.png?w=300" medium="image">
			<media:title type="html">17</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/19.png?w=300" medium="image">
			<media:title type="html">19</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/20.png?w=300" medium="image">
			<media:title type="html">20</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/212.png?w=300" medium="image">
			<media:title type="html">21</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/22.png?w=300" medium="image">
			<media:title type="html">22</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Flex application for LCDS Data Management services using Flash Builder 4</title>
		<link>http://sujitreddyg.wordpress.com/2009/10/06/building-flex-application-for-lcds-data-management-services-using-flash-builder-4/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/10/06/building-flex-application-for-lcds-data-management-services-using-flash-builder-4/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:35:00 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex and Java]]></category>
		<category><![CDATA[flex and lcds]]></category>
		<category><![CDATA[dcd and data service]]></category>
		<category><![CDATA[dcd and livecycle data services]]></category>
		<category><![CDATA[dcd with lcds]]></category>
		<category><![CDATA[flash buidler 4 and lcds]]></category>
		<category><![CDATA[flash builder 4 and data service]]></category>
		<category><![CDATA[flash builder data centric development]]></category>
		<category><![CDATA[flash builder dcd]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=864</guid>
		<description><![CDATA[Data Centric Development (DCD) in Flash Builder 4 allows developers to build Flex front end for LiveCycle Data Services (LCDS) Data management service destinations with just couple of clicks. Continue reading to see how Flash Builder and LCDS are improving J2EE developer productivity.
In this article we will be building a Flex application for a Data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=864&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Data Centric Development (DCD) in Flash Builder 4 allows developers to build Flex front end for LiveCycle Data Services (LCDS) Data management service destinations with just couple of clicks. Continue reading to see how Flash Builder and LCDS are improving J2EE developer productivity.</p>
<p>In this article we will be building a Flex application for a Data Management service destination in the samples application called <em>lcds-samples</em> bundled with LiveCycle Data Services 3 Beta 3.</p>
<p><strong>Install LCDS 3</strong></p>
<p>Download LiveCycle Data Services 3 from this URL <a href="http://labs.adobe.com/technologies/livecycle_dataservices3/" target="_blank">http://labs.adobe.com/technologies/livecycle_dataservices3/</a>. You will be downloading a file named<em> livecycle_dataservices3_b3_win_100509.exe</em>, execute this file to install. I have installed LCDS 3 with Tomcat to <em>C:\lcds3beta3</em></p>
<p><strong>Enabling RDSDispatchServlet</strong></p>
<p>Flash Builder uses the <em>RDSDispatchServlet </em>(part of LCDS) to retrieve destinations information from the server. By default the <em>RDSDispatchServlet</em> is commented out in <em>web.xml</em>. Open <em>C:\lcds3beta3\tomcat\webapps\lcds\WEB-INF\web.xml</em> using a text editor and remove comment around <em>RDSDispatchServlet </em>Servlet definition and the URL mapping as shown below. Also set the useAppserverSecurity parameter value to “false” as shown below.</p>
<p><em> &lt;servlet&gt;</em></p>
<p><em> &lt;servlet-name&gt;RDSDispatchServlet&lt;/servlet-name&gt;</em></p>
<p><em> &lt;display-name&gt;RDSDispatchServlet&lt;/display-name&gt;</em></p>
<p><em> &lt;servlet-class&gt;flex.rds.server.servlet.FrontEndServlet&lt;/servlet-class&gt;</em></p>
<p><em> &lt;init-param&gt;</em></p>
<p><em> &lt;param-name&gt;useAppserverSecurity&lt;/param-name&gt;</em></p>
<p><em> &lt;param-value&gt;false&lt;/param-value&gt;</em></p>
<p><em> &lt;/init-param&gt; </em></p>
<p><em> &lt;load-on-startup&gt;10&lt;/load-on-startup&gt;</em></p>
<p><em> &lt;/servlet&gt;</em></p>
<p><em> &lt;servlet-mapping id=&#8221;RDS_DISPATCH_MAPPING&#8221;&gt;</em></p>
<p><em> &lt;servlet-name&gt;RDSDispatchServlet&lt;/servlet-name&gt;</em></p>
<p><em> &lt;url-pattern&gt;/CFIDE/main/ide.cfm&lt;/url-pattern&gt;</em></p>
<p><em> &lt;/servlet-mapping&gt; </em></p>
<p><strong>Defining item class name<br />
</strong></p>
<p>Set the <em>item-class</em> property of the Data Management service destination to the name of the object type which the assembler is expecting. Flash Builder 4 DCD requires this property to be set for the destinations you want to consume using DCD in Flash Builder. All the sample destinations in LCDS 3 beta 3 have this property set. Sample destination used in this article has <em>item-class</em> property set to <em>flex.samples.product.Product</em> class as shown below.</p>
<p>XML Snippet below is from <em>C:\lcds3beta3\tomcat\webapps\lcds\WEB-INF\flex\</em><em>data-management-config.xml</em></p>
<p>&lt;destination id=&#8221;inventory&#8221;&gt;<br />
<em> &lt;properties&gt;<br />
&lt;source&gt;flex.samples.product.ProductAssembler&lt;/source&gt;<br />
&lt;scope&gt;application&lt;/scope&gt;<br />
<strong>&lt;item-class&gt;flex.samples.product.Product&lt;/item-class&gt;</strong><br />
&lt;metadata&gt;<br />
&lt;identity property=&#8221;productId&#8221;/&gt;<br />
&lt;/metadata&gt;<br />
&lt;network&gt;<br />
&lt;paging enabled=&#8221;false&#8221; pageSize=&#8221;10&#8243; /&gt;<br />
&lt;/network&gt;<br />
&lt;/properties&gt;<br />
&lt;/destination&gt;</em></p>
<p><strong>Start LCDS server</strong></p>
<p>Start LCDS samples data base from the start menu, <em>start -&gt; All Programs -&gt; Adobe -&gt; LiveCycle Data Services ES 3.0 -&gt; Start Samples Database</em></p>
<p>Start LCDS server from the start menu, <em>start -&gt; All Programs -&gt; Adobe -&gt; LiveCycle Data Services ES 3.0 -&gt; Start LiveCycle Data Services Server</em></p>
<p>Please make sure both the database and the server are started.</p>
<p>We have everything ready to develop a Flex application for data management service destinations using Flash Builder 4.</p>
<p><strong>Create a Flex project</strong></p>
<p>Start Flash Builder 4 from the start menu, <em>start -&gt; All Programs -&gt; Adobe -&gt; Adobe Flash Builder Beta 2</em></p>
<p>Create a Flex project from the file menu. You will see a window launched with options to fill project properties as shown in the image below. Fill project properties as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/16.jpg" target="_blank"><img class="aligncenter size-medium wp-image-865" title="1" src="http://sujitreddyg.files.wordpress.com/2009/10/16.jpg?w=300&#038;h=232" alt="1" width="300" height="232" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set project name to <em>LCDSSampleProject</em></li>
<li>Let the Application type be <em>Web</em></li>
<li>Set the SDK version to <em>3.4</em></li>
<li>Set the Application server type to <em>J2EE</em></li>
<li>Select <em>Use remote object access service </em>check box</li>
<li><em>6. </em>Select <em>LiveCycle Data Services ES</em></li>
<li><em>7. </em>Click next to continue<em> </em></li>
</ol>
<p>Now we need to set the server properties, you will see a screen with options to set the server properties as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/21.jpg" target="_blank"><img class="aligncenter size-medium wp-image-866" title="2" src="http://sujitreddyg.files.wordpress.com/2009/10/21.jpg?w=300&#038;h=232" alt="2" width="300" height="232" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set the Root folder to <em>c:\lcds3beta3\tomcat\webapps\lcds-samples</em></li>
<li>Set the Root URL to <em>http://localhost:8400/lcds-samples</em></li>
<li>Set the Context root to <em>/lcds-samples</em></li>
<li>Leave the Output folder to default, which is on the server</li>
<li>Click finish to continue</li>
</ol>
<p>All we have to do now is to see how we can consume the service and create a Flex application. With Flash Builder 4 this is very simple, Data centric Development (DCD) features in Flash Builder 4 lets us easily consume data management services and bind them to UI controls.</p>
<p><strong>Consuming data management services from Flash Builder 4</strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/31.jpg" target="_blank"><img class="aligncenter size-medium wp-image-867" title="3" src="http://sujitreddyg.files.wordpress.com/2009/10/31.jpg?w=300&#038;h=232" alt="3" width="300" height="232" /></a></p>
<ol>
<li>Select the Data/Services window shown in the image above. If this is not visible, select it from Window -&gt; Data/Services</li>
<li>Click on “Connect to Data/Service” in the Data/Services window</li>
</ol>
<p>You will see a window launched with options to select the type of service as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/41.jpg" target="_blank"><img class="aligncenter size-medium wp-image-868" title="4" src="http://sujitreddyg.files.wordpress.com/2009/10/41.jpg?w=300&#038;h=232" alt="4" width="300" height="232" /></a></p>
<p>In this screen, select <em>LCDS</em> and click on Next to continue. You will be prompted for credentials, since we don’t have RDS authentication enabled, just select <em>No password required</em> check box and click OK to continue.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/51.jpg" target="_blank"><img class="aligncenter size-medium wp-image-869" title="5" src="http://sujitreddyg.files.wordpress.com/2009/10/51.jpg?w=300&#038;h=232" alt="5" width="300" height="232" /></a></p>
<p>Now Flash Builder will retrieve all the Remoting and Data Management destinations exposed by the web application and displays as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/61.jpg" target="_blank"><img class="aligncenter size-medium wp-image-870" title="6" src="http://sujitreddyg.files.wordpress.com/2009/10/61.jpg?w=300&#038;h=232" alt="6" width="300" height="232" /></a></p>
<p>Our server settings are configured to point to the sample application bundled with LCDS called lcds-samples. This web application has lots of destinations exposed as shown in the image above. Destinations whose <em>service-type</em> is <em>remoting-service</em> are the Remoting destinations and the ones whose <em>service-type</em> is <em>data-service</em> are the Data Management service destinations. In this sample we will use the “inventory” data management service destination. Select the &#8220;inventory&#8221; destination and click on Finish to continue.</p>
<p>Flash Builder will generate all code required to consume the service selected and will list the <em>Inventory </em>service in the services explorer as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/71.jpg" target="_blank"><img class="aligncenter size-medium wp-image-871" title="7" src="http://sujitreddyg.files.wordpress.com/2009/10/71.jpg?w=300&#038;h=232" alt="7" width="300" height="232" /></a></p>
<p>You can also see that the return types for the operations (functions/methods of assembler) are properly set. Now that we have the service created, let’s bind the data to a UI control. Switch to design view as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/81.jpg" target="_blank"><img class="aligncenter size-medium wp-image-872" title="8" src="http://sujitreddyg.files.wordpress.com/2009/10/81.jpg?w=300&#038;h=232" alt="8" width="300" height="232" /></a></p>
<p>In this screen:</p>
<ol>
<li>Set the layout of the Application to vertical</li>
<li>Drag and drop a DataGrid on to the design view</li>
<li>Set the width of the DataGrid to 100% and height to 50%</li>
</ol>
<p>Now let’s bind the data to DataGrid.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/91.jpg" target="_blank"><img class="aligncenter size-medium wp-image-873" title="9" src="http://sujitreddyg.files.wordpress.com/2009/10/91.jpg?w=300&#038;h=232" alt="9" width="300" height="232" /></a></p>
<p>In this screen:</p>
<ol>
<li>Select the <em>DataGrid</em></li>
<li>Right click on the <em>DataGrid</em></li>
<li>Select <em>Bind To Data</em></li>
</ol>
<p>You will a window launched with options to select the service.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/101.jpg" target="_blank"><img class="aligncenter size-medium wp-image-874" title="10" src="http://sujitreddyg.files.wordpress.com/2009/10/101.jpg?w=300&#038;h=232" alt="10" width="300" height="232" /></a></p>
<p>In this screen:</p>
<ol>
<li>Select New service call</li>
<li>Set the Service to ProductService</li>
<li>Set the Operation to fill(): Product[]</li>
<li>Click on OK to continue</li>
</ol>
<p>You will see that the DataGrid will change its columns in the design view to reflect the properties of the Product entity.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/111.jpg" target="_blank"><img class="aligncenter size-medium wp-image-875" title="11" src="http://sujitreddyg.files.wordpress.com/2009/10/111.jpg?w=300&#038;h=232" alt="11" width="300" height="232" /></a></p>
<p><strong>Configuring DataGrid columns</strong></p>
<p>Flash Builder 4 has an excellent feature which allows developers to configure columns. Select the DataGrid. Right click on the DataGrid and select “Configure Columns …” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/131.jpg" target="_blank"><img class="aligncenter size-medium wp-image-876" title="13" src="http://sujitreddyg.files.wordpress.com/2009/10/131.jpg?w=300&#038;h=232" alt="13" width="300" height="232" /></a></p>
<p>A window with options to configure the columns for the DataGrid will be launched as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/141.jpg" target="_blank"><img class="aligncenter size-medium wp-image-877" title="14" src="http://sujitreddyg.files.wordpress.com/2009/10/141.jpg?w=300&#038;h=232" alt="14" width="300" height="232" /></a></p>
<p>In this screen:</p>
<ol>
<li>Select “productId” column and move it to top</li>
<li>Similarly re-arrange columns as shown in the image above</li>
<li>Click on OK</li>
</ol>
<p>Save and run the application. Application will launch in the browser. You can observe the application sending request to the server and displaying the response in the DataGrid as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/152.jpg" target="_blank"><img class="aligncenter size-medium wp-image-878" title="15" src="http://sujitreddyg.files.wordpress.com/2009/10/152.jpg?w=300&#038;h=232" alt="15" width="300" height="232" /></a></p>
<p>More articles on how to use Flash Builder 4 are available at this URL <a href="../../../../../flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<p>We developed a Flex front end for Data Management service destination in just few minutes. Flash Builder 4 and LCDS rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/864/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/864/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/864/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=864&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/10/06/building-flex-application-for-lcds-data-management-services-using-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/16.jpg?w=300" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/21.jpg?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/31.jpg?w=300" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/41.jpg?w=300" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/51.jpg?w=300" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/61.jpg?w=300" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/71.jpg?w=300" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/81.jpg?w=300" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/91.jpg?w=300" medium="image">
			<media:title type="html">9</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/101.jpg?w=300" medium="image">
			<media:title type="html">10</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/111.jpg?w=300" medium="image">
			<media:title type="html">11</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/131.jpg?w=300" medium="image">
			<media:title type="html">13</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/141.jpg?w=300" medium="image">
			<media:title type="html">14</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/152.jpg?w=300" medium="image">
			<media:title type="html">15</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Flex applications for Java based HTTP Services using Flash Builder 4</title>
		<link>http://sujitreddyg.wordpress.com/2009/10/05/building-flex-applications-for-java-based-http-services-using-flash-builder-4/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/10/05/building-flex-applications-for-java-based-http-services-using-flash-builder-4/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 13:31:46 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex and Java]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[data centric development]]></category>
		<category><![CDATA[dcd]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[flash builder 4 and http service]]></category>
		<category><![CDATA[flash builder 4 and j2ee]]></category>
		<category><![CDATA[flash builder 4 and java]]></category>
		<category><![CDATA[http service]]></category>
		<category><![CDATA[httpservice]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=797</guid>
		<description><![CDATA[Have a J2EE application and want to create Adobe Flex front end?  With Data Centric Development feature in Flash Builder 4 it’s very simple. This article explains communicating with Java classes on the server using HTTP Service.  Since its HTTP Service you will create a JSP/Sevlet which will invoke the required Java class and returns [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=797&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Have a J2EE application and want to create Adobe Flex front end?  With Data Centric Development feature in Flash Builder 4 it’s very simple. This article explains communicating with Java classes on the server using HTTP Service.  Since its HTTP Service you will create a JSP/Sevlet which will invoke the required Java class and returns the data as either XML or JSON.</p>
<p>You can also invoke methods in Java classes on the server from Flex application and get objects as response instead of invoking a JSP/Servlet which returns XML/JSON. Please find more details on invoking Java methods from Flex application at this URL <a href="../../../../../2009/06/01/building-flex-application-for-blazeds-remoting-service-using-flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/2009/06/01/building-flex-application-for-blazeds-remoting-service-using-flash-builder-4/</a></p>
<p>In this article we will be using <a href="http://sujitreddyg.com/fb4articles/beta2/getallcustomers.jsp.txt" target="_blank">getallcustomers.jsp</a> file which will invoke <a href="http://sujitreddyg.com/fb4articles/beta2/SimpleCustomerService.java.txt" target="_blank">SimpleCustomerService.java</a> class and returns the entries in the database in XML format. We will use Flash Builder DCD to create a Flex application which will consume the XML data returned by the server.</p>
<p><strong> </strong></p>
<p><strong>Install Flash Builder 4</strong></p>
<p>Download and install Flash Builder 4 from this URL <a href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank">http://labs.adobe.com/technologies/flashbuilder4/</a></p>
<p><strong>Create a new Flex project</strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/1.jpg" target="_blank"><img class="aligncenter size-medium wp-image-799" title="1" src="http://sujitreddyg.files.wordpress.com/2009/10/1.jpg?w=300&#038;h=180" alt="1" width="300" height="180" /></a></p>
<p>Create a new Flex project as shown in the image above and explained below.</p>
<p>In this screen:</p>
<ol>
<li>Set the project name to “SampleHTTPJavaProject”</li>
<li>Set the Application type to “web (run in Adobe Flash Player)”</li>
<li>Set the Flex SDK to “Flex 3.4”</li>
<li>Click on finish to continue</li>
</ol>
<p><strong> </strong></p>
<p><strong>Using DCD to consume data returned by the server</strong></p>
<p>Data-Centric Development (DCD) is one of the advancements to the Flash Builder 4. Let’s see how DCD is making developers productive. We will use Flash Builder DCD to consume the data from the Java server.</p>
<p><strong>Creating a service</strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/2.jpg" target="_blank"><img class="aligncenter size-medium wp-image-800" title="2" src="http://sujitreddyg.files.wordpress.com/2009/10/2.jpg?w=300&#038;h=180" alt="2" width="300" height="180" /></a></p>
<ol>
<li>Select the Data/Services window shown in the image above. If this is not visible, select it from Window -&gt; Data/Services</li>
<li>Click on “Connect to Data/Service” in the Data/Services window</li>
<li>Window as shown in the image below will be launched</li>
</ol>
<p><strong>Selecting service type</strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/3.jpg" target="_blank"><img class="aligncenter size-medium wp-image-801" title="3" src="http://sujitreddyg.files.wordpress.com/2009/10/3.jpg?w=300&#038;h=180" alt="3" width="300" height="180" /></a></p>
<p>Since we are using HTTP Service to communicate with the server, select HTTPService from the options and click on next button to continue.</p>
<p><strong>Setting service properties</strong></p>
<p>A service can have any number of operations. Each service will be a class and each operation of a service will be a function inside the class. Each operation has an URL associated with it, when the operation is invoked a HTTP request is sent to the corresponding URL. We will create a service and an operation to consume the data from the getallcustomers.jsp.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/4.jpg" target="_blank"><img class="aligncenter size-medium wp-image-802" title="4" src="http://sujitreddyg.files.wordpress.com/2009/10/4.jpg?w=300&#038;h=180" alt="4" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>Change the operation name to “getAllCustomers”</li>
<li>Set the URL of the operation to http://&lt;server-name&gt;:&lt;server-port&gt;/&lt;webapp-context&gt;/getallcustomers.jsp in this sample it is http://localhost:9191/demo/getallcustomers.jsp</li>
<li>Since we are not expecting any parameters in the JSP file we will skip the parameters section</li>
<li>Set the service name to “CustomerService”</li>
<li>Click on finish button to create the service</li>
</ol>
<p>Service will be created and listed in the services explorer as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/5.jpg" target="_blank"><img class="aligncenter size-medium wp-image-803" title="5" src="http://sujitreddyg.files.wordpress.com/2009/10/5.jpg?w=300&#038;h=181" alt="5" width="300" height="181" /></a></p>
<p><strong> </strong></p>
<p><strong>Configuring return type</strong></p>
<p>We will configure service to create an AS3 VO class based on nodes in the XML data returned by the JSP file. The VO class will be the return type for the operation. This will make coding easier, since it is easier to deal with strong typed objects than parsing the XML data.</p>
<p>Right click on the “getAllCustomers” operation and select “Configure return type” as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/6.jpg" target="_blank"><img class="aligncenter size-medium wp-image-804" title="6" src="http://sujitreddyg.files.wordpress.com/2009/10/6.jpg?w=300&#038;h=181" alt="6" width="300" height="181" /></a></p>
<p>A window as shown in the image below will be launched with options to configure the return type. You can chose an existing data type or let the Flash Builder generate VO classes based on the response from the server. Let’s leave it to the Flash Builder to generate required VO classes based on the server response as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/7.jpg" target="_blank"><img class="aligncenter size-medium wp-image-805" title="7" src="http://sujitreddyg.files.wordpress.com/2009/10/7.jpg?w=300&#038;h=180" alt="7" width="300" height="180" /></a></p>
<p><strong>Entering parameters required by the server</strong></p>
<p><strong> </strong></p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/8.jpg" target="_blank"><img class="aligncenter size-medium wp-image-806" title="8" src="http://sujitreddyg.files.wordpress.com/2009/10/8.jpg?w=300&#038;h=180" alt="8" width="300" height="180" /></a></p>
<p>Our JSP file is not expecting any parameters, so we don’t have to pass any parameters in this step.</p>
<p>Flash Builder also allows you to give sample response rather than sending a request to the server to get the data. This will be useful when the server side code is not ready but you want to continue creating the Flex application without waiting for the server. Since we have the server ready in our case, let’s send a request to the server and configure return type. Click on next to continue.</p>
<p>Flash Builder parses the XML data returned by the server and displays the same as shown in the image below. You can select the XML node based on which you want the return type AS3 class to be generated. In this step, you can choose to create a new data type or merge the properties to existing AS3 class.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/9.jpg" target="_blank"><img class="aligncenter size-medium wp-image-807" title="9" src="http://sujitreddyg.files.wordpress.com/2009/10/9.jpg?w=300&#038;h=180" alt="9" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>Select the “customer” node</li>
<li>Click on finish to continue</li>
</ol>
<p>You can see the return type of the operation in the “data/services” panel changed as shown in the image below. When we invoke the “getAllCustomers” operation, response will be object of the type “Customer” will be created based on the response from the server and returned.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/10.jpg" target="_blank"><img class="aligncenter size-medium wp-image-808" title="10" src="http://sujitreddyg.files.wordpress.com/2009/10/10.jpg?w=300&#038;h=180" alt="10" width="300" height="180" /></a></p>
<p><strong>Binding data/service to UI controls</strong></p>
<p>We usually write code to display the response from the service in a DataGrid or any other control. Flash Builder 4 has an awesome option which allows you to just bind a service response to a control.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/11.jpg" target="_blank"><img class="aligncenter size-medium wp-image-809" title="11" src="http://sujitreddyg.files.wordpress.com/2009/10/11.jpg?w=300&#038;h=180" alt="11" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>Switch to design view</li>
<li>Change the Application layout to “vertical” using the properties panel</li>
<li>Drag and drop a “DataGrid” from the “components” panel on to the design area</li>
<li>Set the width and height properties of the “DataGrid” to 100%</li>
</ol>
<p>Right click on the DataGrid and select “Bind to Data …” as shown in the image below</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/12.jpg" target="_blank"><img class="aligncenter size-medium wp-image-810" title="12" src="http://sujitreddyg.files.wordpress.com/2009/10/12.jpg?w=300&#038;h=181" alt="12" width="300" height="181" /></a></p>
<p>A window as shown in the image below will be launched.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/13.jpg" target="_blank"><img class="aligncenter size-medium wp-image-811" title="13" src="http://sujitreddyg.files.wordpress.com/2009/10/13.jpg?w=300&#038;h=180" alt="13" width="300" height="180" /></a></p>
<p>In this screen:</p>
<ol>
<li>We select a “New service call” because there are no existing services in the current application.</li>
<li>Select the “CustomerService”</li>
<li>Select “getAllCustomers():Customer[]” from the operations list</li>
<li>Click OK</li>
</ol>
<p>You can see the DataGrid in the design updated with properties of the Customer object as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/14.jpg" target="_blank"><img class="aligncenter size-medium wp-image-812" title="14" src="http://sujitreddyg.files.wordpress.com/2009/10/14.jpg?w=300&#038;h=180" alt="14" width="300" height="180" /></a></p>
<p>Save and run the application, you can see the data retrieved from the Remoting service and displayed in the DataGrid as shown in the image below.</p>
<p style="text-align:center;"><a href="http://sujitreddyg.files.wordpress.com/2009/10/151.jpg" target="_blank"><img class="aligncenter size-medium wp-image-830" title="15" src="http://sujitreddyg.files.wordpress.com/2009/10/151.jpg?w=300&#038;h=232" alt="15" width="300" height="232" /></a></p>
<p>More article on using Flash Builder 4 <a href="../../../../../flash-builder-4/" target="_blank">http://sujitreddyg.wordpress.com/flash-builder-4/</a></p>
<p>That’s it we created a Flex UI for a JSP file using DCD features in Flash Builder. Flash Builder 4 rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/797/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/797/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/797/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=797&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/10/05/building-flex-applications-for-java-based-http-services-using-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/1.jpg?w=300" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/2.jpg?w=300" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/3.jpg?w=300" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/4.jpg?w=300" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/5.jpg?w=300" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/6.jpg?w=300" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/7.jpg?w=300" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/8.jpg?w=300" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/9.jpg?w=300" medium="image">
			<media:title type="html">9</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/10.jpg?w=300" medium="image">
			<media:title type="html">10</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/11.jpg?w=300" medium="image">
			<media:title type="html">11</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/12.jpg?w=300" medium="image">
			<media:title type="html">12</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/13.jpg?w=300" medium="image">
			<media:title type="html">13</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/14.jpg?w=300" medium="image">
			<media:title type="html">14</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/10/151.jpg?w=300" medium="image">
			<media:title type="html">15</media:title>
		</media:content>
	</item>
		<item>
		<title>BlazeMonster V2 with support for Spring BlazeDS</title>
		<link>http://sujitreddyg.wordpress.com/2009/08/26/blazemonster-v2-with-support-for-spring-blazeds/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/08/26/blazemonster-v2-with-support-for-spring-blazeds/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 08:11:43 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blazemonster]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=599</guid>
		<description><![CDATA[Thank you very much for the overwhelming support. I added few new features and fixed couple of issues   I am sorry I couldn’t add all features requested. I will add pending requested features and more to the next version and publish as soon as possible.
Following are the changes incorporated in BlazeMonster version 2:

Added [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=599&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Thank you very much for the overwhelming support. I added few new features and fixed couple of issues <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I am sorry I couldn’t add all features requested. I will add pending requested features and more to the next version and publish as soon as possible.</p>
<p>Following are the changes incorporated in BlazeMonster version 2:</p>
<ol>
<li>Added support for <a href="http://www.springsource.org/spring-flex" target="_blank">Spring BlazeDS</a> i.e. BlazeMonster can now generate code for Remoting destinations exposed using Spring BlazeDS.</li>
<li>AS3 VO class generation now supports nested custom data types</li>
<li>You can save generated code into files on a button click</li>
<li>Added AS3 data types mappings for all Java data types for code generation</li>
<li>Web application root URL and AMF endpoint values are now persisted</li>
<li>And couple of minor fixes.</li>
</ol>
<p>Please download and install latest version from this URL <a href="../../../../../blazemonster/">http://sujitreddyg.wordpress.com/blazemonster/</a></p>
<p>Adobe Rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/599/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/599/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/599/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=599&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/08/26/blazemonster-v2-with-support-for-spring-blazeds/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>
	</item>
		<item>
		<title>hackrchallenges &#8211; Flex in a Week challenge</title>
		<link>http://sujitreddyg.wordpress.com/2009/08/07/hackrchalleges-flex-in-a-week-challenge/</link>
		<comments>http://sujitreddyg.wordpress.com/2009/08/07/hackrchalleges-flex-in-a-week-challenge/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 06:07:49 +0000</pubDate>
		<dc:creator>Sujit Reddy G</dc:creator>
				<category><![CDATA[announcements]]></category>
		<category><![CDATA[flex challenge]]></category>
		<category><![CDATA[flex in a week challenge]]></category>
		<category><![CDATA[hackr challenge]]></category>
		<category><![CDATA[hackrchallenge]]></category>

		<guid isPermaLink="false">http://sujitreddyg.wordpress.com/?p=580</guid>
		<description><![CDATA[I am a bit late in blogging about this. Flex in a Week challenge was launched on 5th August, 2009 and is already being attempted by 210 users  

Flex in a Week video training is one of the best resources to start learning Flex. India Platform Evangelism team has given more reasons to learn [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=580&subd=sujitreddyg&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am a bit late in blogging about this. Flex in a Week challenge was launched on 5<sup>th</sup> August, 2009 and is already being <strong>attempted</strong> by 210 users <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://flashahead.adobe.com/challenges" target="_blank"><img class="aligncenter size-full wp-image-585" title="hackrchallenges" src="http://sujitreddyg.files.wordpress.com/2009/08/hackrchallengesicon_dark.png?w=211&#038;h=65" alt="hackrchallenges" width="211" height="65" /></a></p>
<p><a href="http://www.adobe.com/devnet/flex/videotraining/" target="_blank">Flex in a Week video training</a> is one of the best resources to start learning Flex. <a href="http://flashahead.adobe.com/" target="_blank">India Platform Evangelism</a> team has given more reasons to learn Flex in a week by going through this video training course.</p>
<p>Go through the course and complete the Flex in a Week Challenge, you can get a cool badge you can sport on your website, blog or any other place where you think it will be useful. There are tee shirts also to be won by top 25 scorers and the first 25 users who clear the challenge.</p>
<p>If you already know Flex, take Flex in a Week challenge and get a badge for yourself and sport it to everyone <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Please find more details at this URL <a href="http://flashahead.adobe.com/challenges/" target="_blank">http://flashahead.adobe.com/challenges/</a></p>
<p>India Platform Evangelism team also took couple of initiatives to communicate with the community easily. You can follow any of the following to get updates from the team and information about the various events and activities</p>
<p><strong>Portal </strong>– <a href="http://flashahead.adobe.com/" target="_blank">http://flashahead.adobe.com</a></p>
<p><strong>Blog </strong>– <a href="http://flashahead.wordpress.com/" target="_blank">http://flashahead.wordpress.com</a></p>
<p><strong>Twitter </strong>- <a href="http://twitter.com/flashahead" target="_blank">http://twitter.com/flashahead</a></p>
<p>Adobe Rocks <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sujitreddyg.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sujitreddyg.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sujitreddyg.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sujitreddyg.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sujitreddyg.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sujitreddyg.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sujitreddyg.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sujitreddyg.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sujitreddyg.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sujitreddyg.wordpress.com/580/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sujitreddyg.wordpress.com&blog=2430943&post=580&subd=sujitreddyg&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sujitreddyg.wordpress.com/2009/08/07/hackrchalleges-flex-in-a-week-challenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">SujitReddyG</media:title>
		</media:content>

		<media:content url="http://sujitreddyg.files.wordpress.com/2009/08/hackrchallengesicon_dark.png" medium="image">
			<media:title type="html">hackrchallenges</media:title>
		</media:content>
	</item>
	</channel>
</rss>