<?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>devblog @ x-sphere.com &#187; spring</title>
	<atom:link href="http://devblog.x-sphere.com/tag/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.x-sphere.com</link>
	<description>random babblings of a product manager and coder</description>
	<lastBuildDate>Tue, 17 Jan 2012 15:06:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
		<item>
		<title>WebSphere + JNDI + Spring Framework + Hibernate</title>
		<link>http://devblog.x-sphere.com/2008/01/23/websphere-jndi-spring-framework-hibernate/</link>
		<comments>http://devblog.x-sphere.com/2008/01/23/websphere-jndi-spring-framework-hibernate/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 20:50:43 +0000</pubDate>
		<dc:creator>Matt Brotherson</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">http://devblog.x-sphere.com/?p=39</guid>
		<description><![CDATA[Thought I&#8217;d post a snippet of applicationContext.xml for all the people out there trying a JNDI data source wired up in IBM&#8217;s WebSphere Application Server through Spring Framework and Hibernate. I couldn&#8217;t find this information as a whole anywhere out there so hopefully it helps someone. Hit the jump for the xml.]]></description>
			<content:encoded><![CDATA[<p>Thought I&#8217;d post a snippet of applicationContext.xml for all the people out there trying a JNDI data source wired up in IBM&#8217;s WebSphere Application Server through Spring Framework and Hibernate.  I couldn&#8217;t find this information as a whole anywhere out there so hopefully it helps someone.</p>
<p>Hit the jump for the xml.<span id="more-39"></span></p>
<pre class="brush: xml; title: ; notranslate">
&lt;beans&gt;
	&lt;bean id=&quot;dataSource&quot; class=&quot;org.springframework.jndi.JndiObjectFactoryBean&quot;&gt;
        &lt;property name=&quot;jndiName&quot; value=&quot;jdbc/DB2&quot;/&gt;
        &lt;property name=&quot;lookupOnStartup&quot; value=&quot;false&quot;/&gt;
        &lt;property name=&quot;cache&quot; value=&quot;true&quot; /&gt;
        &lt;property name=&quot;proxyInterface&quot;	value=&quot;javax.sql.DataSource&quot; /&gt;
    &lt;/bean&gt;

    &lt;!-- Hibernate SessionFactory --&gt;
	&lt;bean id=&quot;sessionFactory&quot; class=&quot;org.springframework.orm.hibernate3.LocalSessionFactoryBean&quot;&gt;
		&lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot;/&gt;
		&lt;property name=&quot;mappingResources&quot;&gt;
			&lt;list&gt;
				&lt;value&gt;User.hbm.xml&lt;/value&gt;
			&lt;/list&gt;
		&lt;/property&gt;
		&lt;property name=&quot;hibernateProperties&quot;&gt;
		    &lt;props&gt;
		      &lt;prop key=&quot;hibernate.dialect&quot;&gt;org.hibernate.dialect.DB2Dialect&lt;/prop&gt;
		      &lt;prop key=&quot;hibernate.show_sql&quot;&gt;true&lt;/prop&gt;
		      &lt;!-- 			IBM WAS SPECIFIC			 --&gt;
		      &lt;prop key=&quot;hibernate.connection.datasource&quot;&gt;jdbc/DB2&lt;/prop&gt;
		      &lt;prop key=&quot;hibernate.transaction.factory_class&quot;&gt;org.hibernate.transaction.CMTTransactionFactory&lt;/prop&gt;
			  &lt;prop key=&quot;hibernate.transaction.manager_lookup_class&quot;&gt;org.hibernate.transaction.WebSphereExtendedJTATransactionLookup&lt;/prop&gt;
			  &lt;!-- 			/END IBM WAS SPECIFIC		 --&gt;
		    &lt;/props&gt;
		&lt;/property&gt;
	&lt;/bean&gt;

	&lt;bean id=&quot;transactionManager&quot;
		class=&quot;org.springframework.transaction.jta.JtaTransactionManager&quot;&gt;
			&lt;property name=&quot;autodetectTransactionManager&quot; value=&quot;false&quot; /&gt;
	&lt;/bean&gt;
&lt;/beans&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://devblog.x-sphere.com/2008/01/23/websphere-jndi-spring-framework-hibernate/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

