<?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>Pass By Value &#187; jdbc</title>
	<atom:link href="http://passbyvalue.com/tag/jdbc/feed/" rel="self" type="application/rss+xml" />
	<link>http://passbyvalue.com</link>
	<description>... or is it pass by reference?</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:09:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Making your Rails app work on Java</title>
		<link>http://passbyvalue.com/2009/09/making-your-rails-app-work-on-java/</link>
		<comments>http://passbyvalue.com/2009/09/making-your-rails-app-work-on-java/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 12:07:12 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://passbyvalue.com/?p=99</guid>
		<description><![CDATA[So you&#8217;ve written a Rails app and you want to show it off to your boss at work because you know that it will impress them. Problem is that your company only uses Java and won&#8217;t consider it for their production environment if it can&#8217;t be deployed under a JVM. Let&#8217;s go: Install JRuby http://jruby.org [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve written a Rails app and you want to show it off to your boss at work because you know that it will impress them.  Problem is that your company only uses Java and won&#8217;t consider it for their production environment if it can&#8217;t be deployed under a JVM.  Let&#8217;s go:</p>
<ol>
<li>Install JRuby <a href="http://jruby.org">http://jruby.org</a></li>
<li>Install the required gems for Ruby on Rails to work with JRuby</li>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jgem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel activerecord-jdbcsqlite3-adapter rails</div></div>
<li>Install the gems particular to your application</li>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jruby <span style="color: #660033;">-S</span> rake gems:install</div></div>
<li>Update your <code class="codecolorer text railscasts"><span class="text">database.xml</span></code> file, prefixing your adapter with <strong>jdbc</strong></li>
<div class="codecolorer-container ruby railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">development:<br />
&nbsp; adapter: jdbcsqlite3<br />
&nbsp; database: db<span style="color:#006600; font-weight:bold;">/</span>development.<span style="color:#9900CC;">sqlite3</span><br />
&nbsp; pool: <span style="color:#006666;">5</span><br />
&nbsp; timeout: <span style="color:#006666;">5000</span></div></div>
<li>Start your JVM</li>
<div class="codecolorer-container bash railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">jruby script<span style="color: #000000; font-weight: bold;">/</span>server</div></div>
<li>Demonstrate</li>
<li>Sit back and wait for promotion</li>
</ol>
<p>Some notes on whats going on above:</p>
<ul>
<li>Detailed installation instructions for JRuby can be found on their wiki: <a href="http://kenai.com/projects/jruby/pages/GettingStarted">http://kenai.com/projects/jruby/pages/GettingStarted</a></li>
<li>The <code class="codecolorer bash railscasts"><span class="bash">jruby <span style="color: #660033;">-S</span> rake</span></code> command is very important as the <code class="codecolorer bash railscasts"><span class="bash"><span style="color: #660033;">-S</span></span></code> switch ensures that the <code class="codecolorer bash railscasts"><span class="bash">rake</span></code> command is sourced from the JRuby home, not the system path which would contain a native Ruby install</li>
<li>ActiveRecord-JDBC can handle most any database you can think of in a corporate environment.  Check it out here: <a href="http://kenai.com/projects/activerecord-jdbc/">http://kenai.com/projects/activerecord-jdbc/</a></li>
<li>If you wish to use another database, there are some gems already pre-packaged, more details on the github page: <a href="http://github.com/nicksieger/activerecord-jdbc-adapter">http://github.com/nicksieger/activerecord-jdbc-adapter</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/09/making-your-rails-app-work-on-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Oracle XE to work with SpringFramework JDBC Template</title>
		<link>http://passbyvalue.com/2009/07/getting-oracle-xe-to-work-with-springframework-jdbc-template/</link>
		<comments>http://passbyvalue.com/2009/07/getting-oracle-xe-to-work-with-springframework-jdbc-template/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 00:03:48 +0000</pubDate>
		<dc:creator>Trent</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[springframework]]></category>

		<guid isPermaLink="false">http://blog.passbyvalue.com/?p=23</guid>
		<description><![CDATA[Ever get this error when using Oracle XE with SpringFramework JDBC Template? SORA-12519, TNS:no appropriate service handler found You can get around it by executing the following commands: ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE; ALTER SYSTEM SET SESSIONS=100 SCOPE=SPFILE; Then stop and start database (Oracle XE service) and you&#8217;re good to go! Remember: needs to be [...]]]></description>
			<content:encoded><![CDATA[<p>Ever get this error when using Oracle XE with SpringFramework JDBC Template?</p>
<pre>SORA-12519, TNS:no appropriate service handler found</pre>
<p>You can get around it by executing the following commands:</p>
<div class="codecolorer-container sql railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">ALTER</span> SYSTEM <span style="color: #993333; font-weight: bold;">SET</span> PROCESSES<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">150</span> SCOPE<span style="color: #66cc66;">=</span>SPFILE;<br />
<span style="color: #993333; font-weight: bold;">ALTER</span> SYSTEM <span style="color: #993333; font-weight: bold;">SET</span> SESSIONS<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">100</span> SCOPE<span style="color: #66cc66;">=</span>SPFILE;</div></div>
<p>Then stop and start database (Oracle XE service) and you&#8217;re good to go!</p>
<p>Remember:</p>
<ul>
<li>needs to be capitals,</li>
<li>needs to have both entries</li>
<li>stop and start the database (oracle XE service)</li>
</ul>
<p>Got this from the following two resources:</p>
<p><a href="http://en.newinstance.it/2007/06/01/ora-12519-tnsno-appropriate-service-handler-found/">http://en.newinstance.it/2007/06/01/ora-12519-tnsno-appropriate-service-handler-found/</a><br />
<a href="http://forum.springsource.org/showthread.php?p=133267"> http://forum.springsource.org/showthread.php?p=133267</a></p>
]]></content:encoded>
			<wfw:commentRss>http://passbyvalue.com/2009/07/getting-oracle-xe-to-work-with-springframework-jdbc-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

