<?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>Ramblings from the bit bucket &#187; Java</title>
	<atom:link href="http://blogs.planetingres.org/notnull/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.planetingres.org/notnull</link>
	<description>Just another blogs.planetingres.org weblog</description>
	<lastBuildDate>Tue, 01 Feb 2011 09:13:33 +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>Debugging the Hibernate project with Eclipse</title>
		<link>http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/</link>
		<comments>http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/#comments</comments>
		<pubDate>Sun, 16 May 2010 10:42:44 +0000</pubDate>
		<dc:creator>notnull</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[ingres]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/?p=174</guid>
		<description><![CDATA[Trying to debug projects made using Apache Maven has not been something achieved with any success. Having been working at the periphery of the Hibernate source and submitting simple patches for the Ingres dialect and some tests I am now in a position to start debugging some of the issues discovered whilst testing. I have [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to debug projects made using <a href="http://maven.apache.org/">Apache Maven</a> has not been something achieved with any success.</p>
<p>Having been working at the periphery of the Hibernate source and submitting simple patches for the Ingres dialect and some tests I am now in a position to start debugging some of the issues discovered whilst testing.  I have been dabbling with building maven projects from Eclipse using <a href="http://m2eclipse.sonatype.org/">m2eclipse</a>, but have not managed to perform source level debugging.  I found this article <a href="http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+IDE">Dealing with the Eclipse IDE</a> that provides some clues on how it is done.</p>
<p>Essentially it involves a remote debug session from a container project to a running maven goal configured to listen.</p>
<h2>Versions</h2>
<p>The versions of software that I&#8217;ve been playing with</p>
<ul>
<li>Eclipse Galileo ~SR1 &#8211; Build id: 20090920-1017</li>
<li>Eclipse Helios M5 &#8211; Build id: 20100204-0846 (I started to install the m2eclipse plugin and import the projects, but needs more work)</li>
<li>Ingres 9.3.1 (int.lnx/106)</li>
<li>java version &#8220;1.6.0_16&#8243;</li>
<li>mvn Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)</li>
<li>Apache Ant version 1.7.1 compiled on June 27 2008</li>
<li>Hibernate 3.5.0-Final</li>
<p><code>Path: .<br />
URL: http://anonsvn.jboss.org/repos/hibernate/core/tags/hibernate-3.5.0-Final<br />
Repository Root: http://anonsvn.jboss.org/repos/hibernate<br />
Repository UUID: 1b8cb986-b30d-0410-93ca-fae66ebed9b2<br />
Revision: 19149<br />
Node Kind: directory<br />
Schedule: normal<br />
Last Changed Author: steve.ebersole@jboss.com<br />
Last Changed Rev: 19148<br />
Last Changed Date: 2010-03-31 18:38:55 +0100 (Wed, 31 Mar 2010)<br />
</code>
</ul>
<p>These notes assume that the software has been installed and configured.  For example, the Maven local repository location is available and that the Maven remote repository is accessible.</p>
<h2>Installing m2eclipse</h2>
<p>The article <a href="http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+IDE">Dealing with the Eclipse IDE</a> includes links on how to install m2eclipse, but in summary, to install new software in Eclipse use the built-in update manager:</p>
<ul>
<li>Using the menus select
<ul>
<li>Help &gt; Install New Software</li>
<li>In the dialog add the URL <a href="http://m2eclipse.sonatype.org/sites/m2e">http://m2eclipse.sonatype.org/sites/m2e</a></li>
<li>Check the boxes of the packages that should be installed
<ul>
<li>NB&#8221; Version 0.9.8 should be un-installed before upgrading to 0.10.</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2>Import the Hibernate project</h2>
<p>Once the m2eclipse extensions have been installed into Eclipse the preparation for importing the Hibernate Project Object Model (POM) XML file into the IDE is complete.  Importing the Hibernate project is <em><strong>optional</strong></em> and is only required if you intend to build Hibernate from Eclipse.  The remote Java application perspective will connect to either a command line invoked maven process or an Eclipse invoked maven process.</p>
<ul>
<li>Start Eclipse
<ul>
<li>Create a new workspace for the Hibernate project.</li>
</ul>
</li>
<li>Using the menu File &gt; Import
<ul>
<li>Select Maven &gt; Existing Maven Projects</li>
<li>Click Next and use the browse button to specify the root directory of the Hibernate source code, this is the directory in which the top level pom.xml file exists.</li>
<li>The sub-projects appear in the tree view in addition to the hierarchy beneath the top level project.</li>
</ul>
</li>
<p><img src="http://blogs.planetingres.org/notnull/files/2010/05/02-eclipse-import-maven-projects.png" alt="Import Exisiting Maven Project" /></ul>
<p>The initial import and build of the workspace can take a while.</p>
<h2><strong>Create a Surefire Debug Configuration</strong></h2>
<p>Create a run configuration for a specific test class for debugging.  In this example the filter.DynamicFilterTest has been cut down into filter.IngresDynamicFilterTest.</p>
<ul>
<li> Select the menu Run &gt; Run configuration option or from the context menu using a right click.</li>
<li>In the Run Configuration dialog select &#8221;maven&#8221; and create a new configuration
<ul>
<li>Enter a name for the configuration</li>
<li>Surefire Debug</li>
<li>Set the base directory to the test suite directory by browsing the file system</li>
<li>Set the goals</li>
<li> <code>test -Dmaven.surefire.debug</code></li>
<li>Use a JDBC profile if one is required and has been configured</li>
<li>Set the &#8221;test&#8221; parameter to a specific test class intended for debugging
<ul>
<li> <code>test=org.hibernate.test.filter.IngresDynamicFilterTest</code></li>
</ul>
</li>
</ul>
</li>
<p><img src="http://blogs.planetingres.org/notnull/files/2010/05/06-debug-config-m2-test.png" alt="Maven Test Run Configuration" /></ul>
<h2>Create a Debugging Container Project</h2>
<p>The container java project does not contain any source and is used as the launch point for a remote debugging configuration.</p>
<ul>
<li> Using the File-&gt;New-&gt;Project-&gt;Java Project (or equivalent)</li>
<li>Set the project name in the wizard</li>
<li><code>Project Name: Maven Debug</code> and finish</li>
<p>In order to debug a maven project a container project is used to connect to maven in debug mode.</p>
<p><a href="http://vimeo.com/11763677">Create Container Project</a> from <a href="http://vimeo.com/user3822721">Ray Fan</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<li>Use the Run-&gt;Debug Configurations menu to create a configuration for the Remote Java Application
<ul>
<li>Set the name<code>Name: Maven</code></li>
<li>Keep all the existing settings and apply</li>
<p><img src="http://blogs.planetingres.org/notnull/files/2010/05/10-debug-config-remote-maven-project.png" alt="Debug Remote Application" /></p>
<li>Select the Source tab and add source
<ul>
<li><code>File System Directory</code> and browse to the Hibernate route source directory</li>
<li>Select the <code>Search subfolders</code> check box</li>
<li>Apply and close</li>
</ul>
<p><img src="http://blogs.planetingres.org/notnull/files/2010/05/13-source-folders-added.png" alt="Add Source Folders" /></li>
</ul>
</li>
<li>Use the Run &gt; Debug Configurations menu to duplicate the Maven configuration for the Remote Java Application
<ul>
<li>Set the name
<ul>
<li><code>Name: Maven Debug</code></li>
</ul>
</li>
<li>Change the port value
<ul>
<li><code>Port: 5005</code></li>
</ul>
</li>
<li>Apply and close</li>
<p><img src="http://blogs.planetingres.org/notnull/files/2010/05/11-debug-config-remote-maven-surefile-project.png" alt="Remote Application Maven Surefire Configuration" /></ul>
</li>
</ul>
<h2>Set breakpoints and start the test</h2>
<p>At least one breakpoint should be set in the source prior to the run configuration Surefire Debug is started</p>
<ul>
<li> Browse the source tree in the package explorer to the test class</li>
<li>Set a breakpoint</li>
<li>Use the Run-&gt;Run Configurations menu and select the Maven-&gt;Surefire Debug configuration
<ul>
<li>Click debug to start maven</li>
</ul>
</li>
<p><a href="http://vimeo.com/11760638">Eclipse breakpoint setting and starting maven</a> from <a href="http://vimeo.com/user3822721">Ray Fan</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Using Eclipse to browse the project source and set a breakpoint prior to starting maven to run the test.</p>
<h2>Start the debugger</h2>
</ul>
<ul>
<li> Use the Debug-&gt;Debug Configurations menu and select the <code>Maven Debug</code> remote debugging configuration
<ul>
<li>Click debug to start the debugging session</li>
<li>Switch to the debugging perspective when prompted</li>
<li>Once execution of the test starts the breakpoint set previously should be hit</li>
</ul>
</li>
<p><a href="http://vimeo.com/11767128">Starting to debug</a> from <a href="http://vimeo.com/user3822721">Ray Fan</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Starting to debug, switching perspective and hitting the breakpoint.</p>
</ul>
<h3>Related posts</h3>
<ul class="related_post">
<li><a href="http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/" title="Hibernate 3.5.0-Final released">Hibernate 3.5.0-Final released</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2008/08/06/donnez-moi-un-cafe-ingres/" title="Donnez-moi un café Ingres">Donnez-moi un café Ingres</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2008/01/21/rapid/" title="Rapid">Rapid</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2011/02/01/ingres-migration-toolset/" title="Ingres Migration Toolset">Ingres Migration Toolset</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/02/23/useful-or-useless-follow-on-post/" title="Useful or useless? Follow on post &#8230;">Useful or useless? Follow on post &#8230;</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hibernate 3.5.0-Final released</title>
		<link>http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/</link>
		<comments>http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 09:54:14 +0000</pubDate>
		<dc:creator>notnull</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ingres]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/?p=170</guid>
		<description><![CDATA[Today, Hibernate 3.5.0 completes its development cycle and is announced as Final.]]></description>
			<content:encoded><![CDATA[<p>Today, <a href="http://hibernate.org/">Hibernate 3.5.0</a> completes its development cycle and is <a href="http://in.relation.to/Bloggers/Hibernate350FinalRelease">announced as Final</a>.  I joined this party late in the day and I&#8217;m still working through some of the test results from earlier candidate releases.  I&#8217;ve submitted a few patches and they&#8217;ve been accepted and some have even made it into this Final release.</p>
<p>Most notably, I extended the work started by Enrico Schenk in introducing additional Ingres dialects.  There are now three possible dialects.</p>
<ul>
<li>IngresDialect &#8211; for use with Ingres II 9.2</li>
<li>Ingres9Dialect &#8211; for use with Ingres II 9.3</li>
<li>Ingres10Dialect &#8211; for use with Ingres II 10.0 &#8211; at the moment this is a place holder and uses the 9.3 dialect</li>
</ul>
<p>The Ingres9Dialect switches uses the ISO date/time types and functions for mapping to their Hibernate equivalents.  This changes the behaviour from the IngresDialect which used ingresdate type and functions.</p>
<p>Further changes to Ingres9Dialect will include the introduction of auto-increment columns; a whole host of additions will be required for the Ingres10Dialect and not forgetting the inclusions from the <a href="http://community.ingres.com/wiki/IngresGeospatial">Ingres GeoSpatial project</a>.<br />
A list of new features introduced into each release is published on the &#8220;<a href="http://community.ingres.com/wiki/Ingres_New_Features_Per_Release">Ingres New Features Per Release</a>&#8221; page.</p>
<h3>Related posts</h3>
<ul class="related_post">
<li><a href="http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/" title="Debugging the Hibernate project with Eclipse">Debugging the Hibernate project with Eclipse</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/02/23/useful-or-useless-follow-on-post/" title="Useful or useless? Follow on post &#8230;">Useful or useless? Follow on post &#8230;</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2009/04/24/in-the-market-for-jdbc-properties/" title="In the market for JDBC properties">In the market for JDBC properties</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2008/08/06/donnez-moi-un-cafe-ingres/" title="Donnez-moi un café Ingres">Donnez-moi un café Ingres</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2008/03/28/google-summer-of-code-gsoc-2008/" title="Google Summer of Code (GSoC) 2008">Google Summer of Code (GSoC) 2008</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In the market for JDBC properties</title>
		<link>http://blogs.planetingres.org/notnull/2009/04/24/in-the-market-for-jdbc-properties/</link>
		<comments>http://blogs.planetingres.org/notnull/2009/04/24/in-the-market-for-jdbc-properties/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 17:40:45 +0000</pubDate>
		<dc:creator>notnull</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[ingres]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JDBC]]></category>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/?p=65</guid>
		<description><![CDATA[It has been a while since my last post; head down updating the packages on the BI appliance, but that&#8217;s another story. Java and JDBC applications seem to be the plat du jour and trying to peel away the layers getting to the JDBC settings and queries being executed in some of the frameworks can [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a while since my last post; head down updating the packages on the BI appliance, but that&#8217;s another story.</p>
<p>Java and JDBC applications seem to be the plat du jour and trying to peel away the layers getting to the JDBC settings and queries being executed in some of the frameworks can be a challenge.  Enabling JDBC tracing using a properties files requires the file being located within the CLASSPATH according to <a title="Connectivity Guide" href="http://docs.ingres.com/Ingres/9.2/Connectivity%20Guide/jdbcdriverinterface.htm#o1237">http://docs.ingres.com/Ingres/9.2/Connectivity%20Guide/jdbcdriverinterface.htm#o1237</a>.  Many of the frameworks create the CLASSPATH environment based on files with specific extensions in specific directories, so what seems to be a valid directory in which to create iijdbc.properties can be a bit hit and miss.</p>
<p>Recently for me it has been necessary to set the system property <em>ingres.jdbc.property_file</em> as a parameter to the Java runtime.</p>
<p>A simple iijdbc.properties file enables logging and sets a couple of other properties created in for example, /tmp.<br />
<code>ingres.jdbc.lob.cache.enabled=true<br />
ingres.jdbc.trace.log=/tmp/iijdbc.log<br />
ingres.jdbc.trace.timestamp=true<br />
ingres.jdbc.trace.drv=5<br />
ingres.jdbc.property.timezone=NA-PACIFIC</code></p>
<p>The following passes the system property specifying the property file as an argument to the runtime environment executing a the class JdbcInfo and testing the connection to the imadb database.<br />
<code>cd $II_SYSTEM/ingres.lib<br />
java -cp .:iijdbc.jar -Dingres.jdbc.property_file=/tmp/iijdbc.properties JdbcInfo jdbc:ingres://localhost:I17/imadb<br />
Error establishing connection:<br />
Communications error while establishing connection.</code></p>
<p>The connection failed and the log output from the command:<br />
<code>2009-04-24 13:25:03.788: Ingres Corporation - JDBC Driver [3.4.3]: Fri Apr 24 13:25:03 EDT 2009<br />
2009-04-24 13:25:03.797: Ingres-Driver: registered<br />
2009-04-24 13:25:03.805: Ingres-Driver.connect()<br />
2009-04-24 13:25:03.812: Conn: lob.cache.enabled=true<br />
2009-04-24 13:25:03.813: Conn: Connecting to server: localhost:I17<br />
2009-04-24 13:25:03.853: MsgIo[0]: connection error - all addresses failed<br />
2009-04-24 13:25:03.856: Ingres-Driver.connect(): error establishing connection<br />
2009-04-24 13:25:03.856: Exception: 08001, 0xc4001<br />
2009-04-24 13:25:03.856:   Message: Communications error while establishing connection.<br />
2009-04-24 13:25:03.857: Exception: null, 0x0<br />
2009-04-24 13:25:03.857:   Message: Connection refused</code><br />
Although easily enough to spot from the command line the connection URL is incorrect in this case and the instance identifier should be II, but the log contains more detail.</p>
<p>Here&#8217;s the output from the successfully executed command after the instance identifier has been corrected:<br />
<code>java -cp .:iijdbc.jar -Dingres.jdbc.property_file=/tmp/iijdbc.properties JdbcInfo jdbc:ingres://localhost:II7/imadb<br />
Ingres Corporation - JDBC Driver [3.4.3]: (JDBC 3.0)<br />
INGRES [9.2]: II 9.2.0 (int.rpl/143)</code></p>
<h3>Related posts</h3>
<ul class="related_post">
<li><a href="http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/" title="Debugging the Hibernate project with Eclipse">Debugging the Hibernate project with Eclipse</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/" title="Hibernate 3.5.0-Final released">Hibernate 3.5.0-Final released</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2008/01/21/rapid/" title="Rapid">Rapid</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2011/02/01/data-access-message-protocol-wireshark-dissector/" title="Data Access Message Protocol &#8211; Wireshark dissector">Data Access Message Protocol &#8211; Wireshark dissector</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2011/02/01/ingres-migration-toolset/" title="Ingres Migration Toolset">Ingres Migration Toolset</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.planetingres.org/notnull/2009/04/24/in-the-market-for-jdbc-properties/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Donnez-moi un café Ingres</title>
		<link>http://blogs.planetingres.org/notnull/2008/08/06/donnez-moi-un-cafe-ingres/</link>
		<comments>http://blogs.planetingres.org/notnull/2008/08/06/donnez-moi-un-cafe-ingres/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 07:16:38 +0000</pubDate>
		<dc:creator>notnull</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[DTP]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Ingres CAFÉ]]></category>
		<category><![CDATA[Java]]></category>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/?p=40</guid>
		<description><![CDATA[Pardon my French, but an Ingres Google Summer of Code project, Ingres CAFÉ, demonstrated at LinuxWorld and nominated for the LinuxWorld Product Excellence award was named winner over a number of other innovative projects that included TWiki.net: TWiki OnDemand Enterprise. Ingres CAFÉ is a complete Web application development stack and runtime building upon Ingres 9.2.0, [...]]]></description>
			<content:encoded><![CDATA[<p>Pardon my French, but an Ingres <a title="GSoC 2008" href="http://code.google.com/soc/2008">Google Summer of Code</a> project, <a title="Ingres' Consolidated Application Foundation for Eclipse" href="http://community.ingres.com/wiki/CAFÉ">Ingres CAFÉ</a>, demonstrated at <a title="LinuxWorld 2008" href="http://www.linuxworldexpo.com/live/12/">LinuxWorld</a> and nominated for the LinuxWorld Product Excellence award was named winner over a number of other innovative projects that included TWiki.net: TWiki OnDemand Enterprise.</p>
<p>Ingres CAFÉ is a complete Web application development stack and runtime building upon Ingres 9.2.0, Ingres Eclipse DTP and various other Java and Eclipse components, details of which can be found on the project Wiki page.</p>
<p>Exemplifies mentored community development, congratulations.<br />
<h3>Related posts</h3>
<ul class="related_post">
<li><a href="http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/" title="Debugging the Hibernate project with Eclipse">Debugging the Hibernate project with Eclipse</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/06/25/vectorise-your-data/" title="Vectorise your data">Vectorise your data</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/" title="Hibernate 3.5.0-Final released">Hibernate 3.5.0-Final released</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2009/10/07/learning-to-share/" title="Learning to share">Learning to share</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2008/01/21/rapid/" title="Rapid">Rapid</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.planetingres.org/notnull/2008/08/06/donnez-moi-un-cafe-ingres/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rapid</title>
		<link>http://blogs.planetingres.org/notnull/2008/01/21/rapid/</link>
		<comments>http://blogs.planetingres.org/notnull/2008/01/21/rapid/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 10:38:29 +0000</pubDate>
		<dc:creator>notnull</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[IUA]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[ingres]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[JSTL]]></category>
		<category><![CDATA[OpenLaszlo]]></category>
		<category><![CDATA[Playstation 3]]></category>
		<guid isPermaLink="false">http://blogs.planetingres.org/notnull/2008/01/21/rapid/</guid>
		<description><![CDATA[It now seems a very long time ago, but last November I took part in a team meeting where we discussed how to evangelize Ingres within our own sphere of influence. Projects similar to the Playstation 3 port and the Eclipse DTP were mentioned as innovative. During the meeting I was asked to take a [...]]]></description>
			<content:encoded><![CDATA[<p>It now seems a very long time ago, but last November I took part in a team meeting where we discussed how to evangelize Ingres within our own sphere of influence.  Projects similar to the <a href="http://blogs.planetingres.org/notnull/2007/07/11/sony-ps3-ii-910-ppclnx00/" title="Ingres and Sony Playstation 3">Playstation 3</a> port and the <a href="http://eclipse.sys-con.com/read/367020.htm" title="Ingres Eclipse DTP webinar">Eclipse DTP</a> were mentioned as innovative.  During the meeting I was asked to take a look at OpenLaszlo to try and modify one of their demonstration applications to use Ingres as a data source.</p>
<p>Being a tomcat, JSP and <a href="http://www.openlaszlo.org" title="OpenLaszlo rich internet applications">OpenLaszlo</a> nubbie I managed to get the <a href="http://www.openlaszlo.org/lps4/demos/amazon/amazon.lzx?lzt=html&amp;lzr=swf7" title="OpenLaszlo Amazon store">Amazon Store</a> demo to use Ingres for the checkout and shipping address details.  A couple of JSPs a two line change in OpenLaszlo source and the demo was reading data from Ingres.  The code changes took 5 minutes, getting it to work took a little longer.  I used OpenLaszlo 4.0.7 for my tests but <a href="http://www.openlaszlo.org/download" title="OpenLaszlo downloads">OpenLaszlo 4.0.8</a> is now available.</p>
<p>Take a look at the <a href="http://www.openlaszlo.org/lps4/demos/amazon/amazon.lzx?lzt=source" title="amazon.lzx">OpenLaszlo source code</a> at the line<code><br />
&lt;dataset name="dsAddressList" src="data/addresses.xml"/&gt;<br />
&lt;dataset name="dsCreditCardList" src="data/creditcards.xml"/&gt;<br />
</code></p>
<p>These were modified to<code><br />
&lt;dataset name="dsAddressList" src="/ingdb/getaddress.jsp" request="true" type="http"/&gt;<br />
&lt;dataset name="dsCreditCardList" src="/ingdb/creditcard.jsp" request="true" type="http"/&gt;<br />
</code>Setting request=&#8221;true&#8221; causes the client to request data each time the query string or the base URL changes.</p>
<p>My initial pages and tomcat configuration is documented on the page <a href="http://community.ingres.com/wiki/JSP" title="JSP">&#8220;Accessing data from JSP&#8221;</a> and contains the simple  DDL for the table and some sample data.   In this example the database and credentials are embedded in the page.  With a little more time I changed the JSP to use the JSTL and configured the tomcat server with a JNDI resource for the database connection.  My latest attempt is document on the page <a href="http://community.ingres.com/wiki/JNDI" title="JDBC and JNDI">&#8220;JDBC and JNDI&#8221;</a>.</p>
<p>For 2008 the watchword is &#8220;Rapid&#8221;.  Rapid application development and deployment, everything has to happen faster.  Using an environment like OpenLaszlo gets part of the way there.</p>
<p>We&#8217;ll be looking at subject matter for a development sprint at the forthcoming UK IUA in June.  An OpenLaszlo application may be a candidate.<br />
<h3>Related posts</h3>
<ul class="related_post">
<li><a href="http://blogs.planetingres.org/notnull/2010/05/16/debugging-the-hibernate-project-with-eclipse/" title="Debugging the Hibernate project with Eclipse">Debugging the Hibernate project with Eclipse</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2011/02/01/ingres-migration-toolset/" title="Ingres Migration Toolset">Ingres Migration Toolset</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/04/01/hibernate-3-5-0-final-released/" title="Hibernate 3.5.0-Final released">Hibernate 3.5.0-Final released</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2010/02/04/button-clicks-do-nothing-in-ingres-database-workbench-eclipse-and-its-derivatives/" title="Button clicks do nothing in Ingres Database Workbench, Eclipse and its derivatives">Button clicks do nothing in Ingres Database Workbench, Eclipse and its derivatives</a></li>
<li><a href="http://blogs.planetingres.org/notnull/2009/04/24/in-the-market-for-jdbc-properties/" title="In the market for JDBC properties">In the market for JDBC properties</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.planetingres.org/notnull/2008/01/21/rapid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

