<?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>Luca Simone &#187; Develop</title>
	<atom:link href="http://blog.lucasimone.info/category/develop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lucasimone.info</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 30 Jul 2009 12:26:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JRuby on Rails on JBoss con MS SQLServer</title>
		<link>http://blog.lucasimone.info/2009/04/28/jruby-on-rails-on-jboss-con-ms-sqlserver/</link>
		<comments>http://blog.lucasimone.info/2009/04/28/jruby-on-rails-on-jboss-con-ms-sqlserver/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 17:00:23 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Develop]]></category>

		<guid isPermaLink="false">http://blog.lucasimone.info/?p=94</guid>
		<description><![CDATA[
Piccola guida introduttiva su come fare un deploy di un’applicazione Rails in JBoss, nello specifico io utilizzo la versione 4.2.2, con database Microsoft SQL Server.
Perché utilizzare JRuby con un’application server Java quando si ha passenger? Bhe, questo è tutto un’altro discorso, sinceramente la trovo un’ottima soluzione per poter utilizzare Rails in un’infrastruttura esistente nel cosiddetto [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 10px; border-right-width: 0px" title="jrubyonrailsonjboss" src="http://blog.lucasimone.info/wp-content/uploads/2008/12/jrubyonrailsonjboss11.png" border="0" alt="jrubyonrailsonjboss" width="150" height="130" align="left" /></p>
<p>Piccola guida introduttiva su come fare un deploy di un’applicazione Rails in JBoss, nello specifico io utilizzo la versione 4.2.2, con database Microsoft SQL Server.</p>
<p>Perché utilizzare JRuby con un’application server Java quando si ha passenger? Bhe, questo è tutto un’altro discorso, sinceramente la trovo un’ottima soluzione per poter utilizzare Rails in un’infrastruttura esistente nel cosiddetto reame “Enterprise”.</p>
<p>Per prima cosa bisogna installare i driver jdbc per ActiveRecord con:</p>
<ul>
<li><em>jruby –S gem install activerecord-jdbc-adapter</em></li>
</ul>
<p>Ora modificare il file di configurazione del database, <em>config/database.yml</em> per utilizzare SqlServer tramite jdbc.</p>
<blockquote><p>development:<br />
host: sqlserverip<br />
adapter: jdbc<br />
username: user<br />
password: pass<br />
driver: com.microsoft.sqlserver.jdbc.SQLServerDriver<br />
url: jdbc:sqlserver://sqlserverip;databaseName=Database<br />
timeout: 5000</p></blockquote>
<p>Il passo seguente è installare warbler, tramite questa gemma è possibile impacchettare l’applicazione in un war (Web Archive), in modo da poterlo deployare in qualsiasi java application server.</p>
<ul>
<li><em>jruby –S gem install warbler</em></li>
</ul>
<p>Ora nella cartella principale del progetto rails digitare:</p>
<ul>
<li><em>jruby –S warble war</em></li>
</ul>
<p>Ora se controlliamo nella cartella del progetto possiamo notare che Warbler ha creato per noi completamente automaticamente il file war, il processo è quasi completo.</p>
<p>Se come me, si utilizza Rails Edge, quindi la versione 2.3.2, bisogna aggiornare alcuni file che sono stati inseriti nel war, che non è altro che uno zip con estensione .war.</p>
<p>Nella cartella WEB-INF/lib sono contenuti tutti i jar che servono a far funzionare Ruby. Dovete aggiungere i driver JDBC per SQL Server, ovvero <strong>sqljdbc.jar</strong> che trovate sul sito Microsoft e sostituire jruby-complete con la versione 1.2 che <a href="http://repository.codehaus.org/org/jruby/jruby-complete/1.2.0/jruby-complete-1.2.0.jar">trovare qui</a> e jruby-rack con la versione 0.9.4 che <a href="http://kenai.com/projects/jruby-rack/downloads/download//jruby-rack-0.9.4.jar">trovate qui</a>.</p>
<p>Fine!</p>
<p>copiate il file .war nella cartella deploy, nel caso di jboss /jboss-4.2.2.GA/server/default/deploy ed il gioco è fatto!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucasimone.info/2009/04/28/jruby-on-rails-on-jboss-con-ms-sqlserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JBoss, questo sconosciuto&#8230;</title>
		<link>http://blog.lucasimone.info/2008/12/01/jbossquesto-sconosciuto/</link>
		<comments>http://blog.lucasimone.info/2008/12/01/jbossquesto-sconosciuto/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 15:42:55 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Develop]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[seam]]></category>
		<category><![CDATA[web framework]]></category>

		<guid isPermaLink="false">http://blog.lucasimone.info/?p=81</guid>
		<description><![CDATA[ Per lavoro sono obbligato ad utilizzare JBoss come application server, che non è altro che un tomcat con un sacco di altri strusi intorno.
Lo chiamano Open source Professionale, quando un buon container come Tomcat viene rimpinzato di tantissime funzioni, a volte utili, a volte meno. La lista dei progetti JBoss è davvero corposa, in [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-right-width: 0px; margin: 0px 0px 10px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="jboss-seam-logo" border="0" alt="jboss-seam-logo" align="left" src="http://blog.lucasimone.info/wp-content/uploads/2008/12/jbossseamlogo1.png" width="196" height="160" /> Per lavoro sono obbligato ad utilizzare JBoss come application server, che non è altro che un tomcat con un sacco di altri strusi intorno.</p>
<p>Lo chiamano Open source Professionale, quando un buon container come Tomcat viene rimpinzato di tantissime funzioni, a volte utili, a volte meno. La lista dei progetti JBoss è davvero corposa, in quest&#8217;ultima troviamo JBoss ESB, jBPM, JBoss Rules (ex Drools), JBoss Cache, JGroups, JBoss Portal, SEAM, JBoss Transaction, ecc…</p>
<p>Io nello specifico sono costretto ad utilizzare Seam, un web application framework sviluppato da JBoss stessa dopo che si è accaparrata tutto il progetto Hibernate e Gavin King compreso.</p>
<p>Come al solito, cerco nel web siti, tutorial, esempi e cosa dicono in giro di Seam:</p>
<p>Obie Fernandez, guru di Rails scrive su quello che lo stesso Gavin King afferma del suo progetto:</p>
<blockquote><p><em>One of the (several) goals of Seam is to bring Ruby On Rails style productivity to the Java EE platform. </em><a title="http://www.jroller.com/obie/entry/seam_aims_for_ruby_on" href="http://www.jroller.com/obie/entry/seam_aims_for_ruby_on">http://www.jroller.com/obie/entry/seam_aims_for_ruby_on</a></p>
</blockquote>
<p>Dalla mailing list di Rails:</p>
<blockquote><p>There were a couple of things I liked about Seam, especially how well     <br />EJB3 seems to work now. On the other hand, the complexity factor with      <br />Seam is extremely high compared to Rails.      <br />Gavin and I paired up to write a small subset of a story-card management tool that I have written in Rails. It took us at least 2 hours of trial-and-error to get everything running and figure out how to send a plain list of divs to the browser. so they have no idea the pain they are inflicting on the people out there (or in some cases they really don&#8217;t care about the pain, because it is the status quo).</p>
<p><a title="http://lists.rubyonrails.org/pipermail/rails/2006-June/050321.html" href="http://lists.rubyonrails.org/pipermail/rails/2006-June/050321.html">http://lists.rubyonrails.org/pipermail/rails/2006-June/050321.html</a></p>
</blockquote>
<p>Non si trova in giro altro, o meglio, non trovo un vero e concreto confronto fra vari web framework come Symphony, Zend Framework, Django o altro come neppure qualcuno che lo usa per progetti attivi sul web.</p>
<p>Sono così scettico perché dopo ben 1 anno di sviluppo in JBoss Seam mi trovo con un’applicazione che, se scritta in Rails per esempio, avrebbe occupato solamente 1 mese di sviluppo con risultati nettamente migliori dal lato Views soprattutto.</p>
<p>Inoltre esiste un&#8217;applicazione sviluppata con una versione precendete di Seam, la 1.2, sviluppata su JBoss AS 4.0.5. Mentre l&#8217;ultima applicazione è in Seam 2.0 sviluppata su JBoss 4.2.2. Magari arriverà un’altro prodotto che usa solamente JSF e necessita JBoss 4.0.2.</p>
<p>Insomma…ogni applicazione, un suo application Server, 1 server di produzione, intesa come macchina fisica…3 application Server installati. Di questo passo dovremmo installare 12GB di RAM?</p>
<p>UPDATE:</p>
<p>Cercando nel forum ufficiale di Seam, trovo sempre più consensi…</p>
<blockquote><p>Roger, No we did not have any luck. We couldn&#8217;t get regular expressions working from the message.properties file. We kept the regular expression code in the the model java files. I&quot;m sure this community doesn&#8217;t want to hear this: We put the Seam project on hold and redid our application in Ruby on Rails. We got tired of rebooting the server, random crashes during startup, error dumps with little useful information and the prospect of nobody qualified to take over. It was just too painful. If we&#8217;re successful we may go back and finish the Seam version.</p>
<p><a title="http://www.seamframework.org/Community/CanIPutARegularExpressionWorkFromAMessagespropertyFile" href="http://www.seamframework.org/Community/CanIPutARegularExpressionWorkFromAMessagespropertyFile">http://www.seamframework.org/Community/CanIPutARegularExpressionWorkFromAMessagespropertyFile</a></p>
</blockquote>
<p>A questo punto…se qualcuno ha esperienze/prove/altro su Seam…contattatemi!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lucasimone.info/2008/12/01/jbossquesto-sconosciuto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
