<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - ejb tag</title>
  <link>http://www.weiqigao.com/blog/tags/ejb/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>Java News Brief (JNB): EJB3 Persistence Jumpstart</title>
    <link>http://www.weiqigao.com/blog/2006/04/14/java_news_brief_jnb_ejb3_persistence_jumpstart.html</link>
    
      
        <description>
          &lt;p&gt;As Eric Burke has already &lt;a href= &#034;http://stuffthathappens.com/blog/2006/04/13/ejb3-persistence-jumpstart/&#034; &gt;mentioned&lt;/a&gt;, this month&#039;s &lt;a href= &#034;http://www.ociweb.com/jnb/&#034; &gt;OCI Java News Brief (JNB)&lt;/a&gt; features &lt;a href= &#034;http://javajeff.blogspot.com/&#034; &gt;Jeff Brown&lt;/a&gt;&#039;s very approachable introduction to JSR-220&amp;mdash;&lt;a href= &#034;http://www.ociweb.com/jnb/jnbApr2006.html&#034; &gt;EJB3 Persistence Jumpstart&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href= &#034;&#034; &gt;Jeff Brown&lt;/a&gt;: The examples covered here really only begin to cover the capabilities defined by the EJB 3 Persistence specification. The hope is that this information will serve as a practical guide to help developers get started with the API. The best way to get started with the API is to setup a development environment that will allow examples like those discussed in this article to be executed and experimented with. Developers will find that compared with writing JDBC code or even working with other object-to-relational mapping solutions, the EJB 3 Persistence API is very straightforward and easy to work with.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;As with all JNB articles, this one gently leads you into the EJB3 code examples by first providing you with the necessary information to set up your development environment.  Go ahead, print it out, follow along, and try out the examples.&lt;/p&gt;

&lt;p&gt;&#034;Aha, that what they meant when they said EJB3 is easy!&#034;  That&#039;s my reaction after reading this article.  I hope it will be yours too.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2006/04/14/java_news_brief_jnb_ejb3_persistence_jumpstart.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2006/04/14/java_news_brief_jnb_ejb3_persistence_jumpstart.html</guid>
    <pubDate>Fri, 14 Apr 2006 16:14:17 GMT</pubDate>
  </item>
  
  <item>
    <title>EJB 3.0 At The JUG</title>
    <link>http://www.weiqigao.com/blog/2005/11/11/ejb_3_0_at_the_jug.html</link>
    
      
        <description>
          &lt;p&gt;Yesterday&#039;s &lt;a href= &#034;http://www.ociweb.com/javasig/knowledgebase/2005-11/&#034; &gt;EJB 3.0 talk&lt;/a&gt; at the &lt;a href= &#034;http://www.ociweb.com/javasig/&#034; &gt;St. Louis Java Users Group&lt;/a&gt; is another one of the more livelier presentations, with a lot of audience interactions.&lt;/p&gt;

&lt;p&gt;Raj Patel from &lt;a href= &#034;http://harpoontech.com/&#034; &gt;Harpoon Technologies&lt;/a&gt; began the talk with &#034;I&#039;ve done a lot of Hibernate work, but I&#039;ve never done any EJB 2.1s.  Those who did probably know how painful it was.  EJB 3.0 is going to change that.&#034;&lt;/p&gt;

