﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-Yi's Home-文章分类-Java</title><link>http://www.blogjava.net/yiyi7817/category/40380.html</link><description>Java Researcher</description><language>zh-cn</language><lastBuildDate>Sun, 21 Jun 2009 13:35:14 GMT</lastBuildDate><pubDate>Sun, 21 Jun 2009 13:35:14 GMT</pubDate><ttl>60</ttl><item><title>SECA 所含知识体系 English</title><link>http://www.blogjava.net/yiyi7817/articles/283476.html</link><dc:creator>Yi Han</dc:creator><author>Yi Han</author><pubDate>Sun, 21 Jun 2009 11:00:00 GMT</pubDate><guid>http://www.blogjava.net/yiyi7817/articles/283476.html</guid><wfw:comment>http://www.blogjava.net/yiyi7817/comments/283476.html</wfw:comment><comments>http://www.blogjava.net/yiyi7817/articles/283476.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yiyi7817/comments/commentRss/283476.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yiyi7817/services/trackbacks/283476.html</trackback:ping><description><![CDATA[Section 1: Application Design Concepts and Principles 
 

 Explain the main advantages of an object-oriented approach to
system design including the effect of encapsulation, inheritance, and
use of interfaces on architectural characteristics.Describe how the principle of "separation of concerns" has been
applied to the main system tiers of a Java Platform, Enterprise Edition
application. Tiers include client (both GUI and web), web (web
container), business (EJB container), integration, and resource tiers.Describe how the principle of "separation of concerns" has been
applied to the layers of a Java EE application. Layers include
application, virtual platform (component APIs), application
infrastructure (containers), enterprise services (operating system and
virtualization), compute and storage, and the networking infrastructure
layers. 
 
  Section 2: Common Architectures 
 

 Explain the advantages and disadvantages of two-tier architectures
when examined under the following topics: scalability, maintainability,
reliability, availability, extensibility, performance, manageability,
and security.Explain the advantages and disadvantages of three-tier
architectures when examined under the following topics: scalability,
maintainability, reliability, availability, extensibility, performance,
manageability, and securityExplain the advantages and disadvantages of multi-tier
architectures when examined under the following topics: scalability,
maintainability, reliability, availability, extensibility, performance,
manageability, and security.Explain the benefits and drawbacks of rich clients and browser-based clients as deployed in a typical Java EE application.Explain appropriate and inappropriate uses for web services in the Java EE platform 
 
  Section 3: Integration and Messaging 
 

 Explain possible approaches for communicating with an external
system from a Java EE technology-based system given an outline
description of those systems and outline the benefits and drawbacks of
each approach.Explain typical uses of web services and XML over HTTP as mechanisms to integrate distinct software components.Explain how JCA and JMS are used to integrate distinct software components as part of an overall Java EE application. 
 
  Section 4: Business Tier Technologies 
 

 Explain and contrast uses for entity beans, entity classes,
stateful and stateless session beans, and message-driven beans, and
understand the advantages and disadvantages of each type.Explain and contrast the following persistence strategies:
container-managed persistence (CMP) BMP, JDO, JPA, ORM and using DAOs
(Data Access Objects) and direct JDBC technology-based persistence
under the following headings: ease of development, performance,
scalability, extensibility, and security.Explain how Java EE supports the deployment of server-side
components implemented as web services and the advantages and
disadvantages of adopting such an approach.Explain the benefits of the EJB 3 development model over previous
EJB generations for ease of development including how the EJB container
simplifies EJB development. 
 
  Section 5: Web Tier Technologies 
 

 State the benefits and drawbacks of adopting a web framework in designing a Java EE applicationExplain standard uses for JSP pages and servlets in a typical Java EE application.Explain standard uses for JavaServer Faces components in a typical Java EE application.Given a system requirements definition, explain and justify your
rationale for choosing a web-centric or EJB-centric implementation to
solve the requirements. Web-centric means that you are providing a
solution that does not use EJB components. EJB-centric solution will
require an application server that supports EJB components. 
 
  Section 6: Applicability of Java EE Technology 
 

 Given a specified business problem, design a modular solution that solves the problem using Java EE.Explain how the Java EE platform enables service oriented architecture (SOA) -based applications.Explain how you would design a Java EE application to repeatedly
measure critical non-functional requirements and outline a standard
process with specific strategies to refactor that application to
improve on the results of the measurements. 
 
  Section 7: Patterns 
 

 From a list, select the most appropriate pattern for a given
