<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: accessing as400 databases with Ruby, Java, and the RubyJavaBridge</title>
	<atom:link href="http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/</link>
	<description>Louisville-based Web Development &#38; Software Engineering</description>
	<lastBuildDate>Tue, 10 Jan 2012 08:34:18 -0500</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Justin Hamilton</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-59182</link>
		<dc:creator>Justin Hamilton</dc:creator>
		<pubDate>Fri, 11 Apr 2008 15:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-59182</guid>
		<description>I&#039;ve been using rails with iseries at my facility for about a year now without java.  For me, the key was setting up unixodbc, rails-odbc, and the IBM iSeriesAccess drivers.

It works great.

My only issue has been with BLOB columns.  I&#039;ve not been able to insert file data into them with Rails though I&#039;ve never had this issue with foxpro or .net.  Does anyone know the proper format for the binary string for the Iseries?  I&#039;ve tried &quot;blob(&#039;value&#039;)&quot;,&quot;blob(x&#039;value&#039;)&quot;,&quot;blob(value)&quot;,&#039;value&#039;,value, {&#039;value&#039;}, {value}
value of course being the binary string.  I hope you guys may have solved this issue already.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using rails with iseries at my facility for about a year now without java.  For me, the key was setting up unixodbc, rails-odbc, and the IBM iSeriesAccess drivers.</p>
<p>It works great.</p>
<p>My only issue has been with BLOB columns.  I&#8217;ve not been able to insert file data into them with Rails though I&#8217;ve never had this issue with foxpro or .net.  Does anyone know the proper format for the binary string for the Iseries?  I&#8217;ve tried &#8220;blob(&#8216;value&#8217;)&#8221;,&#8221;blob(x&#8217;value&#8217;)&#8221;,&#8221;blob(value)&#8221;,&#8217;value&#8217;,value, {&#8216;value&#8217;}, {value}<br />
value of course being the binary string.  I hope you guys may have solved this issue already.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-16845</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 30 Mar 2007 14:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-16845</guid>
		<description>The IBM_DB Rails Plugin and Ruby gem provide Rails/Ruby interfaces for IBM Data Servers. The Ruby adapter and driver are developed and supported by IBM. The adapter and driver currently supports DB2 on Linux/Unix/Windows, DB2 for i5/OS and DB2 for zOS. 