&lt;p&gt;Having not read the EJB 3.0 specs myself (I&#039;m waiting for the final version), I liked what I heard.  I have seen earlier EJB 3.0 introductions on Java.net and elsewhere, but none of them registered.  Again the open Eclipse project with live code helped.&lt;/p&gt;

&lt;p&gt;The overwhelming impression I got from yesterday:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;EJB 3.0 is very close to Hibernate&lt;/li&gt;
&lt;li&gt;EJB 3.0 annotations are orders of magnitudes simpler than EJB 2.1 deployment descriptors&lt;/li&gt;
&lt;li&gt;The EJB 2.1 concepts (stateless session beans, stateful session beans, entity beans, message driven beans, activation, passivation, declarative transaction management, declarative security management) all carry over to EJB 3.0.  It&#039;s the syntax that is simplified&lt;/li&gt;
&lt;li&gt;EJB 3.0 does dependency injection with annotations&lt;/li&gt;
&lt;li&gt;EJB 3.0 does bean level method invocation interception (AOP) with annotations&lt;/li&gt;
&lt;li&gt;EJBQL is similar to HQL (Hibernate query language)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other observations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hibernate will evolve and be a superset of of EJB 3.0 [&lt;b&gt;Update&lt;/b&gt;: See &lt;a href= &#034;http://ericburke.com/blog/2005/11/12/63&#034; &gt;Eric Burke&#039;s correction&lt;/a&gt;]&lt;/li&gt;
&lt;li&gt;EJB 3.0 offers some features that shadow the Spring Framework, but not enough to replace it&lt;/li&gt;
&lt;li&gt;The &lt;a href= &#034;http://www.jboss.com/products/jbossmc&#034; &gt;embeddable JBoss EJB 3.0 container&lt;/a&gt; is cool&lt;/li&gt;
&lt;li&gt;Raj says JDO is dead, JDO vendors are going EJB 3.0 (Solarmetric is bought by BEA.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I guess a more pressing question is this: &#034;Should I adopt EJB 3.0?&#034;&lt;/p&gt;

&lt;p&gt;And I think the answer is &#034;It depends.&#034;  If you&#039;ve been following the open source developments pretty closely and are using Spring and Hibernate, there is no need to hurry.  If you&#039;ve stuck with the party line and are still doing EJB 2.1 or even 2.0, EJB 3.0 will look very attractive.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2005/11/11/ejb_3_0_at_the_jug.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2005/11/11/ejb_3_0_at_the_jug.html</guid>
    <pubDate>Fri, 11 Nov 2005 15:37:21 GMT</pubDate>
  </item>
  
  <item>
    <title>Things To Look Into</title>
    <link>http://www.weiqigao.com/blog/2005/09/22/things_to_look_into.html</link>
    
      
        <description>
          &lt;p&gt;Continuing my tradition of &lt;a href= &#034;http://www.weiqigao.com/blog/2003/09/11/things_to_look_into.html&#034; &gt;making a list&lt;/a&gt; of things that I &lt;a href= &#034;http://www.weiqigao.com/blog/2005/01/19/things_to_look_into.html&#034; &gt;ought to know&lt;/a&gt;.  Here&#039;s a few things that I think merits some deeper examination:&lt;/p&gt;

&lt;dl style=&#034;margin-left:3em&#034;&gt;
&lt;dt&gt;&lt;a href= &#034;http://www.jboss.com/products/seam&#034; &gt;JBoss Seam&lt;/a&gt; &lt;span style=&#034;font-family:monospace;color:red&#034;&gt;&lt;--JSF&amp;amp;EJB3 framework, no Springs, no Struts, just an app server and me&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;The announcement is &lt;a href= &#034;http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/09/19#seam&#034;
&gt;here&lt;/a&gt;.  The product page is &lt;a href= &#034;http://www.jboss.com/products/seam&#034; &gt;here&lt;/a&gt;.  The documentation is &lt;a href= &#034;http://docs.jboss.com/seam/reference/en/html/index.html&#034; &gt;here&lt;/a&gt;.  More info &lt;a href= &#034;http://blog.hibernate.org/cgi-bin/blosxom.cgi/2005/09/21#components&#034; &gt;here&lt;/a&gt;.  Accolades &lt;a href= &#034;http://raibledesigns.com/page/rd?anchor=seam&#034; &gt;here&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;a href= &#034;http://msdn.microsoft.com/netframework/future/linq/&#034; &gt;LINQ&lt;/a&gt; &lt;span style=&#034;font-family:monospace;color:red&#034;&gt;&lt;--Language INtegrated Query, sprinkle selects in C# code&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;The video is &lt;a href= &#034;http://channel9.msdn.com/showpost.aspx?postid=114680&#034; &gt;here&lt;/a&gt;.  The in depth coverage is &lt;a href= &#034;http://blogs.tedneward.com/2005/09/22/Language+Innovation+C+30+Explained.aspx&#034; &gt;here&lt;/a&gt;.  The debate is &lt;a href= &#034;http://sqljunkies.com/WebLog/ktegels/archive/2005/09/21/16855.aspx&#034; &gt;here&lt;/a&gt;, &lt;a href= &#034;http://weblogs.asp.net/pwilson/archive/2005/09/15/425281.aspx&#034; &gt;here&lt;/a&gt;, and &lt;a href= &#034;http://www.knowing.net/CommentView,guid,065ce6c6-2c40-4e9d-97ca-8099e21213f4.aspx&#034; &gt;here&lt;/a&gt;.  And of course the podcast is &lt;a href= &#034;http://weblog.infoworld.com/udell/2005/09/19.html&#034; &gt;here&lt;/a&gt; (actually &lt;a href= &#034;http://weblog.infoworld.com/udell/gems/ju_linq.mp3&#034; &gt;here&lt;/a&gt;.)&lt;/dd&gt;
&lt;/dl&gt;

&lt;p&gt;I should list more items, but I really couldn&#039;t find anything more that&#039;s worth writing about.  Indeed, nowadays when Java people meet, the conversation goes something like this: &#034;What&#039;s new in the Java world?&#034;  &#034;Nothing.  Everything is old news now&amp;mdash;AOP, Spring, Hibernate, etc.&#034;&lt;/p&gt;

&lt;p&gt;Don&#039;t make me learn Ruby! &lt;tt&gt;&amp;lt;scream/&gt;&lt;/tt&gt;&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2005/09/22/things_to_look_into.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2005/09/22/things_to_look_into.html</guid>
    <pubDate>Thu, 22 Sep 2005 05:06:27 GMT</pubDate>
  </item>
  
  </channel>
</rss>

