<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>davidsalter.co.uk</title>
	
	<link>http://davidsalter.co.uk/blog</link>
	<description>... blogging about Software Development and Java in particular ...</description>
	<lastBuildDate>Thu, 29 Jul 2010 09:11:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DavidSalter" /><feedburner:info uri="davidsalter" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>JBoss 6.0.0.M4 released – Good News for Weld/CDI Developers</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/CtpyI7BKkQ4/</link>
		<comments>http://davidsalter.co.uk/blog/?p=466#comments</comments>
		<pubDate>Wed, 28 Jul 2010 19:04:03 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[CDI]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Weld]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=466</guid>
		<description><![CDATA[The latest milestone release, M4 of JBoss AS 6 has been released and can be downloaded from the usual place. This new release adds some important Java EE 6 functionality and fixes a very important bug, JBAS-8024, which effectively stops &#8230; <a href="http://davidsalter.co.uk/blog/?p=466">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- AdSense Now! V1.92 -->
<!-- Post[count: 3] -->
<div class="adsense adsense-leadin" style="float:right;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "pub-5746520860426341";
/* 468x60, created 11/05/09 */
google_ad_slot = "0623075183";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>The latest milestone release, M4 of JBoss AS 6 has been released and can be downloaded from the <a href="http://www.jboss.org/jbossas/downloads.html">usual place</a>.</p>
<p>This new release adds some important Java EE 6 functionality and fixes a very important bug, <a href="https://jira.jboss.org/browse/JBAS-8024">JBAS-8024</a>, which effectively stops you from deploying Weld applications to the server.  Weld deployments worked in M2, but stopped working in M3 meaning you had to either use a development snapshot or revert back to M2.</p>
<p>Full release notes for this version are available <a href="http://community.jboss.org/wiki/AS600M4ReleaseNotes">here</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=JBoss+6.0.0.M4+released+%26%238211%3B+Good+News+for+Weld%2FCDI+Developers+http://bit.ly/a8dsAG" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=466&amp;submitHeadline=JBoss+6.0.0.M4+released+%26%238211%3B+Good+News+for+Weld%2FCDI+Developers" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=466&amp;title=JBoss+6.0.0.M4+released+%26%238211%3B+Good+News+for+Weld%2FCDI+Developers" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=466&amp;t=JBoss+6.0.0.M4+released+%26%238211%3B+Good+News+for+Weld%2FCDI+Developers" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=466&amp;title=JBoss+6.0.0.M4+released+%26%238211%3B+Good+News+for+Weld%2FCDI+Developers" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/CtpyI7BKkQ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=466</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=466</feedburner:origLink></item>
		<item>
		<title>Upgrading RichFaces 4.0.0.A2 to 4.0.0.M1</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/it28bko4J3w/</link>
		<comments>http://davidsalter.co.uk/blog/?p=452#comments</comments>
		<pubDate>Tue, 27 Jul 2010 22:47:10 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[RichFaces]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=452</guid>
		<description><![CDATA[Last week RichFaces 4.0.0.M1 was released.  If you are using Maven, then its relatively easy to upgrade from Alpha2 to M1. If you&#8217;ve not started using RichFaces 4 yet in your applications, then full details of how to install RichFaces &#8230; <a href="http://davidsalter.co.uk/blog/?p=452">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last week RichFaces 4.0.0.M1 was released.  If you are using Maven, then its relatively easy to upgrade from Alpha2 to M1. If you&#8217;ve not started using RichFaces 4 yet in your applications, then full details of how to install RichFaces in a Maven application are provided on the <a href="http://community.jboss.org/wiki/HowtoaddRichFaces4xtomavenbasedproject">JBoss Wiki</a>.</p>
<p>To upgrade from A2 to M1, should just be a matter of upgrading the version number in your pom.xml file, cleaning and building your project.  The main thing to note however is that the version number is &#8220;4.0.0.20100715-M1&#8243; rather than simply &#8220;4.0.0.M1&#8243; as would have been expected. An upgraded version property would therefore read as:</p>
<pre><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;properties&gt;
</span></span><span style="color: #444444; font-family: Georgia, 'Bitstream Charter', serif; line-height: 22px;">  &lt;org.richfaces.ui.version&gt;4.0.0.20100715-M1&lt;/org.richfaces.ui.version&gt;
</span><span style="color: #444444; font-family: Georgia, 'Bitstream Charter', serif; line-height: 22px;">&lt;/properties&gt;</span></pre>
<p>After upgrading the version of RichFaces however, I found a problem in that dependencies on <code>org.w3c.css.sac</code> and <code>net.sourceforge.cssparser.cssparser</code> are not properly discovered. Without these additional Jars, the following exception is thrown at runtime:</p>
<pre><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">java.lang.NoClassDefFoundError: org/w3c/css/sac/ErrorHandler
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">org.richfaces.resource.ResourceHandlerImpl.createResource
  (ResourceHandlerImpl.java:460)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">org.richfaces.resource.ResourceHandlerImpl.createResource
  (ResourceHandlerImpl.java:483)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd
  (StylesheetRenderer.java:91)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.renderkit.html_basic.HeadRenderer.encodeEnd(HeadRenderer.java:93)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView
   (FaceletViewHandlingStrategy.java:380)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">org.jboss.weld.servlet.ConversationPropagationFilter.doFilter
  (ConversationPropagationFilter.java:68)</span></span></pre>
<p>This can be fixed easily however, by adding the following dependencies into your POM file.</p>
<pre><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;dependency&gt;
</span></span><span style="white-space: pre;">   </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;groupId&gt;org.w3c.css&lt;/groupId&gt;
</span></span><span style="white-space: pre;">   </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;artifactId&gt;sac&lt;/artifactId&gt;
</span></span><span style="white-space: pre;">   </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;version&gt;1.3&lt;/version&gt;
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;/dependency&gt;
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;dependency&gt;
</span></span><span style="white-space: pre;">   </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;groupId&gt;net.sourceforge.cssparser&lt;/groupId&gt;
</span></span><span style="white-space: pre;">   </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;artifactId&gt;cssparser&lt;/artifactId&gt;
</span></span><span style="white-space: pre;">   </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;version&gt;0.9.5&lt;/version&gt;
</span></span><span style="white-space: pre;"> </span><span style="font-family: Georgia, 'Bitstream Charter', serif; color: #444444;"><span style="line-height: 22px;">&lt;/dependency&gt;</span></span></pre>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Upgrading+RichFaces+4.0.0.A2+to+4.0.0.M1+http://bit.ly/aGl9TJ" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=452&amp;submitHeadline=Upgrading+RichFaces+4.0.0.A2+to+4.0.0.M1" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=452&amp;title=Upgrading+RichFaces+4.0.0.A2+to+4.0.0.M1" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=452&amp;t=Upgrading+RichFaces+4.0.0.A2+to+4.0.0.M1" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=452&amp;title=Upgrading+RichFaces+4.0.0.A2+to+4.0.0.M1" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/it28bko4J3w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=452</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=452</feedburner:origLink></item>
		<item>
		<title>Running JBoss Tools in Eclipse 3.6, Helios</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/kybGyEggmCc/</link>
		<comments>http://davidsalter.co.uk/blog/?p=445#comments</comments>
		<pubDate>Wed, 07 Jul 2010 20:41:02 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[JBoss Tools]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=445</guid>
		<description><![CDATA[With the release of a new version of Eclipse, its natural to download it and start using it straight away.  One of the main problems doing this however, is that plugins aren&#8217;t always guaranteed to work with the new version &#8230; <a href="http://davidsalter.co.uk/blog/?p=445">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With the release of a new version of Eclipse, its natural to download it and start using it straight away.  One of the main problems doing this however, is that plugins aren&#8217;t always guaranteed to work with the new version of Eclipse. This is the case with JBoss Tools.</p>
<p>Fortunately however, you can install the JBoss Tools nightly builds as these are now compatible with Eclipse Helios. The easiest way to install JBoss Tools Nightly on Helios is via the update center at:</p>
<pre>http://downloads.jboss.org/jbosstools/nightly/trunk/</pre>
<p>When I first attempted to install JBoss Tools on Helios though I got the following error:</p>
<blockquote><p>An error occurred while installing the items</p>
<p>session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null &#8211;&gt; [R]org.mozilla.xpcom 1.9.1.2a, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).</p>
<p>The artifact file for osgi.bundle,org.mozilla.xpcom,1.9.1.2a was not found.</p></blockquote>
<p>Eclipse was complaining that xulrunner could not be found.  Unfortunately this is not available for the 64-bit version of Eclipse on Windows, so the simple solution is to download the 32-bit version of Helios and use that instead. When I did this, JBoss Tools installed correctly with no problems.</p>
<p><a href="http://community.jboss.org/message/551024">According</a> to Max Andersen, the JBoss Tools team are going to make installing xulrunner optional (at the expense of the visual page editor), in which case it would be possible to install on a 64-bit JVM.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Running+JBoss+Tools+in+Eclipse+3.6%2C+Helios+http://bit.ly/9EypgY" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=445&amp;submitHeadline=Running+JBoss+Tools+in+Eclipse+3.6%2C+Helios" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=445&amp;title=Running+JBoss+Tools+in+Eclipse+3.6%2C+Helios" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=445&amp;t=Running+JBoss+Tools+in+Eclipse+3.6%2C+Helios" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=445&amp;title=Running+JBoss+Tools+in+Eclipse+3.6%2C+Helios" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/kybGyEggmCc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=445</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=445</feedburner:origLink></item>
		<item>
		<title>Book Review: GlassFish Security by Masoud Kalali</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/7OE_nnnet6Y/</link>
		<comments>http://davidsalter.co.uk/blog/?p=441#comments</comments>
		<pubDate>Sat, 03 Jul 2010 17:43:20 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[GlassFish]]></category>
		<category><![CDATA[Java EE]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=441</guid>
		<description><![CDATA[I&#8217;ve just posted a review of &#8220;GlassFish Security&#8221; by Masoud Kalali over on developinjava.com If you&#8217;re interested in security and/or GlassFish, I&#8217;d recommend this book.  Check out the review here.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just posted a review of &#8220;GlassFish Security&#8221; by Masoud Kalali over on <a href="http://developinjava.com/the-news/48-book-reviews/141-book-review-glassfish-security-by-masoud-kalali.html">developinjava.com</a></p>
<p>If you&#8217;re interested in security and/or GlassFish, I&#8217;d recommend this book.  Check out the review <a href="http://developinjava.com/the-news/48-book-reviews/141-book-review-glassfish-security-by-masoud-kalali.html">here</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Book+Review%3A+GlassFish+Security+by+Masoud+Kalali+http://bit.ly/b5CTDJ" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=441&amp;submitHeadline=Book+Review%3A+GlassFish+Security+by+Masoud+Kalali" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=441&amp;title=Book+Review%3A+GlassFish+Security+by+Masoud+Kalali" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=441&amp;t=Book+Review%3A+GlassFish+Security+by+Masoud+Kalali" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=441&amp;title=Book+Review%3A+GlassFish+Security+by+Masoud+Kalali" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/7OE_nnnet6Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=441</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=441</feedburner:origLink></item>
		<item>
		<title>Developing SOA Composite Applications using POJOs</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/c0d3-ZZK2nM/</link>
		<comments>http://davidsalter.co.uk/blog/?p=435#comments</comments>
		<pubDate>Mon, 03 May 2010 12:09:25 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Composite Applications]]></category>
		<category><![CDATA[GlassFish]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[SOA]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=435</guid>
		<description><![CDATA[I&#8217;ve just had an article published on the Packt Article Network entitled Developing SOA Applications Using POJOs.  In the article I discuss how to use the POJO Service Engine in GlassFish ESB / OpenESB when creating Composite Applications in NetBeans &#8230; <a href="http://davidsalter.co.uk/blog/?p=435">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just had an article published on the Packt Article Network entitled <a href="http://www.packtpub.com/article/developing-soa-applications-using-pojos"><em><strong>Developing SOA Applications Using POJOs</strong></em></a>.  In the article I discuss how to use the POJO Service Engine in GlassFish ESB / OpenESB when creating Composite Applications in NetBeans .</p>
<blockquote><p>PoJos – Plain Old Java Objects, are, as the name describes, simple, ordinary Java objects. They do not have to be derived from a specific class, nor do they have to implement any specific interfaces. In the modern world of Java EE development where the latest frameworks have made enterprise development easier, wouldn&#8217;t it be good if we could develop SOA based applications using PoJos? Fortunately, GlassFish ESB (OpenESB) allows us to do this using the PoJo Service Engine.</p></blockquote>
<p>In the <a href="http://www.packtpub.com/article/developing-soa-applications-using-pojos">article </a>I discuss:</p>
<ul>
<li>GlassFish ESB</li>
<li>Creating a PoJo and Deploying to GlassFish ESB</li>
<li>Creating A SOAP Binding for PoJos</li>
<li>Testing the Composite Application</li>
</ul>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Developing+SOA+Composite+Applications+using+POJOs+http://davidsalter.co.uk/blog/?p=435" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=435&amp;submitHeadline=Developing+SOA+Composite+Applications+using+POJOs" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=435&amp;title=Developing+SOA+Composite+Applications+using+POJOs" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=435&amp;t=Developing+SOA+Composite+Applications+using+POJOs" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=435&amp;title=Developing+SOA+Composite+Applications+using+POJOs" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/c0d3-ZZK2nM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=435</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=435</feedburner:origLink></item>
		<item>
		<title>Book Review: Apache MyFaces Trinidad 1.2</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/6QukNmm_Xh0/</link>
		<comments>http://davidsalter.co.uk/blog/?p=432#comments</comments>
		<pubDate>Thu, 08 Apr 2010 07:59:59 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Book Review]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=432</guid>
		<description><![CDATA[I posted a review of Apache MyFaces Trinidad 1.2 over on developinjava.com a few days ago. I liked this book, in particular how it describes how you can use Trinidad with Seam applications. I summarized the book as: This book &#8230; <a href="http://davidsalter.co.uk/blog/?p=432">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I posted a <a href="http://developinjava.com/the-news/48-book-reviews/130-book-review-apache-myfaces-trinidad-12.html">review</a> of Apache MyFaces Trinidad 1.2 over on <a href="http://developinjava.com">developinjava.com</a> a few days ago.</p>
<p>I liked this book, in particular how it describes how you can use Trinidad with Seam applications.  I summarized the book as:</p>
<blockquote><p>This book is a good introduction to Apache MyFaces Trinidad 1.2. Packt Publishing describe the book as being written for “Java Developers who are beginners at JSF and experienced web developers who are looking for an introduction into the world of open source JSF technology”. I would agree with this sentiment, but would also recommend prospective readers have at least a basic knowledge of Facelets and Seam before enjoying the book.</p></blockquote>
<p>You can read the whole review <a href="http://developinjava.com/the-news/48-book-reviews/130-book-review-apache-myfaces-trinidad-12.html">here</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Book+Review%3A+Apache+MyFaces+Trinidad+1.2+http://bit.ly/9pAYW8" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=432&amp;submitHeadline=Book+Review%3A+Apache+MyFaces+Trinidad+1.2" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=432&amp;title=Book+Review%3A+Apache+MyFaces+Trinidad+1.2" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=432&amp;t=Book+Review%3A+Apache+MyFaces+Trinidad+1.2" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=432&amp;title=Book+Review%3A+Apache+MyFaces+Trinidad+1.2" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/6QukNmm_Xh0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=432</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=432</feedburner:origLink></item>
		<item>
		<title>EJB 3.1 Support in JBoss 6.0M2 – Building JBoss</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/aBYm2swXyu0/</link>
		<comments>http://davidsalter.co.uk/blog/?p=419#comments</comments>
		<pubDate>Wed, 27 Jan 2010 07:50:25 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[EJB3.1]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=419</guid>
		<description><![CDATA[JBoss recently announced that initial support for EJB 3.1 will be available in the upcoming JBoss 6.0 M2 application server. At present, the EJB 3.1 functionality supported is: developing EJBs without declaring interfaces; and deploying EJBs in WAR files Since &#8230; <a href="http://davidsalter.co.uk/blog/?p=419">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://jboss.org">JBoss</a> recently <a href="http://community.jboss.org/wiki/EJB31inAS600M2">announced</a> that initial support for <a href="http://jcp.org/en/jsr/detail?id=318">EJB 3.1</a> will be available in the upcoming JBoss 6.0 M2 application server.</p>
<p>At present, the EJB 3.1 functionality supported is:</p>
<ul>
<li>developing EJBs without declaring interfaces; and</li>
<li>deploying EJBs in WAR files</li>
</ul>
<p>Since JBoss AS 6.0 M2 isn&#8217;t currently available, the best way to get it to try out this new finctionality is to check the source out from the JBoss Subversion repository and build the application server.</p>
<p>Building JBoss AS 6.0 from the trunk is very straightforward to build.  To checkout and build the code, you need to have Subversion and Maven installed on your development system.</p>
<p>The code can be checked out from the anonymous JBoss Subversion repository:</p>
<blockquote><p><code>svn co http://anonsvn.jboss.org/repos/jbossas/trunk</code></p></blockquote>
<p>After checking out (which may take up to an hour or more), the source can be built using the build/build.bat (build/build.sh) command or by using Maven.</p>
<blockquote><p><code>&gt; cd trunk\build<br />
&gt; mvn clean install</code></p></blockquote>
<p>After about 10 minutes or so, you should have a snapshot build of the upcoming JBoss 6.0.  The distrbution is placed in the <code>build\target\jboss-6.0.0-SNAPSHOT</code> directory.</p>
<blockquote><p><code>&gt; cd target\jboss-6.0.0-SNAPSHOT\bin<br />
&gt; run.bat<br />
Calling E:\Develop\jboss6\trunk\build\target\jboss-6.0.0-SNAPSHOT\bin\run.conf.bat<br />
===============================================================================</p>
<p>  JBoss Bootstrap Environment</p>
<p>  JBOSS_HOME: E:\Develop\jboss6\trunk\build\target\jboss-6.0.0-SNAPSHOT</p>
<p>  JAVA: C:\Program Files\Java\jdk1.6.0_18\bin\java</p>
<p>  JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server</p>
<p>  CLASSPATH: C:\Program Files\Java\jdk1.6.0_18\lib\tools.jar;E:\Develop\jboss6\trunk\build\target\jboss-6.0.0-SNAPSHOT\bin\run.jar</p>
<p>===============================================================================</p>
<p>19:46:47,792 INFO  [AbstractJBossASServerBase] Server Configuration:</p>
<p>        JBOSS_HOME URL: file:/E:/Develop/jboss6/trunk/build/target/jboss-6.0.0-SNAPSHOT/<br />
        Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml<br />
        Common Base: $JBOSS_HOME\common/<br />
        Common Library: $JBOSS_HOME\common/lib/<br />
        Server Name: default<br />
        Server Base: $JBOSS_HOME\server/<br />
        Server Library: $JBOSS_HOME\server/default/lib/<br />
        Server Config: $JBOSS_HOME\server/default/conf/<br />
        Server Home: $JBOSS_HOME\server/default/<br />
        Server Data: $JBOSS_HOME\server/default/data<br />
        Server Log: $JBOSS_HOME\server/default/log/<br />
        Server Temp: $JBOSS_HOME\server/default/tmp</p>
<p>19:46:47,855 INFO  [AbstractServer] Starting: JBossAS [6.0.0.SNAPSHOT (build: SVNTag=JBoss_6.0.0-SNAPSHOT date=r99956)]</code></p></blockquote>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=EJB+3.1+Support+in+JBoss+6.0M2+%26%238211%3B+Building+JBoss+http://bit.ly/bZFCUH" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=419&amp;submitHeadline=EJB+3.1+Support+in+JBoss+6.0M2+%26%238211%3B+Building+JBoss" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=419&amp;title=EJB+3.1+Support+in+JBoss+6.0M2+%26%238211%3B+Building+JBoss" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=419&amp;t=EJB+3.1+Support+in+JBoss+6.0M2+%26%238211%3B+Building+JBoss" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=419&amp;title=EJB+3.1+Support+in+JBoss+6.0M2+%26%238211%3B+Building+JBoss" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/aBYm2swXyu0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=419</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=419</feedburner:origLink></item>
		<item>
		<title>Book Review of “JBoss RichFaces 3.3″</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/4Zgtx5E89JM/</link>
		<comments>http://davidsalter.co.uk/blog/?p=415#comments</comments>
		<pubDate>Fri, 22 Jan 2010 07:04:52 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[RichFaces]]></category>
		<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=415</guid>
		<description><![CDATA[Yesterday I posted a review of JBoss RichFaces 3.3 by Demetrio Filocamo. Head on over to developinjava.com to read the full review. In summary, I liked the book and would recommend it for developers using RichFaces.]]></description>
			<content:encoded><![CDATA[<p>Yesterday I <a href="http://developinjava.com/the-news/48-book-reviews/125-book-review-jboss-richfaces-33.html">posted</a> a review of <a href="http://www.amazon.com/gp/product/1847196888?ie=UTF8&#038;tag=davsalsblo-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1847196888">JBoss RichFaces 3.3</a> by Demetrio Filocamo. Head on over to <a href="http://www.developinjava.com">developinjava.com</a> to read the full review.</p>
<p>In summary, I liked the book and would recommend it for developers using RichFaces.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Book+Review+of+%26%238220%3BJBoss+RichFaces+3.3%26%238243%3B+http://bit.ly/aNa4Hm" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=415&amp;submitHeadline=Book+Review+of+%26%238220%3BJBoss+RichFaces+3.3%26%238243%3B" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=415&amp;title=Book+Review+of+%26%238220%3BJBoss+RichFaces+3.3%26%238243%3B" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=415&amp;t=Book+Review+of+%26%238220%3BJBoss+RichFaces+3.3%26%238243%3B" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=415&amp;title=Book+Review+of+%26%238220%3BJBoss+RichFaces+3.3%26%238243%3B" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/4Zgtx5E89JM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=415</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=415</feedburner:origLink></item>
		<item>
		<title>DZone CDI / Weld Reference Card</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/CV0IaAFC43s/</link>
		<comments>http://davidsalter.co.uk/blog/?p=411#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:38:08 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[CDI]]></category>
		<category><![CDATA[Weld]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=411</guid>
		<description><![CDATA[It&#8217;s good to see that DZone has released another new Refcard, this time on Contexts and Dependency Injection (CDI) and Weld &#8211; the CDI reference implementation. If you&#8217;re looking at CDI or Java EE 6, then its worth downloading this &#8230; <a href="http://davidsalter.co.uk/blog/?p=411">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s good to see that DZone has released another new <a href="http://refcardz.dzone.com/">Refcard</a>, this time on <a href="http://refcardz.dzone.com/refcardz/contexts-and-depencency">Contexts and Dependency Injection (CDI)</a> and Weld &#8211; the CDI reference implementation.</p>
<p>If you&#8217;re looking at CDI or Java EE 6, then its worth downloading this <a href="http://refcardz.dzone.com/refcardz/contexts-and-depencency">Refcard</a>.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=DZone+CDI+%2F+Weld+Reference+Card+http://bit.ly/czsxFR" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=411&amp;submitHeadline=DZone+CDI+%2F+Weld+Reference+Card" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=411&amp;title=DZone+CDI+%2F+Weld+Reference+Card" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=411&amp;t=DZone+CDI+%2F+Weld+Reference+Card" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=411&amp;title=DZone+CDI+%2F+Weld+Reference+Card" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/CV0IaAFC43s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=411</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=411</feedburner:origLink></item>
		<item>
		<title>Creating a Weld Project using Maven and NetBeans</title>
		<link>http://feedproxy.google.com/~r/DavidSalter/~3/9iP7n9qMsgY/</link>
		<comments>http://davidsalter.co.uk/blog/?p=387#comments</comments>
		<pubDate>Fri, 15 Jan 2010 17:05:24 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[CDI]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[Weld]]></category>

		<guid isPermaLink="false">http://davidsalter.co.uk/blog/?p=387</guid>
		<description><![CDATA[Now that the Beta Maven archetypes for Weld (the reference implementation of JSR 299 &#8211; Java Contexts and Dependency Injection) have been published in the Maven Central Repository, its easy to create Weld projects using Maven and NetBeans. Assuming you &#8230; <a href="http://davidsalter.co.uk/blog/?p=387">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now that the Beta Maven archetypes for <a href="http://www.seamframework.org/Weld">Weld</a> (the reference implementation of <a href="http://jcp.org/en/jsr/detail?id=299">JSR 299</a> &#8211; Java Contexts and Dependency Injection) have been published in the Maven Central Repository, its easy to create Weld projects using Maven and NetBeans.</p>
<p>Assuming you have NetBeans 6.8 set up with  GlassFish v3 server and the Maven plugin, use the following steps to create a new project.</p>
<p><strong>1. Create a new Maven project.</strong></p>
<p>Select &#8220;File | New Project&#8221; and then choose Maven as the category and &#8220;Maven Project&#8221; as the project type.</p>
<p><a href="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld1.png"><img src="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld1-300x165.png" alt="" title="Create Project" width="300" height="165" class="aligncenter size-medium wp-image-388" /></a></p>
<p><strong>2. Add the Weld Maven Archetypes</strong></p>
<p>On the Maven Archetype screen, press the &#8220;Add&#8230;&#8221; button.  This will cause the &#8220;Specify archetype details&#8221; screen to be displayed. On this screen we can add details of the different Maven archetypes that are currently available for Weld.</p>
<p><a href="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld2.png"><img src="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld2-300x215.png" alt="" title="Specify archetype" width="300" height="215" class="aligncenter size-medium wp-image-390" /></a><br />
There are currently 3 Maven archetypes defined in the <a href="http://anonsvn.jboss.org/repos/weld/archetypes/tags/1.0.0-BETA1/archetype-catalog.xml">catalog</a>.  </p>
<table border="0">
<tr>
<td><strong>Artifact Id</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>weld-jsf-servlet-minimal</td>
<td>Weld archetype for creating an application using JSF 2.0 and CDI 1.0 for Servlet Containers (Tomcat 6 / Jetty 6)</td>
</tr>
<tr>
<td>weld-jsf-jee-minimal</td>
<td>Weld archetype for creating a minimal Java EE 6 application using JSF 2.0, CDI 1.0 and EJB 3.1 (persistence unit not included)</td>
</tr>
<tr>
<td>weld-jsf-jee</td>
<td>Weld archetype for creating a Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1 and JPA 2.0 (persistence unit included)</td>
</tr>
</table>
<p>For this example, I&#8217;m using <code>weld-jsf-servlet-minimal</code>. Enter the details of the archetype from the catalog into the dialog and press &#8220;OK&#8221;.</p>
<p>On the following screen, select the archetype you&#8217;ve just added and press the &#8220;Next&#8221; button.</p>
<p><a href="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld3.png"><img src="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld3-300x214.png" alt="" title="Select Archetype" width="300" height="214" class="aligncenter size-medium wp-image-398" /></a></p>
<p><strong>3. Select Project Details</strong><br />
On the final page of the create project wizard, enter the project name, location and base package name for the project and press the &#8220;Finish&#8221; button.</p>
<p><a href="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld4.png"><img src="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld4-300x207.png" alt="" title="Project Name and Location" width="300" height="207" class="aligncenter size-medium wp-image-400" /></a></p>
<p><strong>4. Run the project</strong><br />
Now that we&#8217;ve created a sample project, it can easily be executed by right clicking on the project node and selecting the &#8220;Run&#8221; option. This will open a dialog asking for the default deployment server &#8211; select a GlassFish v3 server and press &#8220;OK&#8221;.</p>
<p><a href="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld5.png"><img src="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld5-300x161.png" alt="" title="Select Deployment Server" width="300" height="161" class="aligncenter size-medium wp-image-402" /></a></p>
<p>If all is successful, the project should now build and be opened in the default browser.<br />
<a href="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld6.png"><img src="http://davidsalter.co.uk/blog/wp-content/uploads/2010/01/weld6-300x215.png" alt="" title="Hello World !!" width="300" height="215" class="aligncenter size-medium wp-image-403" /></a></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Creating+a+Weld+Project+using+Maven+and+NetBeans+http://bit.ly/5JqQjI" title="Post to Twitter"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big1.png" alt="Post to Twitter" /></a> <a class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://davidsalter.co.uk/blog/?p=387&amp;submitHeadline=Creating+a+Weld+Project+using+Maven+and+NetBeans" title="Post to Yahoo Buzz"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big1.png" alt="Post to Yahoo Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://davidsalter.co.uk/blog/?p=387&amp;title=Creating+a+Weld+Project+using+Maven+and+NetBeans" title="Post to Delicious"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big1.png" alt="Post to Delicious" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://davidsalter.co.uk/blog/?p=387&amp;t=Creating+a+Weld+Project+using+Maven+and+NetBeans" title="Post to Facebook"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big1.png" alt="Post to Facebook" /></a> <a class="tt" href="http://reddit.com/submit?url=http://davidsalter.co.uk/blog/?p=387&amp;title=Creating+a+Weld+Project+using+Maven+and+NetBeans" title="Post to Reddit"><img class="nothumb" src="http://davidsalter.co.uk/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big1.png" alt="Post to Reddit" /></a></p><img src="http://feeds.feedburner.com/~r/DavidSalter/~4/9iP7n9qMsgY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://davidsalter.co.uk/blog/?feed=rss2&amp;p=387</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://davidsalter.co.uk/blog/?p=387</feedburner:origLink></item>
	</channel>
</rss>
