<?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>Andrew Morgan's MySQL Cluster Database Blog &#187; OpenJPA</title>
	<atom:link href="http://www.clusterdb.com/tag/openjpa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clusterdb.com</link>
	<description>MySQL Cluster database &#38; MySQL Replication</description>
	<lastBuildDate>Wed, 01 Feb 2012 18:35:29 +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>Build MySQL Cluster 7.1 from source &#8211; including MySQL Cluster Connector for Java</title>
		<link>http://www.clusterdb.com/mysql-cluster/build-mysql-cluster-7-1-from-source-including-mysql-cluster-connector-for-java/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-mysql-cluster-7-1-from-source-including-mysql-cluster-connector-for-java</link>
		<comments>http://www.clusterdb.com/mysql-cluster/build-mysql-cluster-7-1-from-source-including-mysql-cluster-connector-for-java/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 12:09:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL Cluster]]></category>
		<category><![CDATA[ClusterJ]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JPA]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Cluster 7.1]]></category>
		<category><![CDATA[OpenJPA]]></category>

		<guid isPermaLink="false">http://www.clusterdb.com/?p=997</guid>
		<description><![CDATA[If you want to try out the beta features in MySQL Cluster 7.1 then you can either use the appropriate binaries or you can build it for yourself from source. Here I explain how to do this on LINUX. Note that if you want to make use of OpenJPA then you first need to install [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to try out the beta features in MySQL Cluster 7.1 then you can either use the appropriate binaries or you can build it for yourself from source. Here I explain how to do this on LINUX.</p>
<p>Note that if you want to make use of OpenJPA then you first need to install <a href="http://openjpa.apache.org/" target="_blank">OpenJPA</a> and <a href="http://dev.mysql.com/downloads/connector/j/" target="_blank">Connector/J</a>.</p>
<p>The example here was on Fedora12 with the <a href="http://dev.mysql.com/downloads/cluster/#downloads" target="_blank">MySQL Cluster 7.1.2 source</a>:</p>
<blockquote><p><span style="color: #993300;">CFLAGS=&#8221;-O3&#8243; CXX=gcc CXXFLAGS=&#8221;-O3 -felide-constructors -fno-exceptions -fno-rtti&#8221; ./configure -prefix=/usr/local/mysql &#8211;enable-assembler &#8211;with-mysqld-ldflags=-all-static &#8211;with-plugins=max &#8211;with-openjpa &#8211;with-classpath=/usr/local/openjpa/openjpa-1.2.1.jar:/usr/local/openjpa/lib/geronimo-jpa_3.0_spec-1.0.jar:/usr/local/openjpa/lib/geronimo-jta_1.1_spec-1.1.jar  &#8211;with-extra-charsets=all</span></p>
<p><span style="color: #993300;">make</span></p>
<p><span style="color: #993300;">make install</span></p></blockquote>
<p>That&#8217;s it! Obviously, the exact location of the OpenJPA jars will depend on where you installed it. Note that for &#8216;make install&#8217; you need to run it from an account that has access to /usr/local</p>
<p>I&#8217;ll follow up a little later with a post with example applications (in the mean time refer to this <a href="http://ocklin.blogspot.com/2009/12/java-and-openjpa-for-mysql-cluster_14.html" target="_blank">tutorial</a> or the <a href="http://dev.mysql.com/doc/ndbapi/en/mccj.html" target="_blank">MySQL Cluster for Java on-line documentation</a>) but FYI these are the options I use to compile and run my test aps:</p>
<blockquote><p><span style="color: #993300;"><strong>ClusterJ</strong>:</span></p>
<p><span style="color: #993300;">javac -classpath /usr/local/mysql/share/mysql/java/clusterj-api.jar:. Main.java Employee.java</span></p>
<p><span style="color: #993300;">java -classpath /usr/local/mysql/share/mysql/java/clusterj.jar:. -Djava.library.path=/usr/local/mysql/lib/mysql/ Main</span></p>
<p><span style="color: #993300;"><br />
</span></p>
<p><span style="color: #993300;"><strong>ClusterJPA</strong>:</span></p>
<p><span style="color: #993300;">javac -classpath /usr/local/mysql/share/mysql/java/clusterjpa.jar:/usr/local/openjpa/openjpa-1.2.1.jar:/usr/local/openjpa/lib/geronimo-jpa_3.0_spec-1.0.jar:. Main.java Employee.java Department.java</span></p>
<p><span style="color: #993300;">java -Djava.library.path=/usr/local/mysql/lib/mysql/ -classpath /usr/local/mysql/share/mysql/java/clusterjpa.jar:/usr/local/openjpa/openjpa-1.2.1.jar:/usr/local/openjpa/lib/*:/usr/local/connectorj/mysql-connector-java-5.1.12-bin.jar:. Main</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.clusterdb.com/mysql-cluster/build-mysql-cluster-7-1-from-source-including-mysql-cluster-connector-for-java/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Java and OpenJPA for MySQL Cluster</title>
		<link>http://www.clusterdb.com/mysql-cluster/java-and-openjpa-for-mysql-cluster/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=java-and-openjpa-for-mysql-cluster</link>
		<comments>http://www.clusterdb.com/mysql-cluster/java-and-openjpa-for-mysql-cluster/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 11:34:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL Cluster]]></category>
		<category><![CDATA[ClusterJ]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JPA]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Cluster 7.1]]></category>
		<category><![CDATA[OpenJPA]]></category>

		<guid isPermaLink="false">http://www.clusterdb.com/?p=786</guid>
		<description><![CDATA[MySQL have been working on a new way of accessing MySQL Cluster using Java. The aim being to give most of the performance of the C++ NDB API but in a much friendlier form for Java developers. There will in fact be 2 new interfaces &#8211; ClusterJ (MySQL&#8217;s own API) and a JPA solution (using [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_785" class="wp-caption alignright" style="width: 330px"><a href="http://www.clusterdb.com/wp-content/uploads/2009/12/clusterj-architecture.png"><img class="size-full wp-image-785" title="clusterj-architecture" src="http://www.clusterdb.com/wp-content/uploads/2009/12/clusterj-architecture.png" alt="ClusterJ Architecture" width="320" height="183" /></a><p class="wp-caption-text">ClusterJ Architecture</p></div>
<p>MySQL have been working on a new way of accessing MySQL Cluster using Java. The aim being to give most of the performance of the C++ NDB API but in a much friendlier form for Java developers. There will in fact be 2 new interfaces &#8211; ClusterJ (MySQL&#8217;s own API) and a JPA solution (using OpenJPA). If you want to see for yourself then take a look at the <a href="http://ocklin.blogspot.com/2009/12/java-and-openjpa-for-mysql-cluster_14.html" target="_blank">Blog entry from Bernhard Ocklin</a> &#8211; the engineering manager responsible for this work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clusterdb.com/mysql-cluster/java-and-openjpa-for-mysql-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