scenario. Patterns are limited to those documented in the book - Alur,
Crupi and Malks (2003). Core J2EE Patterns: Best Practices and Design
Strategies 2nd Edition and named using the names given in that book.From a list, select the most appropriate pattern for a given
scenario. Patterns are limited to those documented in the book - Gamma,
Erich; Richard Helm, Ralph Johnson, and John Vlissides (1995). Design
Patterns: Elements of Reusable Object-Oriented Software and are named
using the names given in that book.From a list, select the benefits and drawbacks of a pattern drawn
from the book - Gamma, Erich; Richard Helm, Ralph Johnson, and John
Vlissides (1995). Design Patterns: Elements of Reusable Object-Oriented
Software.From a list, select the benefits and drawbacks of a specified Core
J2EE pattern drawn from the book &#8211; Alur, Crupi and Malks (2003). Core
J2EE Patterns: Best Practices and Design Strategies 2nd Edition. 
 
  Section 8: Security 
 

 Explain the client-side security model for the Java SE environment, including the Web Start and applet deployment modes.Given an architectural system specification, select appropriate
locations for implementation of specified security features, and select
suitable technologies for implementation of those featuresIdentify and classify potential threats to a system and describe how a given architecture will address the threats.Describe the commonly used declarative and programmatic methods
used to secure applications built on the Java EE platform, for example
use of deployment descriptors and JAAS.<img src ="http://www.blogjava.net/yiyi7817/aggbug/283476.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yiyi7817/" target="_blank">Yi Han</a> 2009-06-21 19:00 <a href="http://www.blogjava.net/yiyi7817/articles/283476.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSR 314: JavaServer Faces 2.0</title><link>http://www.blogjava.net/yiyi7817/articles/283387.html</link><dc:creator>Yi Han</dc:creator><author>Yi Han</author><pubDate>Sat, 20 Jun 2009 10:35:00 GMT</pubDate><guid>http://www.blogjava.net/yiyi7817/articles/283387.html</guid><wfw:comment>http://www.blogjava.net/yiyi7817/comments/283387.html</wfw:comment><comments>http://www.blogjava.net/yiyi7817/articles/283387.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yiyi7817/comments/commentRss/283387.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yiyi7817/services/trackbacks/283387.html</trackback:ping><description><![CDATA[<span style="padding: 10px; display: block;"><strong>Status: </strong>In Progress<br />
<strong>	JCP version in use: </strong><a href="http://jcp.org/procedures/jcp2"> 2.7</a><br />
<strong>Java Specification Participation Agreement version in use:</strong> 2.0<br />
<br />
<br />
<strong>Description</strong>:<br />
This JSR is an update to the 1.2 version of the JavaServer Faces
specification. This is the first major revision of the JavaServer Faces
specification since JSR 127. <br />
<br />
<!-- ********************************************** -->
<!-- JSR Comments Email excluding JSR 900 and up   -->
<!-- ********************************************** -->
<strong> Please direct comments on this JSR to: </strong> <a href="http://wiki.jcp.org/boards/index.php?b=jsr-314-public">jsr-314-public</a><br />
<br />
</span>
<table class="tbl" width="100%" cellpadding="4" cellspacing="1">
    <tbody>
        <tr valign="top">
            <td class="bdtl">Stage</td>
            <td class="bdtl">Access</td>
            <td class="bdtl">Start</td>
            <td class="bdtl">Finish</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Final Approval Ballot </td>
            <td><a href="http://jcp.org/en/jsr/results?id=4939">View results</a></td>
            <td>12 May, 2009</td>
            <td>26 May, 2009</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Proposed Final Draft </td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/pfd/jsr314/index.html">Download page</a></td>
            <td>03 Apr, 2009</td>
            <td>&nbsp;</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Public Review Ballot </td>
            <td><a href="http://jcp.org/en/jsr/results?id=4774">View results</a></td>
            <td>06 Jan, 2009</td>
            <td>12 Jan, 2009</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Public Review </td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/pr/jsr314/index.html">Download page</a></td>
            <td>26 Nov, 2008</td>
            <td>12 Jan, 2009</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Early Draft Review  2</td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/edr/jsr314/index2.html">Download page</a></td>
            <td>16 Sep, 2008</td>
            <td>16 Oct, 2008</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Early Draft Review </td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/edr/jsr314/index2.html">Download page</a></td>
            <td>02 Jun, 2008</td>
            <td>02 Jul, 2008</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Expert Group Formation </td>
            <td>&nbsp;</td>
            <td>05 Jun, 2007</td>
            <td>&nbsp;</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>JSR Review Ballot </td>
            <td><a href="http://jcp.org/en/jsr/results?id=4254">View results</a></td>
            <td>22 May, 2007</td>
            <td>04 Jun, 2007</td>
        </tr>
    </tbody>
