<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>REVERT TO CONSOLE &#187; Seam</title>
	<atom:link href="http://www.reverttoconsole.com/blog/category/seam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.reverttoconsole.com</link>
	<description>for f in *;do echo &#124; sed 'i\rtc' &#62;&#62; $f;done;</description>
	<lastBuildDate>Sat, 10 Jul 2010 12:40:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JBoss Seam 2.1 Presentation at Java Meetup</title>
		<link>http://www.reverttoconsole.com/blog/java/jboss-seam-21-presentation-at-java-meetup/</link>
		<comments>http://www.reverttoconsole.com/blog/java/jboss-seam-21-presentation-at-java-meetup/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:18:04 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://www.reverttoconsole.com/?p=352</guid>
		<description><![CDATA[Here&#8217;s my presentation on JBoss Seam 2.1 from the Boston Java meetup group Introduction To JBoss Seam 2.1 View more presentations from Priyatam M.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my presentation on JBoss Seam 2.1 from the Boston Java meetup group</p>
<div style="width:425px;text-align:left" id="__ss_1376155"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/reverttoconsole/introduction-to-jboss-seam-21-1376155?type=powerpoint" title="Introduction To JBoss Seam 2.1">Introduction To JBoss Seam 2.1</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=introductiontojbossseam-priyatam-090502092423-phpapp01&#038;stripped_title=introduction-to-jboss-seam-21-1376155" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=introductiontojbossseam-priyatam-090502092423-phpapp01&#038;stripped_title=introduction-to-jboss-seam-21-1376155" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/reverttoconsole">Priyatam M</a>.</div>
</div>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fjava%2Fjboss-seam-21-presentation-at-java-meetup%2F&amp;title=JBoss+Seam+2.1+Presentation+at+Java+Meetup" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/java/jboss-seam-21-presentation-at-java-meetup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JBoss Seam presentation at the Boston Java meetup group</title>
		<link>http://www.reverttoconsole.com/blog/seam/jboss-seam-presentation-at-the-boston-java-meetup-group/</link>
		<comments>http://www.reverttoconsole.com/blog/seam/jboss-seam-presentation-at-the-boston-java-meetup-group/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 01:35:34 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/?p=369</guid>
		<description><![CDATA[If you&#8217;re around the Boston Metro area, drop in for my presentation on JBoss Seam at the Boston Java Meetup group @MIT EHS office, Cambridge. Click here for more details.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re around the Boston Metro area, drop in for my presentation on <a href="http://www.seamframework.org">JBoss Seam</a> at the Boston Java Meetup group @MIT EHS office, Cambridge.</p>
<p>Click <a href="http://java.meetup.com/10/calendar/9968789/">here</a> for more details.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fjboss-seam-presentation-at-the-boston-java-meetup-group%2F&amp;title=JBoss+Seam+presentation+at+the+Boston+Java+meetup+group" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/seam/jboss-seam-presentation-at-the-boston-java-meetup-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating Excel reports without a single line of java code using Seam</title>
		<link>http://www.reverttoconsole.com/blog/seam/generating-excel-reports-without-a-single-line-of-java-code-using-seam/</link>
		<comments>http://www.reverttoconsole.com/blog/seam/generating-excel-reports-without-a-single-line-of-java-code-using-seam/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 18:10:36 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/?p=227</guid>
		<description><![CDATA[I still cannot reiterate enough, how much Seam is productive in developing rich web mvc apps. Take for example, a very common requirement where a rich datatable is present and users would want a &#8220;export to excel&#8221; functionality right next to each of these tables. With Seam, this is as simple as one line of [...]]]></description>
			<content:encoded><![CDATA[<p>I still cannot reiterate enough, how much Seam is productive in developing rich web mvc apps. Take for example, a very common requirement where a rich datatable is present and users would want a &#8220;export to excel&#8221; functionality right next to each of these tables. With Seam, this is as simple as one line of facelets tag</p>
<pre class="brush: xml">
&lt;h:commandLink
	action=&quot;#{org.jboss.seam.excel.excelExporter.export(&#039;form:dataTable&#039;)}&quot;&gt;
	&lt;h:graphicImage value=&quot;/img/excel.gif&quot; /&gt;
 &lt;/h:commandLink&gt;
</pre>
<p>where form is the form id and &#8216;datatable&#8217; is the id of the datatable in that form. Thats as simple as it can get! If you want a customized excel, then writing the excel layout, formatting by hand does not use java code at all! Everything can be coded on plain facelet tags. To demonstrate how easy it is, to create excel spreadsheets on the fly, look at this example</p>
<pre class="brush: xml">
 &lt;e:workbook type=&quot;jxl&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:ui=&quot;http://java.sun.com/jsf/facelets&quot; xmlns:e=&quot;http://jboss.com/products/seam/excel&quot;
    xmlns:f=&quot;http://java.sun.com/jsf/core&quot;
    autoFilterDisabled=&quot;false&quot;&gt;

    &lt;e:cellTemplate name=&quot;cellStyles&quot;&gt;
        &lt;e:background color=&quot;gray_25&quot; pattern=&quot;solid&quot;/&gt;
        &lt;e:font fontName=&quot;Lucida Grande&quot; bold=&quot;true&quot;/&gt;
    &lt;/e:cellTemplate&gt;

   &lt;e:worksheet name=&quot;Search Criteria&quot; value=&quot;#{searchCriteriaList}&quot; var=&quot;criteria&quot;&gt;
    &lt;e:column autoSize=&quot;true&quot;&gt;
        &lt;f:facet name=&quot;header&quot;&gt;
            &lt;e:cell value=&quot;Time Period&quot; templates=&quot;cellStyles&quot;/&gt;
        &lt;/f:facet&gt;
        &lt;e:cell value=&quot;#{criteria.timePeriod}&quot; /&gt;
    &lt;/e:column&gt;
    &lt;e:column autoSize=&quot;true&quot;&gt;
        &lt;f:facet name=&quot;header&quot;&gt;
            &lt;e:cell value=&quot;Foo name&quot; templates=&quot;cellStyles&quot;/&gt;
        &lt;/f:facet&gt;
        &lt;e:cell value=&quot;#{criteria.foo.name}&quot; /&gt;
    &lt;/e:column&gt;
    &lt;e:column autoSize=&quot;true&quot;&gt;
        &lt;f:facet name=&quot;header&quot;&gt;
            &lt;e:cell value=&quot;Bar Name&quot; templates=&quot;cellStyles&quot;/&gt;
        &lt;/f:facet&gt;
        &lt;e:cell value=&quot;#{criteria.bar.name}&quot;/&gt;
    &lt;/e:column&gt;
&lt;/e:worksheet&gt;

&lt;e:worksheet name=&quot;Matrix&quot; value=&quot;#{searchResults}&quot; var=&quot;res&quot;  headerMargin=&quot;5&quot;
	verticalFreeze=&quot;1&quot; selected=&quot;true&quot; showGridLines=&quot;true&quot; topMargin=&quot;5&quot;&gt;
	&lt;e:column autoSize=&quot;true&quot;&gt;
		&lt;f:facet name=&quot;header&quot;&gt;
			&lt;e:cell value=&quot;FooName&quot; templates=&quot;cellStyles&quot;/&gt;
		&lt;/f:facet&gt;
		&lt;e:cell value=&quot;#{res.foo.name}&quot; /&gt;
	&lt;/e:column&gt;
	&lt;e:column autoSize=&quot;true&quot;&gt;
		&lt;f:facet name=&quot;header&quot;&gt;
			&lt;e:cell value=&quot;Bar name&quot; templates=&quot;cellStyles&quot;/&gt;
		&lt;/f:facet&gt;
		&lt;e:cell value=&quot;#{res.bar.name}&quot;/&gt;
	&lt;/e:column&gt;
&lt;/e:worksheet&gt;
&lt;/e:workbook&gt;                                                                                                                                                                                                                         	         		 			           		 		 	 	 		 			                      		 		 		     </pre>
<p>The syntax is so simple, even a layman can understand. As you&#8217;ve seen, I&#8217;ve created two worksheets, the first one displaying the search criteria and the second one displaying the results (List<searchCriteria> : foo, bar, timePeriod). For common formatting features, you can use a feature called &#8220;templates&#8221; (see &#8220;cellStyles&#8221; above). he formatting of excel goes way beyond simple example like above to things like built in formulas, auto filters etc.</p>
<p>The Seam-excel support is built in the <a href="http://docs.jboss.org/seam/2.1.0.BETA1/reference/en-US/html/excel.html">2.1 beta release</a></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fseam%2Fgenerating-excel-reports-without-a-single-line-of-java-code-using-seam%2F&amp;title=Generating+Excel+reports+without+a+single+line+of+java+code+using+Seam" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/seam/generating-excel-reports-without-a-single-line-of-java-code-using-seam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Agile development with JBoss Seam &amp; Oracle 10g XE</title>
		<link>http://www.reverttoconsole.com/blog/general/agile-development-with-jboss-seam-oracle-10g-xe/</link>
		<comments>http://www.reverttoconsole.com/blog/general/agile-development-with-jboss-seam-oracle-10g-xe/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 21:38:19 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/?p=222</guid>
		<description><![CDATA[Most of us working in corporates, use Oracle mostly. It probably has a uptime of 99%. But sometimes, it does go down and when it does, it&#8217;s frustrating for the developer, especially when you&#8217;re in the middle of something. We can&#8217;t have a local database instance running and having a hsqldb or mysql database would [...]]]></description>
			<content:encoded><![CDATA[<p>Most of us working in corporates, use Oracle mostly. It probably has a uptime of 99%. But sometimes, it does go down and when it does, it&#8217;s frustrating  for the developer, especially when you&#8217;re in the middle of something.</p>
<p>We can&#8217;t have a local database instance running and having a hsqldb or mysql database would not really give us the confidence of working in the &#8220;actual world.&#8221; So, How can you have a local Oracle database without all that fuss?</p>
<p>Here is an alternative that I tried and it worked like a charm for me.</p>
<p>1) Install <a href="http://www.oracle.com/technology/software/products/database/xe/index.html">Oracle 10G XE</a> . Its a light-weight version of 10G and its *free*. There is no   configuration whatsoever, just the password for admin username, &#8220;system&#8221;</p>
<p>2) After installation you&#8217;re basically done. I use Open <a href="http://www.oracle.com/technology/products/database/sql_developer/index.html">Oracle SQLDeveloper</a> for the client. I think its simple and does everything you need. And its *free*. Make a new connection with<br />
host &#8211; localhost, port &#8211; 1521, SID &#8211; xe</p>
<p>Surprisingly, all the above are provided by default! Now, setup a new user for your application. Grant &#8220;all&#8221; rights.</p>
<p>3) In my web application, I use a top-down approach with a rich domain model with <a href="http://www.seamframework.org">JBoss Seam Framework</a> where the schema is 100% generated by hbm2ddl. For static data, I have an import.sql in the web-inf. All I need to do is, change the hibernate.hbm2ddl.auto value back to &#8220;create&#8221; (it was &#8220;validate&#8221; before)</p>
<p>And change the datasource connection to jdbc:oracle:thin:@localhost:1521/xe in the jndi datasource in jboss server.</p>
<p>4) Change the jboss http port from 8080 to 8081 from here<br />
jboss-4.2.2\server\default\deploy\jboss-web.deployer\server.xml<br />
(as oracle server uses the same)</p>
<p>5) Start JBoss server</p>
<p>That&#8217;s it. All in all, it took around 20-25 minutes. (including the installation)</p>
<p>I now have a new oracle database installed, new tables created, new static data setup and most importantly &#8212; I <strong>did not</strong> add any configuration file(s) whatsoever and nothing in my app was changed except the ds file (which again is outside the ear file). I did not run any ruby scripts, nor groovy scripts and No &#8212; I didn&#8217;t call my DBA to setup the database or run some data scripts for me.</p>
<p>And the application deployed SUCCESSFULLY.</p>
<p>All this <em>in less than 25 minutes. </em></p>
<p>This,, I think is agile Domain Driven Development using Seam framework.</p>
<p>I&#8217;m wondering if I could&#8217;ve done this 5 years ago. Not without hiring a consultant for a project named &#8220;database migration.&#8221; and not without changing so many files.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fgeneral%2Fagile-development-with-jboss-seam-oracle-10g-xe%2F&amp;title=Agile+development+with+JBoss+Seam+%26%23038%3B+Oracle+10g+XE" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/general/agile-development-with-jboss-seam-oracle-10g-xe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Example Interceptor in Seam, EJB3</title>
		<link>http://www.reverttoconsole.com/blog/ejb3/example-interceptor-in-seam-ejb3/</link>
		<comments>http://www.reverttoconsole.com/blog/ejb3/example-interceptor-in-seam-ejb3/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 00:00:54 +0000</pubDate>
		<dc:creator>Priyatam</dc:creator>
				<category><![CDATA[EJB3]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Seam]]></category>

		<guid isPermaLink="false">http://reverttoconsole.com/?p=198</guid>
		<description><![CDATA[It&#8217;s insanely easy to write an interceptor in EJB3. Here&#8217;s a tutorial/example code for an interceptor which collects statistics info around a method invocation. import java.util.Collection; import javax.interceptor.AroundInvoke; import javax.interceptor.InvocationContext; import org.apache.commons.lang.time.StopWatch; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class StatisticsInterceptor { private static final Log log = LogFactory .getLog(StatisticsInterceptor.class); @AroundInvoke @SuppressWarnings(&#34;unchecked&#34;) public Object intercept(InvocationContext ctx) throws [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s insanely easy to write an interceptor in EJB3. Here&#8217;s a tutorial/example code for an interceptor which collects statistics info around a method invocation.</p>
<pre class="brush: java">import java.util.Collection;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
import org.apache.commons.lang.time.StopWatch;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class StatisticsInterceptor {
	private static final Log log = LogFactory
			.getLog(StatisticsInterceptor.class);

	@AroundInvoke
	@SuppressWarnings(&quot;unchecked&quot;)
	public Object intercept(InvocationContext ctx) throws Exception {
		StopWatch stopWatch = new StopWatch();
		stopWatch.start();
		Object result = ctx.proceed();
		log.debug(&quot;Statistics for &quot;
				+ ctx.getMethod().getDeclaringClass().getSimpleName() + &quot;.&quot;
				+ ctx.getMethod().getName());
		log.debug(&quot;\tTime = &quot; + stopWatch);
		if (result instanceof String) {
			log.debug(&quot;\tValue returned = &quot; + result);
		}
		if (result instanceof Collection) {
			Collection col = (Collection) result;
			log.debug(&quot;\tSize of collection returned = &quot; + col.size());
		}
		return result;
	}
}
</pre>
<p>The only place, this needs to be added is in ejb-jar.xml</p>
<pre class="brush: xml">
&lt;assembly-descriptor&gt;
      &lt;interceptor-binding&gt;
         &lt;ejb-name&gt;*&lt;/ejb-name&gt;
         &lt;interceptor-class&gt;org.jboss.seam.ejb.SeamInterceptor&lt;/interceptor-class&gt;
      &lt;/interceptor-binding&gt;
      &lt;interceptor-binding&gt;
         &lt;ejb-name&gt;*&lt;/ejb-name&gt;
         &lt;interceptor-class&gt;com.evergreen.asr.util.StatisticsInterceptor&lt;/interceptor-class&gt;
      &lt;/interceptor-binding&gt;
   &lt;/assembly-descriptor&gt;
</pre>
<p>That&#8217;s it.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.reverttoconsole.com%2Fblog%2Fejb3%2Fexample-interceptor-in-seam-ejb3%2F&amp;title=Example+Interceptor+in+Seam%2C+EJB3" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.reverttoconsole.com/blog/ejb3/example-interceptor-in-seam-ejb3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