Check it out.....

 http://rubyforge.org/frs/?group_id=2361</description>
		<content:encoded><![CDATA[<p>The IBM_DB Rails Plugin and Ruby gem provide Rails/Ruby interfaces for IBM Data Servers. The Ruby adapter and driver are developed and supported by IBM. The adapter and driver currently supports DB2 on Linux/Unix/Windows, DB2 for i5/OS and DB2 for zOS. </p>
<p>Check it out&#8230;..</p>
<p> <a href="http://rubyforge.org/frs/?group_id=2361" rel="nofollow">http://rubyforge.org/frs/?group_id=2361</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chinesco</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-10339</link>
		<dc:creator>Chinesco</dc:creator>
		<pubDate>Thu, 25 Jan 2007 22:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-10339</guid>
		<description>Hello,

I just found this thread, and even with the latest versions of RJB and Ruby the prepareStatement still hangs.

Does anyone found a solution for this?

Thank you</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I just found this thread, and even with the latest versions of RJB and Ruby the prepareStatement still hangs.</p>
<p>Does anyone found a solution for this?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kendall</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-160</link>
		<dc:creator>Kendall</dc:creator>
		<pubDate>Fri, 09 Jun 2006 15:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-160</guid>
		<description>Well, I finally got to try this on the machine in Germany and the results were the same.  Except, of course, the error message was in German. ;)  So, I guess what we&#039;re left with is an XP or Windows issue.  Quite odd.</description>
		<content:encoded><![CDATA[<p>Well, I finally got to try this on the machine in Germany and the results were the same.  Except, of course, the error message was in German. ;)  So, I guess what we&#8217;re left with is an XP or Windows issue.  Quite odd.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kendall</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-119</link>
		<dc:creator>Kendall</dc:creator>
		<pubDate>Fri, 12 May 2006 17:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-119</guid>
		<description>Curiouser, indeed!  Still hangs when run from the command line...  I did apply for an account on the machine in Germany.  Maybe if I connect to it...

The WinXP setup of rjb was problematic, especially for a ruby-newbie like myself.  The &quot;ruby setup.rb config&quot; failed while trying to locate the jni.h file, which I know is on my machine right where it should be.  Another helpful soul had posted similar problems.  I contacted him and he let me download the rjb.so file for ruby 1.8.4 from his site.  I was then able to run the &quot;ruby setup.rb install&quot; which (I think) put everything in the right place.  As I say, rjb works with everything I&#039;ve tried so far, except talking to the 400.  Darn.</description>
		<content:encoded><![CDATA[<p>Curiouser, indeed!  Still hangs when run from the command line&#8230;  I did apply for an account on the machine in Germany.  Maybe if I connect to it&#8230;</p>
<p>The WinXP setup of rjb was problematic, especially for a ruby-newbie like myself.  The &#8220;ruby setup.rb config&#8221; failed while trying to locate the jni.h file, which I know is on my machine right where it should be.  Another helpful soul had posted similar problems.  I contacted him and he let me download the rjb.so file for ruby 1.8.4 from his site.  I was then able to run the &#8220;ruby setup.rb install&#8221; which (I think) put everything in the right place.  As I say, rjb works with everything I&#8217;ve tried so far, except talking to the 400.  Darn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mission_data</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-118</link>
		<dc:creator>mission_data</dc:creator>
		<pubDate>Fri, 12 May 2006 16:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-118</guid>
		<description>Curiouser and curiouser. Let me know if it runs outside of RDT.

How&#039;d you build your RJB for Windows, btw? I haven&#039;t tried yet. I have googled instructions for crosscompilation of Ruby extensions using MinGW and have an old Visual C++ install I could use, but haven&#039;t gotten off my duff to actually do it yet.

FWIW, you could probably get the pure java implementaiton going in Eclipse if you changed your Run command to include &quot;-Djdbc.drivers=com.ibm.as400.access.AS400JDBCDriver&quot; as a VM parameter. Same diff as registerDrive tho.</description>
		<content:encoded><![CDATA[<p>Curiouser and curiouser. Let me know if it runs outside of RDT.</p>
<p>How&#8217;d you build your RJB for Windows, btw? I haven&#8217;t tried yet. I have googled instructions for crosscompilation of Ruby extensions using MinGW and have an old Visual C++ install I could use, but haven&#8217;t gotten off my duff to actually do it yet.</p>
<p>FWIW, you could probably get the pure java implementaiton going in Eclipse if you changed your Run command to include &#8220;-Djdbc.drivers=com.ibm.as400.access.AS400JDBCDriver&#8221; as a VM parameter. Same diff as registerDrive tho.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kendall</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-117</link>
		<dc:creator>Kendall</dc:creator>
		<pubDate>Thu, 11 May 2006 21:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-117</guid>
		<description>I hadn&#039;t thought of that.  But I just tried and it worked fine.  Although I did need to insert :
&quot;DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());&quot; because it threw the exception &quot;no suitable driver&quot;.  Then it executed successfully and returned the expected result.  However, I am trying to execute from the RDT perspective in Eclipse.  Maybe that&#039;s my problem.  I&#039;ll try from outside the IDE and see what happens.  Thanks for your response.

Kendall</description>
		<content:encoded><![CDATA[<p>I hadn&#8217;t thought of that.  But I just tried and it worked fine.  Although I did need to insert :<br />
&#8220;DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());&#8221; because it threw the exception &#8220;no suitable driver&#8221;.  Then it executed successfully and returned the expected result.  However, I am trying to execute from the RDT perspective in Eclipse.  Maybe that&#8217;s my problem.  I&#8217;ll try from outside the IDE and see what happens.  Thanks for your response.</p>
<p>Kendall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darrend</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-113</link>
		<dc:creator>darrend</dc:creator>
		<pubDate>Thu, 11 May 2006 16:34:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-113</guid>
		<description>I&#039;m not sure, as I haven&#039;t seen that situation before. But I haven&#039;t run the bridge under windows yet either.

Out of curiosity, did you try the pure java code I posted and did it cause the same problem? I&#039;m assuming it would.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure, as I haven&#8217;t seen that situation before. But I haven&#8217;t run the bridge under windows yet either.</p>
<p>Out of curiosity, did you try the pure java code I posted and did it cause the same problem? I&#8217;m assuming it would.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kendall</title>
		<link>http://www.missiondata.com/blog/system-administration/46/accessing-as400-databases-with-ruby-java-and-the-rubyjavabridge/comment-page-1/#comment-112</link>
		<dc:creator>Kendall</dc:creator>
		<pubDate>Thu, 11 May 2006 13:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.missiondata.com/?p=46#comment-112</guid>
		<description>darrend,

I share your entusiasm for this bridge.  Following your example I have been able to make use of Java classes that I would not want to rewrite in Ruby if I don&#039;t have to, and it worked beautifully.  I am having some trouble, though, accessing our AS/400&#039;s in the same way you do in your examples.   It appears I am able to make the JDBC connection (I can see it in the QZDASOINIT job log) but the program just hangs at that point and I have to cancel it.  A &quot;Host server error&quot; is recorded in the job log: &quot;Error code 3426 was received while processing the recv() - length function for the host server communications.&quot;  My logging suggests that the conn.prepareStatement never happens. I&#039;m suspicious that it might be a CCSID thing, but nothing I have seen lets me work around that.  My client is XP, sp2.  Did you run into anything like this in your travels?  Thanks.</description>
		<content:encoded><![CDATA[<p>darrend,</p>
<p>I share your entusiasm for this bridge.  Following your example I have been able to make use of Java classes that I would not want to rewrite in Ruby if I don&#8217;t have to, and it worked beautifully.  I am having some trouble, though, accessing our AS/400&#8242;s in the same way you do in your examples.   It appears I am able to make the JDBC connection (I can see it in the QZDASOINIT job log) but the program just hangs at that point and I have to cancel it.  A &#8220;Host server error&#8221; is recorded in the job log: &#8220;Error code 3426 was received while processing the recv() &#8211; length function for the host server communications.&#8221;  My logging suggests that the conn.prepareStatement never happens. I&#8217;m suspicious that it might be a CCSID thing, but nothing I have seen lets me work around that.  My client is XP, sp2.  Did you run into anything like this in your travels?  Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

