<?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>Thierry WASYL : Java blog</title>
	<atom:link href="http://thierrywasyl.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thierrywasyl.wordpress.com</link>
	<description>When Sun technologies become passion</description>
	<lastBuildDate>Mon, 31 Oct 2011 18:56:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thierrywasyl.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Thierry WASYL : Java blog</title>
		<link>http://thierrywasyl.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thierrywasyl.wordpress.com/osd.xml" title="Thierry WASYL : Java blog" />
	<atom:link rel='hub' href='http://thierrywasyl.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Eleven: a bunch of emotions</title>
		<link>http://thierrywasyl.wordpress.com/2011/10/23/eleven-a-bunch-of-emotions/</link>
		<comments>http://thierrywasyl.wordpress.com/2011/10/23/eleven-a-bunch-of-emotions/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 19:55:09 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Music country Martina McBride]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=69</guid>
		<description><![CDATA[It is not very usual at all I&#8217;m doing some comments about an artist and her/his latest album. But here I think I should, so I do. I&#8217;m going to write about the latest album of Martina McBride, Eleven. I discovered Martina watching the CMA 2011, performing the song &#8220;One Nigh&#8221; (on her latest album, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=69&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is not very usual at all I&#8217;m doing some comments about an artist and her/his latest album. But here I think I should, so I do.<br />
I&#8217;m going to write about the latest album of <a href="http://martinamcbride.com/" title="Martina McBride">Martina McBride</a>, Eleven. I discovered Martina watching the CMA 2011, performing the song &#8220;One Nigh&#8221; (on her latest album, first track). In my mind the performance of Martina was absolutely amazing and I couldn&#8217;t take the song off my head. The melody is swinging, the words really beautiful. That was for the little story.<br />
First of all, I bought the signature bundle which came with a T-shirt with Martina on it, a handed-signed booklet, a sticker and of course the CD. Loving it!</p>
<p>Then I have to talk about the album itself and there is a lot to say (or write &#8230;). As I said, &#8220;One Nigh&#8221; is the first track of a serie of &#8230; eleven. So the album starts with a joyfully song, making you want to dance. And listening to the whole album, Martina succeeds in giving you a lot of emotions. &#8220;I&#8217;m gonna love through it&#8221; is more than just a song. It is a wonderful ballad about fighting cancer and how family, friends, wife or husband are important in such a fight, such an experience in the life of a human being. It makes you realize not only the person which has cancer suffers, but the circle also does. I think that it is not a one-more-song-about-cancer saying cancer-is-bad but a song about relationships between people being in this tough situation, the words proving it: &#8220;When you&#8217;re weak, I&#8217;ll be strong, When you let go, I&#8217;ll hold on […] I&#8217;m gonna love you through love it&#8221;. We know cancer is bad, so no need to sing it again. But the way the cancer not only hurts affected one has not been said so powerfully, so truly, so humbly. For me this song means a lot, I already was in such a situation. But Martina also succeed in saying that even if you win your fight against cancer, your life is changed for aways: &#8220;To hide what the cancer took from her, But she just want to feel like a woman again&#8221;. Martina just found the right words for describing a tough situation. In my mind this song is one of the most beautiful of the album.</p>
<p>But the album also have its lot of beautiful emotions like &#8220;Marry Me&#8221; which is incredibly touching and powerful. For me it&#8217;s a song about marriage saying that &#8220;I don&#8217;t just love when I want to or when I need to&#8221; (not a quotation). Martina sings &#8220;Marry me Today and every day&#8221; that makes me think of this. So romantic. &#8220;Broken Umbrella&#8221; is also a sweet and beautiful love ballad remembering everyone when they felt in love, and everything was perfect, like it was always sun in your heart. These two songs are &#8220;complementary&#8221; in my mind because one is like about the beginning of a relationship, and the other for saying &#8220;love should last, I want your love for me last&#8221;. It&#8217;s a beautiful combination.</p>
<p>For me the funniest song is &#8220;Teenage Daughters&#8221; with its incredibly honesty. When we have kids, it is true we sometimes blame our children when they break the rules we fix, or something else. It is also true kids are so sweet, with their hazel eyes when they need something. And Martina just reminds us we were &#8230; the same. And that is really funny the way she brings it, she sings it. She doesn&#8217;t take the party of kids, but the songs could say &#8220;Hey, you were the same, you&#8217;ve just grown up and realize it is bad or not good&#8221;. It&#8217;s pretty interesting! It is just another part of the life of a human being which is sing here. The song also contains a lot of &#8220;do do do&#8221; which make you sing loud. You just want to swing (again) by listening to this song. Incredible.</p>
<p>The album contains a lot of love, that&#8217;s a fact. But not the usual i-love-you-so-much-that-i-could-die-for-you (yeah you know the kind) songs but love in every way, some &#8220;unusual&#8221; ways that we may not be used to listen the &#8230; way Martina sings it: love facing the cancer, love facing the time, love facing the sins, love facing difficulties, love facing the distance. To make it short: love facing the life. And all of this in this album. Simply amazing!</p>
<p>I&#8217;m not going to describe every song of the album (I did enough) and I will just have some words about Martina&#8217;s vocal performance. The emotions you will have listening to this album is not just because of the strong words of each song, but because Martina made such a vocal performance. For example in the &#8220;Long Distance Lullaby&#8221; song, sometimes you really think Martina&#8217;s whispering to her daughters with this sweet-mother-voice every woman can have talking to her kids. Or in &#8220;Watcha Gonna Do&#8221; she ends the song slowly and low letting you questioning yourself, thinking &#8220;Am I sometimes acting like this&#8221; (probably &#8230;) or something else. In &#8220;Broken Umbrella&#8221; she takes a joyfully voice to talk about love, because loving somebody is really beautiful, joyfully. She just has the right voice for what she&#8217;s singing: when it is happy you feel it her voice, when it is hard she makes you feel it. It is really hard to describe but when you&#8217;re listening to the album, you say to yourself &#8220;Wow, her voice is really the right for what she&#8217;s singing right now&#8221;. It is simply amazing!</p>
<p>To finish, Eleven is an amazing album (buy it, better twice that one), nothing more nothing less. I would like to say it is a &#8220;truth&#8221; album: every song is so strong, so true, so powerful. It&#8217;s not like i-m-gonna-make-a-new-album-just-for-making-one-yay. No, it is a bunch of emotions, the kind of album that at the end you&#8217;re saying to yourself &#8220;W-O-W, play it again&#8221;. Powerful, true, beautiful, touching, full of love.</p>
<p>Thank you very very very much Martina McBride, you truly deserve it, &#8220;It always be this way&#8221; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=69&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2011/10/23/eleven-a-bunch-of-emotions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>Get annotation&#8217;s field&#8217;s value easily</title>
		<link>http://thierrywasyl.wordpress.com/2011/05/12/get-annotations-fields-value-easily/</link>
		<comments>http://thierrywasyl.wordpress.com/2011/05/12/get-annotations-fields-value-easily/#comments</comments>
		<pubDate>Thu, 12 May 2011 18:21:49 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Code example]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[annotation]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JavaEE]]></category>
		<category><![CDATA[reflexivity]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=62</guid>
		<description><![CDATA[Hello, Maybe have you ever been confronted to the problem of getting the value of a field of an annotation. You see what I&#8217;m talking about? No. Example: Let&#8217;s imagine you want to retrieve the value of myField (ie Hello there). How could You do that? Let me propose you two ways. First way The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=62&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Maybe have you ever been confronted to the problem of getting the value of a field of an annotation. You see what I&#8217;m talking about? No. Example:</p>
<p><pre class="brush: java;">
@Foo(myField=&quot;Hello there&quot;)
public class FooClass implements Serializable {
// ...
}
</pre></p>
<p>Let&#8217;s imagine you want to retrieve the value of <strong>myField</strong> (ie <strong>Hello there</strong>). How could You do that? Let me propose you two ways.</p>
<p><strong>First way</strong><br />
The easier way but absolutely not scalable is to do the following code:</p>
<p><pre class="brush: java;">
// ...
String myFieldValue = &quot;Hello there&quot;;
// ...
</pre></p>
<p>Well it&#8217;s working, isn&#8217;t it? But imagine you have to get this value a lot of times, in different classes and so on &#8230; Are you going to use your favorite IDE&#8217;s function &#8220;Find and replace &#8230;&#8221;? Why not. But, lets take a look to a different way.</p>
<p><strong>Second way</strong><br />
The other solution, much more scalable, is to use reflexivity. And the great thing about that is that you will be able to use for whatever annotation and whatever field. Lets take a look at this:</p>
<p><pre class="brush: java;">
public String getClassAnnotationValue(Class classType, Class annotationType, String attributeName) {
        String value = null;

        Annotation annotation = classType.getAnnotation(annotationType);
        if (annotation != null) {
            try {
                value = (String) annotation.annotationType().getMethod(attributeName).invoke(annotation);
            } catch (Exception ex) {
            }
        }

        return value;
    }
</pre></p>
<p>How invoke that snippet of code?</p>
<p><pre class="brush: java;">
// ...
String myFieldValue = getClassAnnotationValue(FooClass.class, Foo.class, &quot;myField&quot;);
// ...
</pre></p>
<p>As you can see, you can use it for whatever class annotation on a class. You can now imagine doing the same for a field Annotation. Give it a try!</p>
<p>This is a pretty useful when you work in JEE. Imagine a SessionBean with may implementations, or an EntityBean with the @Table annotation, or a simple field with the @Column annotation. And these two last examples, it is useful if you build your own SQL queries. Because with this snippet of code, you won&#8217;t have to look everywhere you use your EntityBean and change the table name in your query &#8230;</p>
<p>Well, I hope this could help you sometimes.<br />
Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=62&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2011/05/12/get-annotations-fields-value-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>Deal with Context-Path in Java EE</title>
		<link>http://thierrywasyl.wordpress.com/2010/04/25/deal-with-context-path-in-java-ee/</link>
		<comments>http://thierrywasyl.wordpress.com/2010/04/25/deal-with-context-path-in-java-ee/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 18:15:14 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Code example]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Context-Path]]></category>
		<category><![CDATA[Context-Root]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JavaEE]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=59</guid>
		<description><![CDATA[Maybe have you ever try to create an Enterprise Application in Java, containing both EJB and Web modules. And maybe have you noticed that the context-path of the web application is the same that the generated WAR file. So let&#8217;s imagine you create an enterprise application named JustMyApp with two modules: JustMyApp-ejb and JustMyApp-war. After [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=59&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Maybe have you ever try to create an Enterprise Application in Java, containing both EJB and Web modules. And maybe have you noticed that the context-path of the web application is the same that the generated WAR file.<br />
So let&#8217;s imagine you create an enterprise application named <strong>JustMyApp</strong> with two modules: <strong>JustMyApp-ejb</strong> and <strong>JustMyApp-war</strong>. After deploying your application, you just go to your website using an URL like this one (depending on which port your server is running): <strong>http://localhost:8080/JustMyApp-war</strong>. Well I have to admit I totally dislike to enter <strong>-war</strong> in the URL&#8230; Why not <strong>JustMyApp</strong> only?</p>
<p>Context-Path in Java EE is kind of <em>strange</em>. Indeed, if you only have a WAR (not en EAR) changing the CP for the WAR is working fine. But if you are in an EAR, things are little bit different!</p>
<p>So how to do that? You have to create a file called a <strong>Standard Deployment Descriptor</strong> and put it into your EAR. The name of this file must be <strong>application.xml</strong>. This file contains the name of all modules you have in the EAR, and you can specify the context-path for your Web module. Let&#8217;s see an example:</p>
<p><pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;application version=&quot;6&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd&quot;&gt;
  &lt;display-name&gt;JustMyApp&lt;/display-name&gt;
  &lt;module&gt;
    &lt;ejb&gt;JustMyApp-ejb.jar&lt;/ejb&gt;
  &lt;/module&gt;
  &lt;module&gt;
    &lt;web&gt;
      &lt;web-uri&gt;JustMyApp-war.war&lt;/web-uri&gt;
      &lt;context-root&gt;/JustMyApp&lt;/context-root&gt;
    &lt;/web&gt;
  &lt;/module&gt;
&lt;/application&gt;
</pre></p>
<p>The URL to enter to access your web application is just specified by the <strong>&lt;context-root&gt;&#8230;&lt;/context-root&gt;</strong> markup. So put there whatever you want and just try it ! That&#8217;s how the Context-Path for EAR can be changed !</p>
<p>Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=59&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2010/04/25/deal-with-context-path-in-java-ee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>UML in NetBeans 6.8</title>
		<link>http://thierrywasyl.wordpress.com/2010/04/15/uml-in-netbeans-6-8/</link>
		<comments>http://thierrywasyl.wordpress.com/2010/04/15/uml-in-netbeans-6-8/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:06:17 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=56</guid>
		<description><![CDATA[If you try to install an UML plugin for NetBeans using the Plugins window of the application, you won&#8217;t find an UML one. The solution is quite simple. Indeed you just need to download a ZIP file on the NetBeans website. Search for a file named netbeans-6.8-201004041201-ml-uml.zip and download it. Once it&#8217;s done, you just [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=56&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you try to install an UML plugin for NetBeans using the <strong>Plugins</strong> window of the application, you won&#8217;t find an UML one.<br />
The solution is quite simple. Indeed you just need to download a ZIP file on the <a href="http://netbeans.org/downloads/zip.html">NetBeans website</a>. Search for a file named <strong>netbeans-6.8-201004041201-ml-uml.zip</strong> and download it. Once it&#8217;s done, you just need to extract this archive inside the NetBeans installation folder. The result of the extraction should give you a folder named <strong>uml6</strong>. Restart NetBeans and for now you can create UML projects. It&#8217;s cool isn&#8217;t it? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For Mac users: find your <strong>NetBeans.app</strong> and right-click on it and choose <strong>Show Package Content</strong>. Then go to the <strong>Contents</strong> &gt; <strong>Resources</strong> &gt; <strong>NetBeans</strong> folder. Place the <strong>uml6</strong> folder here. It&#8217;s done.</p>
<p>Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=56&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2010/04/15/uml-in-netbeans-6-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploy Java applications on Mac</title>
		<link>http://thierrywasyl.wordpress.com/2009/09/25/deploy-java-applications-on-mac/</link>
		<comments>http://thierrywasyl.wordpress.com/2009/09/25/deploy-java-applications-on-mac/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 18:41:07 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[jar bundler]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=53</guid>
		<description><![CDATA[Hello, You need to deploy Java applications on Mac? Take a look at : http://thierry.wasylczenko.free.fr/?p=108 Enjoy.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=53&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>You need to deploy Java applications on Mac? Take a look at : <a href="http://thierry.wasylczenko.free.fr/?p=108">http://thierry.wasylczenko.free.fr/?p=108</a></p>
<p>Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=53&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2009/09/25/deploy-java-applications-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>Deal with workspaces and shortcuts in Eclipse</title>
		<link>http://thierrywasyl.wordpress.com/2009/09/12/deal-with-workspaces-and-shortcuts-in-eclipse/</link>
		<comments>http://thierrywasyl.wordpress.com/2009/09/12/deal-with-workspaces-and-shortcuts-in-eclipse/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 09:52:48 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[workspace]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=51</guid>
		<description><![CDATA[A brand new post here : http://thierry.wasylczenko.free.fr/?p=90 Enjoy<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=51&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A brand new post here : <a title="http://thierry.wasylczenko.free.fr/?p=90" href="http://thierry.wasylczenko.free.fr/?p=90">http://thierry.wasylczenko.free.fr/?p=90</a></p>
<p>Enjoy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=51&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2009/09/12/deal-with-workspaces-and-shortcuts-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>Maximize a JFrame</title>
		<link>http://thierrywasyl.wordpress.com/2009/07/24/maximize-a-jframe/</link>
		<comments>http://thierrywasyl.wordpress.com/2009/07/24/maximize-a-jframe/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 20:19:53 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Code example]]></category>
		<category><![CDATA[Swing]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=49</guid>
		<description><![CDATA[Hello everyone, I&#8217;m writing a new post because I saw an awfull code to maximize a JFrame in Java. Maybe You&#8217;ve ever tried to maximize Your GUI at the startup of Your application. It&#8217;s something which is very basic but which can be done in several ways (and some awfull ways too&#8230;). First of all, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=49&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>I&#8217;m writing a new post because I saw an awfull code to maximize a JFrame in Java. Maybe You&#8217;ve ever tried to maximize Your GUI at the startup of Your application. It&#8217;s something which is very basic but which can be done in several ways (and some awfull ways too&#8230;).</p>
<p>First of all, You could retrieve the size of Your screen, and set it to Your JFrame like this :</p>
<pre class="java">
// Get the screen size
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
// Create a jframe, just for the example
JFrame myFrame = new JFrame();
// Set the size
myFrame.setPreferredSize(screen);
myFrame.setVisible(true);
</pre>
<p>Well this is bad&#8230; Why? Because imagine You created Your application on Linux, and then try to launch it on Windows (I test an application recently&#8230;). On Linux, fine. On Windows, the application was under the task bar&#8230; So a part of the application was hidden&#8230; And the developpers used a similar code. So, this is not really a good practice.<br />
There is a much simplier and efficient way to do that. Just look at this :</p>
<pre class="java">
JFrame myFrame = new JFrame();
myFrame.setVisible(true);
myFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
</pre>
<p>That&#8217;s all ! Much more simplier and better working. Notice that setting the state is after making the frame visible <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=49&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2009/07/24/maximize-a-jframe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>JAI : how to solve vendorName == null exception</title>
		<link>http://thierrywasyl.wordpress.com/2009/07/24/jai-how-to-solve-vendorname-null-exception/</link>
		<comments>http://thierrywasyl.wordpress.com/2009/07/24/jai-how-to-solve-vendorname-null-exception/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 20:17:59 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[jai]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[manifest]]></category>
		<category><![CDATA[null]]></category>
		<category><![CDATA[vendorName]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=47</guid>
		<description><![CDATA[Hello everybody, Have You ever used JAI (Java Advanced Imaging) ? If You used the class ImageIO in order to read and save images, the answer is yes. Most of the time, You should not have problem when You deploy Your application with an executable JAR even if You&#8217;re using JAI. But, most of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=47&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello everybody,</p>
<p>Have You ever used JAI (Java Advanced Imaging) ? If You used the class ImageIO in order to read and save images, the answer is yes.<br />
Most of the time, You should not have problem when You deploy Your application with an executable JAR even if You&#8217;re using JAI. But, most of the time doesn&#8217;t mean never, so that&#8217;s a problem !<br />
Recently I had to deploy an application as a JAR, and this application was using quantity of external library. And of course it used JAI.<br />
Well, doing a JAR is not really a problem but &#8230;</p>
<p>In my case, the application was developped with Eclipse, and was running fine in it. But, when it comes to run it with a JAR, that was problematic&#8230;<br />
I got an exception when a tried to load images, especially TIFF images. This exception was thrown by JAI and told me that the vendorName was null. Interessting : but which vendor ??</p>
<p>The answer is quiet simple : JAI needs sometimes to know the name of the vendor who developped the application, and the implementation of it&#8230; OK, you&#8217;ll tell me &#8220;Fine. It seems it&#8217;s my application, so I&#8217;m the vendor. But how do I specify that?&#8221;. And that&#8217;s the point.</p>
<p>When You deploy an application as an executable JAR, You probably know that You need a manifest file. And that manifest file is the key. A complete valid manifest file could be this :</p>
<p><pre class="brush: java;">
Manifest-Version: 1.0
Main-Class: fr.free.thierrywasyl.myproject.launcher.Launch
</pre></p>
<p>But where did I specify the author? No where. But JAI will maybe need to know that, or You&#8217;ll get an exception about the vendor. So let&#8217;s add some lines, which are good to add (take it as a good practice) which are general:</p>
<p><pre class="brush: java;">
Manifest-Version: 1.0
Implementation-Vendor: Sun Microsystems, Inc
Implementation-Title: Java Runtime Environment
Implementation-Version: 1.6.0
Main-Class: fr.free.thierrywasyl.myproject.launcher.Launch
</pre></p>
<p>So far so good. So are You a null vendor? Of course not, You get over the exception <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=47&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2009/07/24/jai-how-to-solve-vendorname-null-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtual hosting on Glassfish</title>
		<link>http://thierrywasyl.wordpress.com/2009/06/27/virtual-hosting-on-glassfish/</link>
		<comments>http://thierrywasyl.wordpress.com/2009/06/27/virtual-hosting-on-glassfish/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 16:34:32 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[virtual hosting]]></category>
		<category><![CDATA[virtual server]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=37</guid>
		<description><![CDATA[Hi everyone, I&#8217;ve been looking how to change the URL of a website I&#8217;m developping in JEE. You probably have noticed that the URL of the project You&#8217;re developping is something like : http://localhost:8080/theContextPathOfYourProject. I&#8217;m currently developping my application with NetBeans and Glassfish V2 and I would like to change this URL with something more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=37&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>I&#8217;ve been looking how to change the URL of a website I&#8217;m developping in JEE. You probably have noticed that the URL of the project You&#8217;re developping is something like : http://localhost:8080/theContextPathOfYourProject.<br />
I&#8217;m currently developping my application with NetBeans and Glassfish V2 and I would like to change this URL with something more simple, like http://www.mysite.com/</p>
<p>So I checked out and a nice feature of Glassfish could be used : Virtual Hosting.<br />
This article will show You how to do that, in the easiest way possible. So let&#8217;s go.</p>
<p>First of all, You&#8217;ll need to have a JEE application. With this application, You can change its context-path to something simple. For example, my application is named <strong>jacc</strong> so I changed its context-path to jacc. Do this is pretty simple.<br />
In NetBeans, open the <strong>Projects</strong> window, right-click on Your application and choose <strong>Properties</strong>. In the new window, go to <strong>Run</strong> and change the context-path, as shown below :<br />
<img class="alignnone size-full wp-image-38" title="Image 2" src="http://thierrywasyl.files.wordpress.com/2009/06/image-21.png?w=450&#038;h=112" alt="Image 2" width="450" height="112" /></p>
<p>After that, we&#8217;re going to work in the Administration console of Glassfish. So if Glassfish isn&#8217;t started yet, do it and go to the admin console.</p>
<p><strong><span style="text-decoration:underline;">Step 1:</span></strong><br />
We will create a virtual server. So let&#8217;s go to <strong>Configuration</strong>, <strong>HTTP Service</strong> and <strong>Virtual Servers</strong>. You should be there :<br />
<img class="alignnone size-full wp-image-40" title="Image 4" src="http://thierrywasyl.files.wordpress.com/2009/06/image-41.png?w=414&#038;h=306" alt="Image 4" width="414" height="306" /></p>
<p>Click on the <strong>New&#8230;</strong> button. Give an id (for example <strong>jacc</strong>), the hosts (which corresponds to the address You&#8217;ll enter in Your browser to access Your website : I want jacc.com). Hit the <strong>OK</strong> button. We&#8217;ll create a listener and then, go back here.</p>
<p><span style="text-decoration:underline;"><strong>Step 2 :</strong></span><br />
Here we will create a listener. This listener will listen requests on a given port. The default port Glassfish is listen to is 8080. If You don&#8217;t want to run Your app on  another port, You can go to step 3. Otherwise, let&#8217;s go.<br />
We&#8217;re going to create a listener for the port 8282. On the left of the admin console, click on <strong>Configuration</strong>, then <strong>HTTP Service</strong> and <strong>HTTP Listeners</strong>. You should be there :</p>
<p><img class="alignnone size-full wp-image-39" title="Image 3" src="http://thierrywasyl.files.wordpress.com/2009/06/image-32.png?w=437&#038;h=295" alt="Image 3" width="437" height="295" /></p>
<p>Right, click on the <strong>New&#8230;</strong> button. Give Your listener a name such as <strong>http-listener-3</strong>, the network address (in our case, for localhost, we enter 0.0.0.0), the listening port (8282 as we said) and the default virtual server, created before. So in the list You should see <strong>jacc</strong>. If not, restart Glassfish and restart this step. Hit <strong>Next</strong> and the <strong>Finish</strong>.</p>
<p><strong><span style="text-decoration:underline;">Step 3:</span></strong><br />
Then go back to the virtul servers list and click on the one You&#8217;ve created before. And in the text field for the HTTP Listners, enter the name of the listener You&#8217;ve created before. For me <strong>http-listener-3</strong>.<br />
Then, in the list of <strong>Default Web Module</strong>, You will choose Your web application. Mine is called <strong>jAcc-war</strong>. So I select it. With that, You won&#8217;t need to type the context path of Your application in the URL <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Ok, should be nice. Now, we have to indicates Glassfish our web application will run on our brand new virtual server.</p>
<p><strong><span style="text-decoration:underline;">Step 4:</span></strong><br />
So, go to Applications, Web Applications and select Your application. Mine is jAcc-war. Then select Your virtual server in the list like this :<br />
<img class="alignnone size-full wp-image-41" title="Image 5" src="http://thierrywasyl.files.wordpress.com/2009/06/image-51.png?w=406&#038;h=289" alt="Image 5" width="406" height="289" /></p>
<p>So now, restart Your Glassfish. Then we&#8217;re going to work somewhere else&#8230;</p>
<p><strong><span style="text-decoration:underline;">Step 5:</span></strong><br />
When You type the hosts address You defined in the creation of Your virtual server (jacc.com for me) in the address bar of Your browser, it shouldn&#8217;t go to the right place&#8230; So You have to tell Your computer that this host is Your computer. So find a file named <strong>hosts</strong> in Your system. In Unix based OS, it should be in <strong>/etc/</strong>. On Windows system : <strong>C:\WINDOWS\system32\drivers\etc</strong>. Edit this file and add a line like this :<br />
127.0.0.1    jacc.com</p>
<p>Well, now it should work <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So in Your brower, You should type the URL You wanted and the port on which Your virtual server listens. So for me jacc.com:8282<br />
So it is more convenient, isn&#8217;t it? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
So now You know how to deploy virtual servers using Glassfish.<br />
Enjoy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=37&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2009/06/27/virtual-hosting-on-glassfish/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-21.png" medium="image">
			<media:title type="html">Image 2</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-41.png" medium="image">
			<media:title type="html">Image 4</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-32.png" medium="image">
			<media:title type="html">Image 3</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-51.png" medium="image">
			<media:title type="html">Image 5</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse Galileo</title>
		<link>http://thierrywasyl.wordpress.com/2009/06/25/eclipse-galileo/</link>
		<comments>http://thierrywasyl.wordpress.com/2009/06/25/eclipse-galileo/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 12:59:13 +0000</pubDate>
		<dc:creator>Thierry WASYL</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://thierrywasyl.wordpress.com/?p=29</guid>
		<description><![CDATA[Hello everyone, The latest version of Eclipse is out Codename : Galileo. So be sure to grab it on : http://www.eclipse.org/ If You&#8217;re on Mac OS X : Leopard, You will prefer the Cocoa version of the IDE Then, let me give You a little tip : if You&#8217;re on Mac OS X, and even [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=29&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>The latest version of Eclipse is out <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Codename : Galileo. So be sure to grab it on : <a title="http://www.eclipse.org/" href="http://www.eclipse.org/">http://www.eclipse.org/<br />
</a>If You&#8217;re on Mac OS X : Leopard, You will prefer the Cocoa version of the IDE <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Then, let me give You a little tip : if You&#8217;re on Mac OS X, and even if You&#8217;ve setted up the JDK 1.6 by default, Eclipse won&#8217;t recognize it, and will still use the JDK 1.5. So to change that, go to the Preferences of Eclipse and then to Java, Installed JREs. You should be there :</p>
<p><img class="alignnone size-full wp-image-30" title="Image 1" src="http://thierrywasyl.files.wordpress.com/2009/06/image-11.png?w=450&#038;h=310" alt="Image 1" width="450" height="310" /></p>
<p>So click on the Add button. In the new window, select <strong>MacOS </strong><strong>X VM</strong> as JRE type. Click next and now enter something like this in the JRE Home text field : <strong>/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home</strong><br />
Right, You&#8217;ve done the most tough part of it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Enter an explicit name like JRE 1.6 for example and hit the Finish button. Now You just have to select the new JRE in the list.<br />
Now under the Installed JREs node, select Your execution environment as shown bellow :</p>
<p><img class="alignnone size-full wp-image-31" title="Image 2" src="http://thierrywasyl.files.wordpress.com/2009/06/image-2.png?w=450&#038;h=304" alt="Image 2" width="450" height="304" /></p>
<p>Well, it will soon be ok <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Just setup the compiler now. Go under Java, Compiler and select 1.6 in the list, as shown bellow :</p>
<p><img class="alignnone size-full wp-image-32" title="Image 3" src="http://thierrywasyl.files.wordpress.com/2009/06/image-31.png?w=450&#038;h=304" alt="Image 3" width="450" height="304" /></p>
<p>That&#8217;s all <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thierrywasyl.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thierrywasyl.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thierrywasyl.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thierrywasyl.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thierrywasyl.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thierrywasyl.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thierrywasyl.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thierrywasyl.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thierrywasyl.wordpress.com&amp;blog=8204299&amp;post=29&amp;subd=thierrywasyl&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thierrywasyl.wordpress.com/2009/06/25/eclipse-galileo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e607aa378b2e5f2333001152e8da80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Thierry WASYL</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-11.png" medium="image">
			<media:title type="html">Image 1</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-2.png" medium="image">
			<media:title type="html">Image 2</media:title>
		</media:content>

		<media:content url="http://thierrywasyl.files.wordpress.com/2009/06/image-31.png" medium="image">
			<media:title type="html">Image 3</media:title>
		</media:content>
	</item>
	</channel>
</rss>
