<?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>Mrinal Wadhwa &#187; Java</title>
	<atom:link href="http://weblog.mrinalwadhwa.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblog.mrinalwadhwa.com</link>
	<description>en route to a richer Internet</description>
	<lastBuildDate>Wed, 12 Oct 2011 09:30:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easy deploy Flex/BlazeDS apps to Amazon EC2 with Stax</title>
		<link>http://weblog.mrinalwadhwa.com/2008/12/23/flex-blazeds-amazon-ec2-stax/</link>
		<comments>http://weblog.mrinalwadhwa.com/2008/12/23/flex-blazeds-amazon-ec2-stax/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 02:10:13 +0000</pubDate>
		<dc:creator>Mrinal Wadhwa</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[blazeds]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[elastic]]></category>
		<category><![CDATA[stax]]></category>

		<guid isPermaLink="false">http://weblog.mrinalwadhwa.com/?p=558</guid>
		<description><![CDATA[<p><a href="http://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/10448">Dick Hirsch</a> introduced me to <a href="http://stax.net">Stax</a> in relation to an open source project that I&#8217;m involved with, <a href="http://incubator.apache.org/esme/">Apache ESME</a> (more on that later)<br />
&nbsp;<br />
<a href="http://stax.net"><img src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/12/stax.png" alt="Stax: The fastest way to deply Java apps to EC2" /></a><br />
&nbsp;&nbsp;</p>
<h4>What is Stax ?</h4>
<p>According to the <a href="http://stax.net" >Stax website</a> &#8230; Stax is &#8220;The fastest way for developers to build, manage and scale Java applications on EC2&#8243; .. here are the notable features &#8230;.<!--more--></p>
<h4>Application Templates</h4>
<p>Once you&#8217;ve installed the <a href="http://wiki.stax.net/w/index.php/SDK">Stax command line tools</a> its a breeze to get started with building your application. Stax comes with various pre-configured application templates to get you started .. the most notable for me among the templates was the <a href="http://wiki.stax.net/w/index.php/Flex">Flex/BlazeDS template</a> that can be created as follows ..</p>
<blockquote><p>
$ stax create -t flex myflexapp</p>
<p>The -t in the command line tells stax to<br />
generate using the flex template
</p></blockquote>
<p>Check out the <a href="http://wiki.stax.net/w/index.php/Flex_Guide">2 minute guide</a> to create and deploy a Flex/BlazeDS Hello World app that uses remoting .. it really did take 2 minutes. <!--more--></p>
<p><img src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/12/stax-helloworld.png" alt="Stax Flex-BlazeDS Helloworld" /></p>
<p>Stax also has <a href="http://wiki.stax.net/w/index.php/Main_Page">application templates</a> for Struts, Wicket, JSP, Jython, JRuby (on Rails) and ColdFusion<br />
&nbsp;</p>
<h4>No proprietary APIs</h4>
<p>Stax does not make you use any proprietary API, so your application code is totally independent of the environment and you can choose to move to a different deployment environment whenever you like.<br />
&nbsp;</p>
<h4>Simulated local development environment</h4>
<p>The Stax command line tool has a run command that lets you run/test you application locally during development using a local pre-configured instance of tomcat. </p>
<blockquote><p>$ stax run
</p></blockquote>
<p>And when you&#8217;re done developing just say ..</p>
<blockquote><p>
$ stax deploy -u staxusername -p staxpassword
</p></blockquote>
<p>&nbsp;</p>
<h4>Snapshots and Roll-Back</h4>
<p>Stax lets you create snapshots of applications or databases so you can revert to previous snapshots at any time. Every time you hit the deploy command a snapshot is created and you can revert to it anytime.</p>
<p>&nbsp;</p>
<h4>Reporting and Monitoring</h4>
<p>Stax also has real time reporting to monitor your application&#8217;s health, resource utilization and performance</p>
<p><img src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/12/stax-reports.png" alt="Stax Reporting and Monitoring" /></p>
<p>&nbsp;</p>
<h4>All the Elastic Cloud goodness</h4>
<p>And last but certainly not the least Stax lets you leverage all the Elastic Cloud goodness offered by <a href="http://aws.amazon.com/ec2/">Amazon EC2</a> .. scale on demand, clustered servers for load balancing, pay for only what you use etc.</p>
<p>
Stax is currently in closed beta and they&#8217;ve not announced their pricing, but its definitely worth a look the next time you&#8217;re starting a new project.
</p>
<p>&nbsp;</p>
]]></description>
		<wfw:commentRss>http://weblog.mrinalwadhwa.com/2008/12/23/flex-blazeds-amazon-ec2-stax/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JavaFx preview released, here&#8217;s my HelloWorld app and some initial thoughts</title>
		<link>http://weblog.mrinalwadhwa.com/2008/08/01/javafx-preview-released-heres-my-helloworld-app-and-some-initial-thoughts/</link>
		<comments>http://weblog.mrinalwadhwa.com/2008/08/01/javafx-preview-released-heres-my-helloworld-app-and-some-initial-thoughts/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 01:47:58 +0000</pubDate>
		<dc:creator>Mrinal Wadhwa</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[javafx]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://weblog.mrinalwadhwa.com/?p=350</guid>
		<description><![CDATA[<p>Sun Microsystems today announced a preview release of the <a href="http://javafx.com/">JavaFX</a> SDK. </p>
<p>I&#8217;ve been observing this new entrant into the RIA space from the outside but today I thought it was time to dig in a little bit. So I got my hands on the latest <a href="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=netbeans-6.1-javafx-1.0-pre1-oth-JPR@CDS-CDS_Developer">Netbeans wit JavaFx support </a> and cooked up this little <a href="http://experiments.mrinalwadhwa.com/JavaFx/HelloWorldJavaFx/launch.jnlp">Hello World application</a>&#8230;.<!--more--><br />
&nbsp;</p>
<h4>Initial thoughts</h4>
<p>Here are my initial thoughts of the technology .. I will try and share more detailed opinion, once I know the technology a little better .. </p>
<ul>
<li>I don&#8217;t particularly like the YAML like declarative syntax for describing UI .. I think XML as used by Flex and Silverlight is more readable .. but I guess this is more of a personal preference</li>
<li>The Netbeans IDE for JavaFx is fairly basic and somewhat buggy right now, I hope this will improve over time</li>
<li>Did they really achieve their goal of making Java UI development simpler than Swing? .. I&#8217;m not so sure &#8230; I guess I&#8217;m still getting used to the JavaFx style of UI development</li>
<li>JavaFx needs a good way to share source, Flex&#8217;s really easy way of sharing code has helped adoption, since it makes is very easy for the people in the community to share and learn from each other</li>
</ul>
<p>&nbsp;<br />
<font size="3"><a href="http://experiments.mrinalwadhwa.com/JavaFx/HelloWorldJavaFx/launch.jnlp">Launch Application using Java Web Start </a></font><br />
(Note, Java 1.6 is required)<br />
&nbsp;</p>
<h4>Source:</h4>
<p><code><br />
/*<br />
 * Main.fx<br />
 *<br />
 * Created on Aug 1, 2008, 6:00:51 AM<br />
 */</p>
<p>package helloworld;</p>
<p>import javafx.application.Frame;<br />
import javafx.application.Stage;<br />
import javafx.scene.CustomNode;<br />
import javafx.scene.Group;<br />
import javafx.scene.Node;<br />
import javafx.scene.text.Text;<br />
import javafx.scene.Font;<br />
import javafx.scene.FontStyle;<br />
import javafx.scene.paint.Color;</p>
<p>/**<br />
 * @author Mrinal Wadhwa<br />
 */<br />
public class HelloNode extends CustomNode {</p>
<p>    public function create(): Node {<br />
        return Group {<br />
            content: [<br />
                Text {<br />
                    font: Font {<br />
                        name: "Verdana"<br />
                        size: 30<br />
                        style: FontStyle.PLAIN<br />
                    }<br />
                    x: 60, y: 110<br />
                    fill: Color.WHITE<br />
                    stroke: Color.WHITE<br />
                    content: "Hello World from JavaFx"<br />
                }]<br />
        };<br />
    }<br />
}</p>
<p>Frame {<br />
    title: "Hello World !"<br />
    width: 500<br />
    height: 250<br />
    closeAction: function() {<br />
        java.lang.System.exit( 0 );<br />
    }<br />
    visible: true</p>
<p>    stage: Stage {<br />
        fill: Color.DARKGRAY<br />
        content: HelloNode{}<br />
    }<br />
}</p>
<p></code></p>
<p>I will share more detailed code whenever I get some more time to play with JavaFx. Meanwhile here are a few resources that will help you learn ..</p>
<ul>
<li><a href="http://javafx.com/">JavaFx.com</a></li>
<li><a href="http://blogs.sun.com/javafx/">JavaFx Blog</a></li>
<li><a href="http://javafx.com/releases/preview1/docs/api/">JavaFx API</a></li>
<li><a href="http://javafx.com/releases/preview1/docs/reference/JavaFX-Language.html">JavaFX Script Programming Language Reference</a></li>
</ul>
<p>I look forward to the final release of Java SE Update 10 and the final release of JavaFx SDK .. these are exciting times in RIA land.</p>
]]></description>
		<wfw:commentRss>http://weblog.mrinalwadhwa.com/2008/08/01/javafx-preview-released-heres-my-helloworld-app-and-some-initial-thoughts/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Finally ! a cool JavaFx example</title>
		<link>http://weblog.mrinalwadhwa.com/2008/05/07/finally-a-cool-javafx-example/</link>
		<comments>http://weblog.mrinalwadhwa.com/2008/05/07/finally-a-cool-javafx-example/#comments</comments>
		<pubDate>Wed, 07 May 2008 01:36:19 +0000</pubDate>
		<dc:creator>Mrinal Wadhwa</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[javafx]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://weblog.mrinalwadhwa.com/?p=291</guid>
		<description><![CDATA[<p>Sun Microsystems announced <a href="http://javafx.com">JavaFX </a>(their RIA platform) a year ago but till now all we had seen were some lame examples mostly because (I guess) the <a href="http://java.sun.com/developer/technicalArticles/javase/java6u10/index.html">deployment platform</a> for JavaFX wasn&#8217;t ready yet. </p>
<p>Sun&#8217;s yearly developer conference <a href="http://java.sun.com/javaone/sf/index.jsp">JavaOne</a> is currently going on and it looks as though some cool stuff is being shown there. I saw a twitter from <a href="http://almaer.com/blog">Dion Almaer</a> (of <a href="http://ajaxian.com">Ajaxian</a> fame) where he shared a video of a really cool demo .. even though the demo crashed a couple of times <img src='http://weblog.mrinalwadhwa.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8230; it does tell you a lot about the platform&#8230;<!--more--><br />
&nbsp;</p>
<p>
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Uuz8OG3ZTlc&#038;hl=en&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Uuz8OG3ZTlc&#038;hl=en&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
</p>
<p>&nbsp;<br />
&nbsp;</p>
<p>Things I liked &#8230;</p>
<ul>
<li>Convert a web app to a desktop app, just by dragging it to the desktop (super cool !!)</li>
<li>Same code running on browser, desktop and mobile (if you believe the demo <img src='http://weblog.mrinalwadhwa.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</li>
<li>Hardware accelerated 3D</li>
</ul>
<p>One big question I have to ask &#8230; is the web part an applet? does Sun really think people are going to get comfortable with applets again (even if the file size is now a lot smaller)? </p>
<p>Anyway its great to see how things are shaping up in the RIA world, if you want to learn more about JavaFX head to <a href="http://javafx.com">http://javafx.com</a> or <a href="https://openjfx.dev.java.net/">http://openjfx.dev.java.net/</a>. here&#8217;s an image that presents a broad picture &#8230;<br />
&nbsp;<br />
&nbsp;<br />
<a href='http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/05/javafx_platform.jpg' rel=â€lightboxâ€><img src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/05/javafx_platform.jpg" alt="JavaFx Platform" title="Click to enlarge" width="500" height="355" class="alignnone size-full wp-image-292" /></a></p>
<p>&nbsp;&nbsp;</p>
<p>Do let me know what you think of JavaFX and how the RIA space is shaping up.</p>
<p><!--more--></p>
]]></description>
		<wfw:commentRss>http://weblog.mrinalwadhwa.com/2008/05/07/finally-a-cool-javafx-example/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Apollo + Artemis: these Greek twins have got to irk Microsoft</title>
		<link>http://weblog.mrinalwadhwa.com/2007/04/18/apollo-artemis-these-greek-twins-have-got-to-irk-microsoft/</link>
		<comments>http://weblog.mrinalwadhwa.com/2007/04/18/apollo-artemis-these-greek-twins-have-got-to-irk-microsoft/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 12:50:30 +0000</pubDate>
		<dc:creator>Mrinal Wadhwa</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://weblog.mrinalwadhwa.com/2007/04/18/apollo-artemis-these-greek-twins-have-got-to-irk-microsoft/</guid>
		<description><![CDATA[<p> In Greek mythology, <a href="http://en.wikipedia.org/wiki/Artemis">Artemis</a> was the twin sister of <a href="http://en.wikipedia.org/wiki/Apollo">Apollo</a> &#8230; In todays world <a href="http://artemis.effectiveui.com/">Artemis</a> is a community  project to extend and enhance <a href="http://labs.adobe.com/wiki/index.php/Apollo">Adobeâ€™s Apollo</a> by connecting it with <a href="http://en.wikipedia.org/wiki/Java">Java</a> &#8230; the idea is to build very rich and interactive User Experiences for desktop Java applications in traditionally Internet based user interface technologies Flex/Flash/AJAX instead of using traditionally desktop UI technologies like <a href="http://en.wikipedia.org/wiki/Swing_java">Java Swing</a>.<!--more--></p>
<p><a href="http://artemis.effectiveui.com/"><img id="image92" src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2007/04/artemis.png" alt="Artemis Project" style="padding-bottom: 25px; padding-top: 25px;" /></a></p>
<p>All of us who have built front-ends for desktop software in Swing/.Net etc. earlier and later moved to developing RIA user interfaces in Flex understand how much simpler things are with Flex. I have done a lot of Swing development in the past and it is truly a very powerful framework that can be used to create anything that you can create in Flex &#8230; but, it can get quite hard and cumbersome as the complexity of the interface increases. Enter Artemis &#8230;. with Artemis you can develop your desktop based application in Java and create a User Interface for it in Flex/Flash or even AJAX. Isn&#8217;t that awesome!!</p>
<p>Apollo has out of the box support for reading/writing Files and windowing but with Artemis it brakes all boundaries, any kind of desktop software could now have a Flex interface. You could now have an Apollo/Flex application start/stop processes, talk to hardware devices on your system, make RPC calls to other process, make system calls &#8230; pretty much anything Java can do on the desktop, you can do it with this new combo of technologies but now not only is your user interface easier and faster to build and maintain, it can look a lot better than what desktop software ever have. With this, <a href="http://labs.adobe.com/wiki/index.php/Apollo">Apollo</a> is in true competition with <a href="http://wpf.netfx3.com/">Microsoft&#8217;s WPF</a>, I wonder what Microsoft feels about that <img src='http://weblog.mrinalwadhwa.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The Artemis project was started by <a href="http://adamflater.blogspot.com/">Adam Flater</a>, Sean Christmann and <a href="http://thillerson.wordpress.com/">Tony Hillerson</a> from <a href="http://www.effectiveui.com/">effectiveUI</a> but their intention is to run it as community project where developers can write and publish the Java and Flex components that make up an Artemis library at the Artemis Website. Any Java library that you have can be converted to an Apollo accessible form using the Artemis bridge. Artemis just like Apollo is still in alpha and currently there are three java libraries present in the project: </p>
<ul>
<li>Screenshot Library</li>
<li>Generic JDBC Connection Library</li>
<li>XSLT Library</li>
</ul>
<p><img id="image97" alt=Artemis src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2007/04/artemis-diagram.png" style="padding-top: 30px;padding-left: 50px;padding-bottom: 30px;" /></p>
<p>There is a very nice example Apollo application Artemis Screenshot available for download on the <a href="http://artemis.effectiveui.com/?page_id=4">Artemis download page</a> &#8230;. an awesome demo of the Wii light saber application that was showcased in Apollo Camp can be seen <a href="http://adamflater.blogspot.com/2007/03/artemi-story-of-artemis.html">here</a> at Adam&#8217;s blog.</p>
<p>I was my self thinking of possible applications that i could build using <strong>Java+Artemis+Apollo+Flex</strong> and the first thing that came to mind was the very first enterprise application that I ever worked on at <a href="http://www.emc.com">EMC</a> during my first job &#8230; <a href="http://software.emc.com/products/software_az/autostart.htm">EMC AutoStart</a> which is a high availability clustering solution that allows you create and mange clusters of as much as a hundred systems in order to ensure high availability of enterprise applications like databases, email servers, banking software etc. The core of AutoStart is very complex and has evolved a lot in over 10 years so maintaining this core left us developers very little time for the Swing based UI. My first thought was that with Artemis AutoStart team could now very easily replace their existing UI with a nice Flex interface and the effort involved would also not be much .. i hope someone from my old team is listening. </p>
<p>So you see &#8230; this new project has a lot of scope and I am very excited about it.</p>
<p>To get more information about Artemis .. head over to the <a href="http://artemis.effectiveui.com/">project homepage</a>. Many other people have talked about Artemis on their blogs and I am leaving links to some of these posts for your reference:</p>
<ul>
<li><a href="http://adamflater.blogspot.com/">Adam Flater</a></li>
<li><a href="http://thillerson.wordpress.com/">Tony Hillerson</a></li>
<li><a href="http://blogs.zdnet.com/Stewart/index.php?p=313">Ryan Stewart</a></li>
<li><a href="http://blog.everythingflex.com/2007/04/17/artemis-alpha-released/">Rich Tretola</a></li>
</ul>
<p><img id="image98" src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2007/04/thisisfunny.gif" alt="Zues" style="float: right; padding-left: 10px; " />I noticed something funny on the <a href="http://artemis.effectiveui.com/">Artemis home page</a> .. the author of the different news items is called <strong>Zues</strong> &#8230; this is funny because according to Greek mythology Zeus was the father of Apollo and Artemis <img src='http://weblog.mrinalwadhwa.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></description>
		<wfw:commentRss>http://weblog.mrinalwadhwa.com/2007/04/18/apollo-artemis-these-greek-twins-have-got-to-irk-microsoft/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

