<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
EJB3 support in JBoss AS 7.0.0.Beta2
</h3>
<span style="margin-bottom: 10px;">
modified by <a href="http://community.jboss.org/people/smarlow">Scott Marlow</a> in <i>JBoss AS7 Development</i> - <a href="http://community.jboss.org/docs/DOC-16682">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p> This document outlines the EJB 3.x support that's currently available in JBoss AS 7.0.0.Beta2</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h3><span>Support for EJB 3.x session beans</span></h3><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h4><span>Annotation based support</span></h4><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h5><span>@Stateless, @Stateful, @Singleton : </span></h5><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>JBoss AS 7.0.0.Beta2 has support for annotation based session beans (i.e. @Stateless, @Stateful and @Singleton). A bean annotated with any of these session bean annotation will be picked up and processed appropriately.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h5><span>Local annotated views:</span></h5><p>     </p><ul><li level="1" type="ul"><p>@Local and @LocalBean : JBoss AS 7.0.0.Beta2 supports local business interface view and the no-interface view of session beans. </p></li></ul><p>     </p><ul><li level="1" type="ul"><p>@Remote view: Currently, there is <strong>no</strong> support for remote views (for example, exposed via @Remote). </p></li></ul><p>     </p><ul><li level="1" type="ul"><p>@RemoteHome and @LocalHome view: Furthermore, there is <strong>no</strong> support yet for EJB2.x views (via @LocalHome and @RemoteHome)</p></li></ul><p>     </p><h5><span>Tansaction management annotations:</span></h5><p>     </p><ul><li level="1" type="ul"><p>@TransactionManagement : JBoss AS 7.0.0.Beta2 supports both container managed transactions and bean managed transactions, configured through annotations. </p></li></ul><p>     </p><ul><li level="1" type="ul"><p>@TransactionAttribute : Various different transaction attributes (configured via @TransactionAttribute annotation) are also supported. Note that JBoss specific way of setting a transaction timeout through an annotation is <strong>not</strong> yet supported in this version.</p></li></ul><p>     </p><h5><span>Concurrency management annotations:</span></h5><p>     </p><ul><li level="1" type="ul"><p>@ConcurrencnyManagement : Both bean and container managed concurrency support for @Singleton beans is available in JBoss AS 7.0.0.Beta2.</p></li></ul><p>     </p><ul><li level="1" type="ul"><p>@Lock : Both READ and WRITE lock support is also available in JBoss AS 7.0.0.Beta2 </p></li></ul><p>     </p><ul><li level="1" type="ul"><p>@AccessTimeout : Support for configuring an access timeout through the @AccessTimeout annotation is also available in JBoss AS 7.0.0.Beta2.</p></li></ul><p>     </p><h5><span>Init on Startup for singleton beans:</span></h5><p>     </p><ul><li level="1" type="ul"><p>@Startup : Init-on-startup support for singleton beans, through the use of @Startup is available in JBoss AS 7.0.0.Beta2</p></li></ul><p>     </p><h5><span>Dependencies configuration for singleton beans:</span></h5><p>     </p><ul><li level="1" type="ul"><p>@DependsOn : Only a partial support is available for this annotation in JBoss AS 7.0.0.Beta2. The annotation is processed and appropriate dependencies are added between the singleton beans. This works fine against @Startup @Singleton beans. But for normal (lazy) @Singleton beans, the @DependsOn may not work as mandated by the spec. This will be fixed in later versions of JBoss AS 7.0.0.Beta2</p></li></ul><p>     </p><h5><span>Resource injection and EJB injection:</span></h5><p>     </p><ul><li level="1" type="ul"><p>@Resource and @EJB : These annotations are supported in JBoss AS 7.0.0.Beta2. These can be used in container managed components to inject the resources and EJBs respectively.</p></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h4><span>ejb-jar.xml deployment descriptor based support</span></h4><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><ul><li level="1" type="ul"><p>Support for session beans: JBoss AS 7.0.0.Beta2 allows you to configure your session beans through the use of ejb-jar.xml. All types of session beans (Stateless, Stateful and Singleton) are supported.</p></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><ul><li level="1" type="ul"><p>Transaction Management support: You can configure transaction management semantic through the use of ejb-jar.xml for your session beans. Both bean managed transactions and container managed transactions are supported.</p></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><ul><li level="1" type="ul"><p>Support for business views: Currently only business-local and local-bean views are supported through ejb-jar.xml for session beans.</p></li></ul><p>      </p><ul><li level="1" type="ul"><p>Support for interceptors: JBoss AS 7.0.0.Beta2 has support for interceptors of EJBs configured via ejb-jar.xml. However, explicit interceptor-ordering isn't yet supported.</p></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h4><span>Merged view of annotations and ejb-jar.xml for EJBs</span></h4><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Although there is an initial implementation available in JBoss AS 7.0.0.Beta2 for supporting partial deployment descriptor + partial annotation based EJBs, it's still in its early stages and isn't stable. Upcoming releases will have better support for a merged view of EJBs.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h3><span>Where to ask questions or report issues:</span></h3><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span>If you run into any issue while trying out any EJB3 application against JBoss AS 7, then please either report it in the user forums </span><a class="jive-link-external-small" href="http://community.jboss.org/en/jbossas?view=discussions" target="_blank">http://community.jboss.org/en/jbossas?view=discussions</a><span> or subscribe to the AS7 mailing list </span><a class="jive-link-external-small" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><span> and mail your question there.  </span></p><p>          </p><p>     </p><p>          </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-16682">going to Community</a></p>
        <p style="margin: 0;">Create a new document in JBoss AS7 Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2225">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>