<?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/"
	>

<channel>
	<title>Mihai Corlan &#187; Java</title>
	<atom:link href="http://corlan.org/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://corlan.org</link>
	<description>Web, Mobile, and Rock&#38;Roll</description>
	<lastBuildDate>Mon, 30 Jan 2012 11:01:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SpringSource and the Adobe Flash Platform</title>
		<link>http://corlan.org/2009/05/12/springsource-and-the-adobe-flash-platform/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=springsource-and-the-adobe-flash-platform</link>
		<comments>http://corlan.org/2009/05/12/springsource-and-the-adobe-flash-platform/#comments</comments>
		<pubDate>Tue, 12 May 2009 08:28:00 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://corlan.org/2009/05/12/springsource-and-the-adobe-flash-platform/</guid>
		<description><![CDATA[
			
				
			
		
On May 14th there will be a eSeminar on the new integration between BlazeDS and Spring. This will make it easier for Java developers to create enterprise RIAs using the Adobe Flash Platform and Spring.
]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2009/05/12/springsource-and-the-adobe-flash-platform/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2009%2F05%2F12%2Fspringsource-and-the-adobe-flash-platform%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2009%2F05%2F12%2Fspringsource-and-the-adobe-flash-platform%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>On May 14th there will be a <a href="http://www.adobe.com/cfusion/event/index.cfm?event=detail&amp;id=462539&amp;loc=en_us" target="_blank">eSeminar</a> on the new integration between BlazeDS and Spring. This will make it easier for Java developers to create enterprise RIAs using the Adobe Flash Platform and Spring.</p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2009/05/12/springsource-and-the-adobe-flash-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boot Camps: Introduction to Adobe AIR, and LiveCycle DS / BlazeDS</title>
		<link>http://corlan.org/2009/05/06/boot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=boot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds</link>
		<comments>http://corlan.org/2009/05/06/boot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds/#comments</comments>
		<pubDate>Wed, 06 May 2009 12:10:25 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://corlan.org/2009/05/06/boot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds/</guid>
		<description><![CDATA[
			
				
			
		
We’ve seen high demand for our two Boot Camps we’ll have as part of the Adobe Developer Day event on May 19th in Bucharest, Romania. Because the space we have limits the number of persons we can accept, we had to turn down a lot of people.
Because we hate to turn down people, I found [...]]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2009/05/06/boot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2009%2F05%2F06%2Fboot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2009%2F05%2F06%2Fboot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We’ve seen high demand for our two Boot Camps we’ll have as part of the <a href="http://corlan.org/2009/04/14/adobe-developer-day/" target="_blank">Adobe Developer Day</a> event on May 19th in Bucharest, Romania. Because the space we have limits the number of persons we can accept, we had to turn down a lot of people.</p>
<p>Because we hate to turn down people, I found a solution. We will do in the next months these Boot Camps in Bucharest (Adobe’s office), and for the people who can’t attend in person, we’ll do it online using Acrobat Connect. As a reminder these events are free.</p>
<p>What do you have to do? Just send me an email(s) with the one of the following session names a the subject to mihai dot corlan at adobe dot com:</p>
<p>These are the sessions we’ll do in our office, in Romanian</p>
<ul>
<li>Boot Camp Introduction to AIR [RO]</li>
<li>Boot Camp BlazeDS/LCDS [RO]</li>
</ul>
<p>These are the sessions we’ll do online in Romanian:</p>
<ul>
<li>Online Boot Camp Introduction to AIR [RO]</li>
<li>Online Boot Camp BlazeDS/LCDS [RO]</li>
</ul>
<p>These are the sessions we’ll do online in English:</p>
<ul>
<li>Online Boot Camp Introduction to AIR [EN]</li>
<li>Online Boot Camp BlazeDS/LCDS [EN]</li>
</ul>
<p>We are working to set up a system to sign up to these events online. For now, just send me the emails. We will notify you about the dates by email!</p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2009/05/06/boot-camps-introduction-to-adobe-air-and-livecycle-ds-blazeds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Video tutorial on LiveCycle ES</title>
		<link>http://corlan.org/2009/04/16/video-tutorial-on-livecycle-es/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=video-tutorial-on-livecycle-es</link>
		<comments>http://corlan.org/2009/04/16/video-tutorial-on-livecycle-es/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 14:07:00 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://corlan.org/2009/04/16/video-tutorial-on-livecycle-es/</guid>
		<description><![CDATA[
			
				
			
		
Duane Nickull posted a video tutorial on LiveCycle ES. You can learn how you can call a function from LiveCycle ES. Watch the video here.
]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2009/04/16/video-tutorial-on-livecycle-es/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2009%2F04%2F16%2Fvideo-tutorial-on-livecycle-es%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2009%2F04%2F16%2Fvideo-tutorial-on-livecycle-es%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Duane Nickull posted a video tutorial on LiveCycle ES. You can learn how you can call a function from LiveCycle ES. Watch the video <a href="http://video.google.ca/videoplay?docid=2601122249633361252" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2009/04/16/video-tutorial-on-livecycle-es/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe TV segment: Generate a Flex/J2EE Database Application</title>
		<link>http://corlan.org/2009/03/02/adobe-tv-segment-generate-a-flexj2ee-database-application/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adobe-tv-segment-generate-a-flexj2ee-database-application</link>
		<comments>http://corlan.org/2009/03/02/adobe-tv-segment-generate-a-flexj2ee-database-application/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 12:13:33 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://corlan.org/?p=704</guid>
		<description><![CDATA[
			
				
			
		
Another segment has been released on Adobe TV, this time on how to generate a Flex and J2EE Database Application.  I was a little bit sleepy and tired after three and a half days of MAX :D. I show how to create such applications using the data wizard, or LiveCycle Data Services and SQL [...]]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2009/03/02/adobe-tv-segment-generate-a-flexj2ee-database-application/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2009%2F03%2F02%2Fadobe-tv-segment-generate-a-flexj2ee-database-application%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2009%2F03%2F02%2Fadobe-tv-segment-generate-a-flexj2ee-database-application%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Another segment has been released on <a onclick="javascript:pageTracker._trackPageview('a/http://tv.adobe.com/');" href="http://tv.adobe.com/" target="_blank">Adobe TV</a>, this time on how to generate a <a href="http://tv.adobe.com/#vi+f1472v1058" target="_blank">Flex and J2EE Database Application</a>.  I was a little bit sleepy and tired after three and a half days of MAX :D. I show how to create such applications using the data wizard, or LiveCycle Data Services and SQL Assembler. Enjoy!</p>
<p><embed src="http://tv.adobe.com/Embed.swf" quality="high" bgcolor="#000000" width="467" height="300" name="AdobeTVPlayer" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashVars="v=~b64~aHR0cDovL2Fkb2JlLmVkZ2Vib3NzLm5ldC9mbGFzaC9hZG9iZS9hZG9iZXR2Mi9hZGNfcHJlc2VudHMvNjRfYWRjXzA5NC5mbHY/cnNzX2ZlZWRpZD0xNDcyJnhtbHZlcnM9Mg==&#038;w=467&#038;t=http://tv.adobe.com/#vi+f1472v1058&#038;h=300"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2009/03/02/adobe-tv-segment-generate-a-flexj2ee-database-application/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>&quot;Live Help / Call Center&quot; application packaged using Flex Java WTP project and Export Flex Project Wizard</title>
		<link>http://corlan.org/2008/07/15/live-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=live-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard</link>
		<comments>http://corlan.org/2008/07/15/live-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 11:42:27 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://corlan.org/2008/07/15/live-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard/</guid>
		<description><![CDATA[
			
				
			
		
I am a little bit obsessed lately with the need to share a Flex project as easy as possible and to import a project with minimum work on my part. For example, I grabbed the LiveHelp / Call Center application made by Christophe Coenraets and I made it a single Flex with Java combined project [...]]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2008/07/15/live-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2008%2F07%2F15%2Flive-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2008%2F07%2F15%2Flive-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am a little bit obsessed lately with the need to share a Flex project as easy as possible and to import a project with minimum work on my part. For example, I grabbed the <a href="http://coenraets.org/blog/2008/05/livehelp-call-center-application-source-code/" target="_blank">LiveHelp / Call Center application</a> made by <a href="http://coenraets.org/blog/" target="_blank">Christophe Coenraets</a> and I made it a single Flex with Java combined project with support for BlazeDS. What does this mean? It means if you have installed Flex Builder 3, WTP, and Apache Tomcat 5.5 you should be able to download this zip <a href="http://corlan.org/downloads/mortgageapp.zip" target="_blank">file</a>, and then import the project using the Import &gt; Flex &gt; Import Flex project Wizard. You will have the BlazeDS server, Java  code and Flex code in this project. After this, you&#8217;ll need to add this application to the Tomcat server. You can start the server from within Eclipse and run the mortgageapp.xml and callcenter.mxml and it should work like a charm.</p>
<p>However, because WTP links the name of the local JRE used in its configuration files, it is possible that the project will not work on your machine. The solution is very simple: just open the properties for the project and go to &#8220;Java Build Path&#8221;, then select the &#8220;Libraries&#8221; tab. Here you need to delete the &#8220;JRE System Library&#8221; entry and then click &#8220;Add Library&#8221; button. In the new window select the &#8220;JRE System Library&#8221; list item and click &#8220;Next&#8221;. On the next page select JRE 1.5 or newer and you are done.</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/07/setting-new-jre.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://corlan.org/wp-content/uploads/2008/07/setting-new-jre-thumb.png" border="0" alt="Changing the JRE for the project" width="240" height="236" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2008/07/15/live-help-call-center-application-packaged-using-flex-java-wtp-project-and-export-flex-project-wizard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding a Flex Nature to an existent Java (WTP) project</title>
		<link>http://corlan.org/2008/06/07/adding-a-flex-nature-to-an-existent-java-wtp-project/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-a-flex-nature-to-an-existent-java-wtp-project</link>
		<comments>http://corlan.org/2008/06/07/adding-a-flex-nature-to-an-existent-java-wtp-project/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 03:24:21 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://corlan.org/?p=23</guid>
		<description><![CDATA[
			
				
			
		
Sometimes you already have a J2EE project (made with WTP) and you want to be able to make it also a Flex project. Probably you don&#8217;t like the idea of creating a new Java/Flex project and copy the files. Neither do I :D (If you want to create a new Java/Flex project then check my [...]]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2008/06/07/adding-a-flex-nature-to-an-existent-java-wtp-project/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2008%2F06%2F07%2Fadding-a-flex-nature-to-an-existent-java-wtp-project%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2008%2F06%2F07%2Fadding-a-flex-nature-to-an-existent-java-wtp-project%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Sometimes you already have a J2EE project (made with WTP) and you want to be able to make it also a Flex project. Probably you don&#8217;t like the idea of creating a new Java/Flex project and copy the files. Neither do I :D (If you want to create a new Java/Flex project then check my previous posts about <a href="http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/">creating </a> a Java/Flex project and <a href="http://corlan.org/2008/06/06/debugging-a-combined-javaflex-project/">debugging</a> this project).</p>
<p>Fortunately the solution is there in Flex Builder. You need to select the project in project explorer and right click to bring up the contextual menu for the project. Then you should select Flex Project Nature &gt; Add Flex Project Nature:</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/flex_nature.png"><img class="alignnone size-medium wp-image-17" title="Add Flex Nature" src="http://corlan.org/wp-content/uploads/2008/06/flex_nature-253x300.png" alt="" width="253" height="300" /></a></p>
<p>Selecting this command will open a wizard that looks like the one for creating a new Flex project (the differences are that some options are disabled as the project already exists and you are just adding new things to it). So here is the first page and you can see you have the option to choose if you want to use LiveCycle Data Services / BlazeDS or not. On the second page you can enter the path for Flex WAR file (if you choose remote object access on first page). Click &#8220;Finish&#8221; and you got yourself a Java/Flex combined project.</p>
<table border="0">
<tbody>
<tr>
<td><a href="http://corlan.org/wp-content/uploads/2008/06/flex_nature_2.png"><img class="alignnone size-medium wp-image-18" title="First page of Flex Project Nature Wizard" src="http://corlan.org/wp-content/uploads/2008/06/flex_nature_2-287x300.png" alt="" width="287" height="300" /></a></td>
<td><a href="http://corlan.org/wp-content/uploads/2008/06/flex_nature_3.png"><img class="alignnone size-medium wp-image-19" title="Second page of Flex Project Nature Wizard" src="http://corlan.org/wp-content/uploads/2008/06/flex_nature_3-287x300.png" alt="" width="287" height="300" /></a></td>
</tr>
</tbody>
</table>
<p><strong>Final words</strong></p>
<p>I will not lie to you, these two features (combined Java/Flex project and Add Flex Nature) are very dear to me as I was the engineer who worked on them for Flex Builder 3 :) But besides the sweet memories and countless meetings to shape up these wizards and endless fights with my quality engineer on what should happen, I had another reason to write my first technical post on this subject: I talked in the last couple of months with Java developers who work with Flex and they didn&#8217;t know about these features yet :(</p>
<p>So, I am really curious if you guys find this helpful or not and if there are other things you still need (I have friends inside Flex Builder team so we can push our wishes :) ).</p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2008/06/07/adding-a-flex-nature-to-an-existent-java-wtp-project/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Debugging a combined Java/Flex project</title>
		<link>http://corlan.org/2008/06/06/debugging-a-combined-javaflex-project/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debugging-a-combined-javaflex-project</link>
		<comments>http://corlan.org/2008/06/06/debugging-a-combined-javaflex-project/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 08:45:36 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://corlan.org/?p=20</guid>
		<description><![CDATA[
			
				
			
		
In my previous post I described how you can install WTP in Flex Builder and how you can create a combined Java/Flex project and run it.
But what if you want to debug both the Flex and Java code from the project at the same time?
Actually, it is pretty simple. The steps are very similar with [...]]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2008/06/06/debugging-a-combined-javaflex-project/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2008%2F06%2F06%2Fdebugging-a-combined-javaflex-project%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2008%2F06%2F06%2Fdebugging-a-combined-javaflex-project%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In my previous <a href="http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/">post</a> I described how you can install WTP in Flex Builder and how you can create a combined Java/Flex project and run it.</p>
<p>But what if you want to debug both the Flex and Java code from the project at the same time?</p>
<p>Actually, it is pretty simple. The steps are very similar with the ones described in the previous post for running the application.<br />
<span id="more-20"></span></p>
<p>First thing let&#8217;s add two break points one in Flex code and one in Java code. My project is using LCDS (LiveCycle Data Services) and I have a custom adaptor written in Java to read/write data to and from databases. So I place one breakpoint inside ActionScript in the function that is called when I want to add a new item and the other breakpoint inside the Java adaptor class that actually adds the item to the database.</p>
<p>The next step is to stop the server from Server view if it is running. After this you need to start it but in debug mode (for these actions you have at the top right of the Server view some icons that perform these actions).</p>
<p>After the server started you right click on the Flex application file and choose from &#8220;Debug as&#8221; entry of the contextual menu &#8220;Flex Application&#8221;. This will start the default browser with the Flex application running.</p>
<p>If I click the button that adds a new item, Flex Builder will go in Debug view and you will see the Flex debugger. If you resume, Flex Builder will continue the execution and as the Flex code calls the server destination you will go to the Java code and again Flex Builder goes in debug view this time for Java. Here are the two screenshots one for Flex and one for Java:</p>
<table border="0">
<tbody>
<tr>
<td><a href="http://corlan.org/wp-content/uploads/2008/06/debug_flex.png"><img class="alignnone size-medium wp-image-21" title="Flex debugger" src="http://corlan.org/wp-content/uploads/2008/06/debug_flex-300x236.png" alt="" width="300" height="236" /></a></td>
<td><a href="http://corlan.org/wp-content/uploads/2008/06/debug_java.png"><img class="alignnone size-medium wp-image-22" title="Java debugger" src="http://corlan.org/wp-content/uploads/2008/06/debug_java-300x237.png" alt="" width="300" height="237" /></a></td>
</tr>
</tbody>
</table>
<p>We saw how to create a new project that has both Java and Flex natures, then how we can run and debug the project. But what if you have an existent Java project and you want to be able to edit Flex files? I will show you the easiest way in the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2008/06/06/debugging-a-combined-javaflex-project/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Creating a combined Flex/Java project in Flex Builder w/o LCDS/BlazeDS</title>
		<link>http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds</link>
		<comments>http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 19:34:38 +0000</pubDate>
		<dc:creator>Mihai Corlan</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://corlan.org/?p=4</guid>
		<description><![CDATA[
			
				
			
		
Whenever I work on a Flex project with Java backend I create a project in Flex Builder that combines Java and Flex. I find that this is the easiest way to work even if I don&#8217;t touch at all Java code and I just mess around with Flex/AS files. This is one piece of news [...]]]></description>
			<content:encoded><![CDATA[<div class="none" style="float: right; margin-left: 10px;"><g:plusone href="http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/" size="tall" count="true"></g:plusone></div><div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcorlan.org%2F2008%2F06%2F05%2Fcreating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcorlan.org%2F2008%2F06%2F05%2Fcreating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Whenever I work on a Flex project with Java backend I create a project in Flex Builder that combines Java and Flex. I find that this is the easiest way to work even if I don&#8217;t touch at all Java code and I just mess around with Flex/AS files. This is one piece of news brought by Flex Builder 3.</p>
<p>What advantages do you have using this setup? You can edit/run/debug both Java and Flex files in the same editor and same project; you can see the changes as soon as you save the modified files.</p>
<p>Let&#8217;s see what you need and how you can create a combined Flex/Java project with or without LiveCycle Data Services or BlazeDS.</p>
<p><span id="more-4"></span><br />
<strong>Installing WTP (Web Tools Project)</strong></p>
<p>In order to be able to create the combined project you need to have installed <a title="Web Tools Project home page" href="http://www.eclipse.org/webtools/" target="_blank">WTP</a> (Web Tools Project &#8211; this is an open source Eclipse plugin that adds J2EE capabilities into Eclipse). If you start the New Flex Project Wizard and select J2EE from server technology and you don&#8217;t see the option &#8220;Create combined Java/Flex project using WTP&#8221; it means you need to install it.</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/flex_wizard.png"><img class="alignnone size-medium wp-image-5" title="Flex Project Wizard first page" src="http://corlan.org/wp-content/uploads/2008/06/flex_wizard-253x300.png" alt="" width="253" height="300" /></a></p>
<p>For this you go to Help &gt; Software Updates &gt; Find and Install&#8230; Then select &#8220;Search for new features to install&#8221; and click Next. You should see something like this (select Europa Discovery Site) :</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/install_wtp1.png"><img class="alignnone size-medium wp-image-7" title="Installing WTP" src="http://corlan.org/wp-content/uploads/2008/06/install_wtp1-271x300.png" alt="" width="271" height="300" /></a></p>
<p>After this you follow the dialog screens and at some point you will see this screen (you press the &#8220;Select Required&#8221; button and Next, Next, Next and Finish):</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/install_wtp_2.png"><img class="alignnone size-medium wp-image-8" title="Resolve dependencies" src="http://corlan.org/wp-content/uploads/2008/06/install_wtp_2-238x300.png" alt="" width="238" height="300" /></a></p>
<p>Possible problems installing WTP in Flex Builder: sometimes although you have installed WTP you don&#8217;t see the option &#8220;Create combined Java/Flex project using WTP&#8221;. The solution is simple: type in a console the path to the eclipse executable and add &#8220;-clean&#8221; option; for my machine this command looks like: &#8220;c:eclipseeclipse.exe -clean&#8221;. After this you should be good to go.</p>
<p><strong>Create the combined Java/Flex project</strong></p>
<p>Let&#8217;s open the New Flex Project wizard and select from &#8220;Application server type&#8221; combo-box &#8220;J2EE&#8221; and  make sure that the option &#8220;Create combined Java/Flex project using WTP&#8221; is checked (check the first image from this post if you need help). If you want to create a project that is using LCDS (LiveCycle Data Services) or BlazeDS you need to check &#8220;Use remote object access service&#8221;. Click &#8220;Next&#8221; and you see this page:</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/flex_wizard_2.png"><img class="alignnone size-medium wp-image-9" title="Flex Wizard Page 2" src="http://corlan.org/wp-content/uploads/2008/06/flex_wizard_2-300x286.png" alt="" width="300" height="286" /></a></p>
<p>In the second page of the wizard you need to pay attention to &#8220;Target runtime&#8221;. WTP has a wonderful feature: you can configure your local J2EE server using a simple wizard and then Eclipse can deploy your application and can start/stop/republish the application on this server; all of these are happening from within Eclipse. This &#8220;Target runtime&#8221; is exactly what this thing does: it lets you associate your project with an already defined server or to define a new one. Click on the &#8220;New&#8221; button and you will see this wizard:</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/wtp_new_target.png"><img class="alignnone size-medium wp-image-10" title="Defining a new Target (New Server)" src="http://corlan.org/wp-content/uploads/2008/06/wtp_new_target-269x300.png" alt="" width="269" height="300" /></a></p>
<p>WTP supports the following J2EE servers: Tomcat, JBoss, WebSphere, JOnAS4, Oracle OC4J Standalone. From my experience the best for developing is the Tomcat: it is the fastest in terms of starting/ restarting/ redeploying. After you selected the desired server click &#8220;Next&#8221;.</p>
<p>In the second page of the wizard you need to browse for the server installation folder:</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/wtp_new_target_2.png"><img class="alignnone size-medium wp-image-11" title="Add New Target page two" src="http://corlan.org/wp-content/uploads/2008/06/wtp_new_target_2-300x275.png" alt="" width="300" height="275" /></a></p>
<p>Click &#8220;Finish&#8221; and we are back to new Flex Project wizard. We select the target runtime from the combobox. If you choose on the first page to use LCDS, then on this page you need to browse for the path to Flex WAR file: if you want LCDS you should look for the file lcds.war under the installation folder and if you want BlazeDS you should look for blazeds.war under the blazeds folder. With this we are done and we can click &#8220;Finish&#8221;.</p>
<p>Once the project gets created you can play with the perspectives and change between Flex perspective and Java or J2EE perspective:</p>
<table border="0">
<tbody>
<tr>
<td><a href="http://corlan.org/wp-content/uploads/2008/06/fb_perspective_flex.png"><img class="alignnone size-medium wp-image-12" title="Flex Perspective" src="http://corlan.org/wp-content/uploads/2008/06/fb_perspective_flex-300x243.png" alt="" width="300" height="243" /></a></td>
<td><a href="http://corlan.org/wp-content/uploads/2008/06/fb_perspective_java.png"><img class="alignnone size-medium wp-image-13" title="Java Perspective" src="http://corlan.org/wp-content/uploads/2008/06/fb_perspective_java-300x243.png" alt="" width="300" height="243" /></a></td>
</tr>
</tbody>
</table>
<p><strong>Run the project</strong></p>
<p>So we have the project. Let&#8217;s see how can we run it. As I said before,  WTP make this task child&#8217;s play. First thing we need is to be sure we have &#8220;Server&#8221; view displayed (if not you go to Window &gt; Other Views&#8230; and select Server from the tree).</p>
<p>The first time you want to run a project you need to associate the project with the server &#8211; you do this only one time. You just right click inside the Flex application file and choose from the contextual menu Run As &gt; Run on Server option:</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/run_flex_app.png"><img class="alignnone size-medium wp-image-14" title="Run Flex application" src="http://corlan.org/wp-content/uploads/2008/06/run_flex_app-300x243.png" alt="" width="300" height="243" /></a></p>
<p>This command will open this little wizard (you select the previously defined server and then click &#8220;Finish&#8221;):</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/run_flex_app_2.png"><img class="alignnone size-medium wp-image-15" title="Run Flex App Wizard" src="http://corlan.org/wp-content/uploads/2008/06/run_flex_app_2-256x300.png" alt="" width="256" height="300" /></a></p>
<p>After this the project gets compiled, the server is started and the project is deployed. At this point if you are looking inside the Server view you should be able to expand the Server node and see that a child exists with the same name as the project and the status of the server should be Started and Synchronized:</p>
<p><a href="http://corlan.org/wp-content/uploads/2008/06/run_flex_app_3.png"><img class="alignnone size-medium wp-image-16" title="Flex app opened in Browser" src="http://corlan.org/wp-content/uploads/2008/06/run_flex_app_3-300x243.png" alt="" width="300" height="243" /></a></p>
<p>Now every time you change something in your project as soon you build the project, the project is redeployed automatically. And when you want to see the Flex application you choose Run As &gt; Flex Application (the default browser is opened with the Flex application inside). Also because the project is associated with the server you can use the top right buttons from the Server view to  start / stop / debug / publish.</p>
<p>This is it. In my next post I will talk about debugging Java and Flex code using this type of project.</p>
]]></content:encoded>
			<wfw:commentRss>http://corlan.org/2008/06/05/creating-a-combined-flexjava-project-in-flex-builder-wo-lcdsblazeds/feed/</wfw:commentRss>
		<slash:comments>87</slash:comments>
		</item>
	</channel>
</rss>