</table>
<br />
<span style="padding: 10px; display: block;"><br />
</span>
<img src ="http://www.blogjava.net/yiyi7817/aggbug/283387.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yiyi7817/" target="_blank">Yi Han</a> 2009-06-20 18:35 <a href="http://www.blogjava.net/yiyi7817/articles/283387.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSR 318: Enterprise JavaBeansTM 3.1</title><link>http://www.blogjava.net/yiyi7817/articles/283386.html</link><dc:creator>Yi Han</dc:creator><author>Yi Han</author><pubDate>Sat, 20 Jun 2009 10:34:00 GMT</pubDate><guid>http://www.blogjava.net/yiyi7817/articles/283386.html</guid><wfw:comment>http://www.blogjava.net/yiyi7817/comments/283386.html</wfw:comment><comments>http://www.blogjava.net/yiyi7817/articles/283386.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yiyi7817/comments/commentRss/283386.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yiyi7817/services/trackbacks/283386.html</trackback:ping><description><![CDATA[<span style="padding: 10px; display: block;"><strong>Status: </strong>In Progress<br />
<strong>	JCP version in use: </strong><a href="http://jcp.org/procedures/jcp2"> 2.7</a><br />
<strong>Java Specification Participation Agreement version in use:</strong> 2.0<br />
<br />
<br />
<strong>Description</strong>:<br />
Enterprise JavaBeans is an architecture for the development and deployment of component-based business applications.
<br />
<br />
<!-- ********************************************** -->
<!-- JSR Comments Email excluding JSR 900 and up   -->
<!-- ********************************************** -->
<strong> Please direct comments on this JSR to: </strong> <a href="http://wiki.jcp.org/boards/index.php?b=jsr-318-public">jsr-318-public</a><br />
<br />
</span><br />
<!-- ********************************************** -->
<!-- JSR Status information                        -->
<!-- ********************************************** -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td id="centercontent" valign="top">
            <br />
            </td>
        </tr>
        <tr>
            <td>
            <!--
            <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#f1f1f6" class="box_fill">
                -->
                <table class="tbl" width="100%" cellpadding="4" cellspacing="1">
                    <tbody>
                        <tr valign="top">
                            <td class="bdtl">Stage</td>
                            <td class="bdtl">Access</td>
                            <td class="bdtl">Start</td>
                            <td class="bdtl">Finish</td>
                        </tr>
                        <tr class="bgw" valign="top">
                            <td>Proposed Final Draft </td>
                            <td><a href="http://jcp.org/aboutJava/communityprocess/pfd/jsr318/index.html">Download page</a></td>
                            <td>06 Mar, 2009</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr class="bgw" valign="top">
                            <td>Public Review Ballot </td>
                            <td><a href="http://jcp.org/en/jsr/results?id=4728">View results</a></td>
                            <td>28 Oct, 2008</td>
                            <td>03 Nov, 2008</td>
                        </tr>
                        <tr class="bgw" valign="top">
                            <td>Public Review </td>
                            <td><a href="http://jcp.org/aboutJava/communityprocess/pr/jsr318/index.html">Download page</a></td>
                            <td>01 Oct, 2008</td>
                            <td>03 Nov, 2008</td>
                        </tr>
                        <tr class="bgw" valign="top">
                            <td>Early Draft Review </td>
                            <td><a href="http://jcp.org/aboutJava/communityprocess/edr/jsr318/index.html">Download page</a></td>
                            <td>29 Feb, 2008</td>
                            <td>30 Mar, 2008</td>
                        </tr>
                        <tr class="bgw" valign="top">
                            <td>Expert Group Formation </td>
                            <td>&nbsp;</td>
                            <td>01 Aug, 2007</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr class="bgw" valign="top">
                            <td>JSR Review Ballot </td>
                            <td><a href="http://jcp.org/en/jsr/results?id=4328">View results</a></td>
                            <td>17 Jul, 2007</td>
                            <td>30 Jul, 2007</td>
                        </tr>
                    </tbody>
                </table>
                </td>
            </tr>
        </tbody>
    </table>
    <br />
    <span style="padding: 10px; display: block;"><br />
    <br />
    </span>
