<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Co-existence with Hibernate, JPA, and EJB3</title>
	<atom:link href="http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/feed/" rel="self" type="application/rss+xml" />
	<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/</link>
	<description>Software plumbing using middleware wrenches</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:51:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: seetharam</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-4490</link>
		<dc:creator><![CDATA[seetharam]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 17:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-4490</guid>
		<description><![CDATA[hi... greetings... 
its good.. about .. EJB  and Hibernate....
but.. you dint give... any... Exaple... on that..  for better.. understanding....]]></description>
		<content:encoded><![CDATA[<p>hi&#8230; greetings&#8230;<br />
its good.. about .. EJB  and Hibernate&#8230;.<br />
but.. you dint give&#8230; any&#8230; Exaple&#8230; on that..  for better.. understanding&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ara</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3788</link>
		<dc:creator><![CDATA[ara]]></dc:creator>
		<pubDate>Thu, 28 Oct 2010 20:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3788</guid>
		<description><![CDATA[can i mix jpa and seesion calls within a single transaction?]]></description>
		<content:encoded><![CDATA[<p>can i mix jpa and seesion calls within a single transaction?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Rafael Ramirez</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3771</link>
		<dc:creator><![CDATA[Carlos Rafael Ramirez]]></dc:creator>
		<pubDate>Mon, 25 Oct 2010 21:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3771</guid>
		<description><![CDATA[Mmm good point I will read about it, but it does make sense. Thanks!]]></description>
		<content:encoded><![CDATA[<p>Mmm good point I will read about it, but it does make sense. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ondrej Medek</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3763</link>
		<dc:creator><![CDATA[Ondrej Medek]]></dc:creator>
		<pubDate>Mon, 20 Sep 2010 11:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3763</guid>
		<description><![CDATA[Hi Carlos, 
I am interested in the same matter. The section 13.6.5 of ejb-3_0-fr-spec-ejbcore.pdf says, that the behaviour is not specified by JEE spec and left to the the implementation. So I guess, the EntityManager is implemented to tread each call as a separate transaction. While Hibernate session may behave more &quot;common Hibernate way&quot;.]]></description>
		<content:encoded><![CDATA[<p>Hi Carlos,<br />
I am interested in the same matter. The section 13.6.5 of ejb-3_0-fr-spec-ejbcore.pdf says, that the behaviour is not specified by JEE spec and left to the the implementation. So I guess, the EntityManager is implemented to tread each call as a separate transaction. While Hibernate session may behave more &#8220;common Hibernate way&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Rafael Ramirez</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3597</link>
		<dc:creator><![CDATA[Carlos Rafael Ramirez]]></dc:creator>
		<pubDate>Mon, 03 May 2010 21:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3597</guid>
		<description><![CDATA[Bill Very good post thanks,

One question for you. 

If I use a JTA transaction either Entityanager or Hibernate session behave in same way.

But if I annotate the method using:

&lt;code&gt;@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)&lt;/code&gt; (I don&#039;t want to use transactions)

the entityManager.find method and session.get method with same parameters behave different due to, the object returned by find method throws Lazy exceptions in collections (in the same method in session bean) and the object obtained via get method behaves without problem.

Any explanation for this strange behaviour?

Regards,
Carlos]]></description>
		<content:encoded><![CDATA[<p>Bill Very good post thanks,</p>
<p>One question for you. </p>
<p>If I use a JTA transaction either Entityanager or Hibernate session behave in same way.</p>
<p>But if I annotate the method using:</p>
<p><code>@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)</code> (I don&#8217;t want to use transactions)</p>
<p>the entityManager.find method and session.get method with same parameters behave different due to, the object returned by find method throws Lazy exceptions in collections (in the same method in session bean) and the object obtained via get method behaves without problem.</p>
<p>Any explanation for this strange behaviour?</p>
<p>Regards,<br />
Carlos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Chang</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3400</link>
		<dc:creator><![CDATA[Michael Chang]]></dc:creator>
		<pubDate>Tue, 23 Mar 2010 18:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-3400</guid>
		<description><![CDATA[Bill,

Nice post, thanks.  It was exactly what I was looking for: a way to mix and match JPA and pure Hibernate.  JPA is fine, and I&#039;m using it exclusively in an application right now.  However, I&#039;ve recently seen the power of the Hibernate Criteria API as well as the Hibernate JPA extensions, and it&#039;s inspired me to attempt to mix the two together, especially in my service layer where I do all of my CRUD.  Hibernate is an old player in the ORM world, and it&#039;s got tricks up its sleeves that JPA can&#039;t match.]]></description>
		<content:encoded><![CDATA[<p>Bill,</p>
<p>Nice post, thanks.  It was exactly what I was looking for: a way to mix and match JPA and pure Hibernate.  JPA is fine, and I&#8217;m using it exclusively in an application right now.  However, I&#8217;ve recently seen the power of the Hibernate Criteria API as well as the Hibernate JPA extensions, and it&#8217;s inspired me to attempt to mix the two together, especially in my service layer where I do all of my CRUD.  Hibernate is an old player in the ORM world, and it&#8217;s got tricks up its sleeves that JPA can&#8217;t match.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sylvie</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-2851</link>
		<dc:creator><![CDATA[Sylvie]]></dc:creator>
		<pubDate>Mon, 13 Jul 2009 08:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-2851</guid>
		<description><![CDATA[Thanks.

I try to make  a basic  web application based on JAVA , JSP , Servlet  , EJB3.0 , hibernate ... using  Eclipse Ganymede  AS5.0 ,   and so on ...and I found this is quite complicated to get the information I need . 

So  many thanks to make thinks clearer.]]></description>
		<content:encoded><![CDATA[<p>Thanks.</p>
<p>I try to make  a basic  web application based on JAVA , JSP , Servlet  , EJB3.0 , hibernate &#8230; using  Eclipse Ganymede  AS5.0 ,   and so on &#8230;and I found this is quite complicated to get the information I need . </p>
<p>So  many thanks to make thinks clearer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro Ilardo</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-2847</link>
		<dc:creator><![CDATA[Alessandro Ilardo]]></dc:creator>
		<pubDate>Sun, 28 Jun 2009 12:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-2847</guid>
		<description><![CDATA[Someone pointed out that the following method is not portable across different application servers using Hibernate.
What&#039;s your consideration? Which approach would you suggest if we want to obtain such object from the entity manager.
BTW, great article.

org.hibernate.Session session = (Session)manager.getDelegate();]]></description>
		<content:encoded><![CDATA[<p>Someone pointed out that the following method is not portable across different application servers using Hibernate.<br />
What&#8217;s your consideration? Which approach would you suggest if we want to obtain such object from the entity manager.<br />
BTW, great article.</p>
<p>org.hibernate.Session session = (Session)manager.getDelegate();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jing</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-2829</link>
		<dc:creator><![CDATA[Jing]]></dc:creator>
		<pubDate>Mon, 15 Jun 2009 08:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-2829</guid>
		<description><![CDATA[Bill, thanks for the post, it&#039;s quite helpful! I am wonder if Jboss has a way to support multiple persist unit WITHOUT Seam? such as has multiple data source in oracle-ds.xml, and map to persistence.xml as multiple , I guess need , and use EntityManager em =  (EntityManager) context.lookup(MyEntityManger);

I tried that, but only got the first manager in the list, do I have to use Seam and component.xml?
Can you post the implementation if there is a way?

Thanks]]></description>
		<content:encoded><![CDATA[<p>Bill, thanks for the post, it&#8217;s quite helpful! I am wonder if Jboss has a way to support multiple persist unit WITHOUT Seam? such as has multiple data source in oracle-ds.xml, and map to persistence.xml as multiple , I guess need , and use EntityManager em =  (EntityManager) context.lookup(MyEntityManger);</p>
<p>I tried that, but only got the first manager in the list, do I have to use Seam and component.xml?<br />
Can you post the implementation if there is a way?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://bill.burkecentral.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-1835</link>
		<dc:creator><![CDATA[Ray]]></dc:creator>
		<pubDate>Sun, 16 Mar 2008 11:28:43 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/2007/07/06/co-existence-with-hibernate-jpa-and-ejb3/#comment-1835</guid>
		<description><![CDATA[Thanks for that info Bill, I&#039;m liking Hibernate over JPA already :o)]]></description>
		<content:encoded><![CDATA[<p>Thanks for that info Bill, I&#8217;m liking Hibernate over JPA already <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
</channel>
</rss>