<img src ="http://www.blogjava.net/yiyi7817/aggbug/283386.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yiyi7817/" target="_blank">Yi Han</a> 2009-06-20 18:34 <a href="http://www.blogjava.net/yiyi7817/articles/283386.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JSR 317: JavaTM Persistence 2.0 (JPA2.0)</title><link>http://www.blogjava.net/yiyi7817/articles/283384.html</link><dc:creator>Yi Han</dc:creator><author>Yi Han</author><pubDate>Sat, 20 Jun 2009 10:31:00 GMT</pubDate><guid>http://www.blogjava.net/yiyi7817/articles/283384.html</guid><wfw:comment>http://www.blogjava.net/yiyi7817/comments/283384.html</wfw:comment><comments>http://www.blogjava.net/yiyi7817/articles/283384.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yiyi7817/comments/commentRss/283384.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yiyi7817/services/trackbacks/283384.html</trackback:ping><description><![CDATA[<span style="padding: 10px; display: block;"><strong>Status: </strong>In Progress<br />
<strong>	JCP version in use: </strong><a href="http://jcp.org/procedures/jcp2"> 2.7</a><br />
<strong>Java Specification Participation Agreement version in use:</strong> 2.0<br />
<br />
<br />
<strong>Description</strong>:<br />
The Java Persistence API is the Java API for the management of
persistence and object/relational mapping for Java EE and Java SE
environments. <br />
<br />
<!-- ********************************************** -->
<!-- JSR Comments Email excluding JSR 900 and up   -->
<!-- ********************************************** -->
<strong> Please direct comments on this JSR to: </strong> <a href="http://wiki.jcp.org/boards/index.php?b=jsr-317-public">jsr-317-public</a><br />
<br />
</span>
<table class="tbl" width="100%" cellpadding="4" cellspacing="1">
    <tbody>
        <tr valign="top">
            <td class="bdtl">Stage</td>
            <td class="bdtl">Access</td>
            <td class="bdtl">Start</td>
            <td class="bdtl">Finish</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Proposed Final Draft </td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/pfd/jsr317/index.html">Download page</a></td>
            <td>26 Mar, 2009</td>
            <td>&nbsp;</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Public Review Ballot </td>
            <td><a href="http://jcp.org/en/jsr/results?id=4757">View results</a></td>
            <td>09 Dec, 2008</td>
            <td>15 Dec, 2008</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Public Review </td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/pr/jsr317/index.html">Download page</a></td>
            <td>14 Nov, 2008</td>
            <td>15 Dec, 2008</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Early Draft Review </td>
            <td><a href="http://jcp.org/aboutJava/communityprocess/edr/jsr317/index.html">Download page</a></td>
            <td>02 May, 2008</td>
            <td>01 Jun, 2008</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>Expert Group Formation </td>
            <td>&nbsp;</td>
            <td>01 Aug, 2007</td>
            <td>&nbsp;</td>
        </tr>
        <tr class="bgw" valign="top">
            <td>JSR Review Ballot </td>
            <td><a href="http://jcp.org/en/jsr/results?id=4329">View results</a></td>
            <td>17 Jul, 2007</td>
            <td>30 Jul, 2007</td>
        </tr>
    </tbody>
</table>
<br />
<h4>2.18 Please provide a description of the business terms for the
Specification, RI and TCK that will apply when this JSR is final.</h4>
<p>Pursuant to Section 2.2.1 of the Java Community Process version 2.6,
the following is a summary of Sun's anticipated principal license terms
and conditions for the JSR, Java Persistence API, version 2.0. The
business terms for the Java Persistence API, version 2.0 have not
changed from those for the Java Persistence API, version 1.0 and they
impose no new restrictions.
</p>
<p>In addition to delivering the Reference Implementation (RI) and TCK
pursuant to existing contractual obligations, if and where applicable,
Sun terms will be: </p>
<p>
The Java Persistence API, version 2.0 Technology Compatibility Kit
(TCK) will be available both as a standalone TCK and included as part
of the Java EE 6 Compatibility Test Suite (CTS). The Java Persistence
API, version 2.0 Reference Implementation (RI) will be available both
separately and as part of the Java EE 6 RI.
</p>
<h5>
Non-Commercial Use
</h5>
<p>As required by the Java Specification Participation Agreement
(JSPA), the Java Persistence API, version 2.0 TCK will be licensed at
no charge without support to qualified not-for-profit entities. Such
qualification will be verified by the Compatibility Testing Scholarship
Program. Support may also be provided at no charge with approval of the
scholarship board. For more information, please refer
to: <a href="http://java.sun.com/scholarship/">http://java.sun.com/scholarship/</a>.
</p>
<p>
The RI will be available at no cost under an open source license.
</p>
<h5>
Commercial Use
</h5>
<p>
Covers all use that doesn't fall under "Non-Commercial Use" above.
</p>
<p>
Java Persistence API, version 2.0 Java Licensee Engineering (JLE)
support, available for a fee not to exceed $50k, is required for
commercial use for each Marketed Product* which implements the Java
Persistence API, version 2.0 specification. TCK JLE support includes
access, updates and upgrades to the TCK at no additional charge.
</p>
<p>Java Persistence API, version 2.0 RI and TCK JLE and marketing
support will be made available at no extra charge to Java EE licensees
under their Java EE business terms.
</p>
<p>
The RI will also be made available at no cost under an open source license for commercial use.
</p>
<p>
For purposes of these terms:
</p>
<p>Marketed Product is intended to describe a licensee's product that
has its own differentiation and marketing collateral. It may comprise
one price list entry, or in some cases multiple entries (for example,
to account for different localizations or delivery packaging). By way
of example, in terms of Sun's product line we wouldn't consider Sun's
Java Application Server to be a Marketed Product, but Sun's Java
Application Server Platform Edition, Standard Edition, and Enterprise
Edition are 3 Marketed Products. Sun's Java Studio Enterprise is a
fourth Marketed Product.</p>
<img src ="http://www.blogjava.net/yiyi7817/aggbug/283384.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yiyi7817/" target="_blank">Yi Han</a> 2009-06-20 18:31 <a href="http://www.blogjava.net/yiyi7817/articles/283384.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java EE 6开发三剑客:JSF 2.0、EJB 3.1和JPA 2.0</title><link>http://www.blogjava.net/yiyi7817/articles/283382.html</link><dc:creator>Yi Han</dc:creator><author>Yi Han</author><pubDate>Sat, 20 Jun 2009 10:25:00 GMT</pubDate><guid>http://www.blogjava.net/yiyi7817/articles/283382.html</guid><wfw:comment>http://www.blogjava.net/yiyi7817/comments/283382.html</wfw:comment><comments>http://www.blogjava.net/yiyi7817/articles/283382.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yiyi7817/comments/commentRss/283382.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yiyi7817/services/trackbacks/283382.html</trackback:ping><description><![CDATA[JSF 2.0 尽管 Java 在展示层框架上竞争的非常激烈，但 JSF 仍然固守着自己的领地。虽然有很多关于 JSF
的易用性和健壮性的质疑声，但 JSF2.0 就是为正面解决这些问题而提出来的，它的易用，创新以及可扩展的特性包括： JSF 正式将
Facelets 作为视图技术。也许你不熟悉 Facelets ，它也是一个与 JSF 结合默契的开源视图技术。因此，与 JSP 不同的是
Facelets 更适合 JSF 的组件模型以及生命周期的概念。当然，也许 Facelets 最强大的特性就是在用 mark-up 来代替
java 代码创建自定义的组件。创建自定义组件的复杂度也许是开发者对 JSF 抱怨最多的地方了。 JSF2.0 通过使用标签为 Java EE
5 提供了基于 annotation 驱动的配置特性（比如说可以使用 @ManagedBean 和 @ManagedProperty
）。这也意味着可以一定程度上的减少 faces-config.xml 文件的大小，不过像在 navigation 这些结点的配置在 XML
文件还是不能少。 JSF2.0 为适应 AJAX 而改变了自身的生命周期，只需要局部页面的交由 AJAX 事件处理。这个特性使得
JSF+AJAX 的组合更加自然。 JSF2.0 现在内置了优秀的资源处理器。对 images ， JavaScript 文件以及 CSS
样式等都表现出众。它可以对通过逻辑名称，资源分组以及版本等方式来更好的引用资源。 除上述特性外， JSF2.0
还包括许多其它方便的改变。比如说支持事件，支持 RAILS_ENV 的开发风格 （ 就是 ROR）
，支持对标准组件集进行扩展。你可以通过下面的链接来看看 JSF2.0
的公开草案：http://jcp.org/en/jsr/detail？id=314 EJB 3.1 EJB 在 Java EE 5
就已经经历过了非常大的改动。也许看似不可能，但实际上 EJB3.0
还是在社区中广泛得到认可，并且采纳它的人也在不断增长。而这一切也许是因为我们过度的认为需要怎么怎么简化 Java EE 5
才取得这样的成绩。比如说，对 JBoss Seam 的兴趣和 GlassFish 的热情都是重要的关键因素。 EJB3.1
的目标就是在增加业务组件时，继续让 EJB 变得尽可能简单。下面是对 EJB3.1 特性的高度概括： 原本需要甚至实现 Session
Beans 的业务接口变得可选了，不再强迫要求实现。在使用 Session Beans+JSF+WebBeans 的场景下尤其有用。
EJB3.1 增加了 Singleton Beans 的概念。因为人们更倾向于管理共享的应用程序状态，需要保证是完全线程安全的模型。此外，
EJB3.1 新增的声明式的并发控制也更加灵活。 EJB3.1 一个可圈可点的的强大特性就是支持 cron 风格的 scheduling
.除目前基于 timer API 的调度计时器外，声明式和编程式的 cron 风格的 scheduling API 也加入了进来。
另一个强大的特性就是可以通过使用 @Asynchronous 标注来对 Session Bean 的方法进行异步调用。你甚至还通过它来控制异步
EJB 方法从而返回一个 java.util.concurrent.Future 对象。 EJB3.1 Lite 概念的逐渐引入形成了一个
EJB API 的子集，并在 Web Profile 中得到应用。只不过 EJB Lite
包含了像事务处理和安全这样的特性，而那些消息机制，远程调用以及 scheduling 等非必须的自然没有必要加入其中。除上述列表所述特性外，
EJB3.1 的特性还包括：括直接将 EJB 打包成 war 文件，可运行在 embedded 的容器中便于 Java SE 环境进行
JUnit 测试，使用统一的标准化全局 JNDI 命名方式。 EJB3.1 的公开草案可从以下链接获得：
http://jcp.org/en/jsr/detail？id=318 JPA 2.0 到 Java EE 6 的时候， JPA 已经彻底从
EJB 中分离，形成自己的体系 （EJB3.0 已经将 JPA 分离出去了 ） . JPA
的成功是毫无疑问的。它广泛得到社区的采纳和一流供应商的支持。本来我们担心 EJB2.* 的 Enity Beans 垮台可能无法让 Java
EE 再次引领持久层的标准，一个重要成功的因素就是 Gaving King 和 JBoss 社区毫不含糊的支持。 JPA2.0
的目标就是要在这次成功的基础上再接再厉，填补更多的空白，再创多的创新： JPA2.0 加入了大量必须的 ORM
映射增强特性，包括：支持通过使用 @ElementCollection 标注来增强 collections， maps 和 lists（
这里不是指实体之间的关联关系 ） 集合，支持 map 的单向 one-to-many 关联 （JPA1.0 只允许双向 one-to-many
关联 ） . EntityManager 和 Query API 都得到改进。比如说，现在可以从结果集中直接取得第一条记录 （JPA1.0
只允许从一个 unique 结果集中反回单个记录 ） ，指定 query 结果集的最大值，访问各个供应商的底层实体对象 manager 或
query ，最后就是加入悲观锁 （JPA1.0 只支持乐观锁 ） . JPQL 也提供类似于 SQL 的 CASE ， NULLIF ，
COALESCE 等函数 . JPA2.0 应广大开发者要求增加了 Criteria API .要是你对 Hibernate 或
TopLink 的 Criteria API 不熟悉的话，可以将它想像成一个以 Java 为中心的面向对象，线程安全并可以与 JPQL
划上等号的一组 API .这组 API 适合于编写复杂的动态查询语句，还可避免解析 JPQL 语句时，所抛出的运行期异常。 更完整的
JAP2.0 特性还包括：标准的二级缓存，标准的 JDBC properties ，指定超时时间等等。你可以随时通过下面的 JSR
站点看看关于 JPA2.0 公开草案的更多细节： http://jcp.org/en/jsr/detail？id=317
<img src ="http://www.blogjava.net/yiyi7817/aggbug/283382.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yiyi7817/" target="_blank">Yi Han</a> 2009-06-20 18:25 <a href="http://www.blogjava.net/yiyi7817/articles/283382.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>