Enterprise JavaBeans (EJB) 3.0

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
Books
  Tips
Tutorials
  

Articles:
  • EJB 3 Session Beans by Raghu R. Kodali, Jonathan R. Wetherbee, Peter Zadrozny   - [Clicks: 260]
    Look at the new and simplified EJB 3 model for developing session beans using standard Java language artifacts, such as Java classes and interfaces. You will also learn about session beans (stateless and stateful), including the differences between them and some general use cases for each and how each is used in 2-tier and 3-tier application architectures.
    http://www.developer.com/java/ejb/article.php/3650661 - Dec, 2006
  • Connecting to an EJB 3.0 Remote SessionBean from Tomcat by Wouter van Reeven   - [Clicks: 184]
    At home I have a few machines running several services that have my interest: an Apache HTTPD server, Tomcat 5.5 and Oracle XE. Both Apache and Tomcat run on a slow machine that is connected to my ADSL router, while the Oracle XE database runs on a more poweful machine. My "web server" is too old and slow to process large amounts of Entities quickly enough to get a web application that responds fast enough. Hence I decided to setup Glassfish on the faster database machine and have Tomcat connect to Glassfish. In order to do so, I had to connect to a Remote SessionBean running on the Glassfish server from a servlet or JSF managed bean running in Tomcat. It took a little while before I was able to put the pieces together, but I did it. This article tells you how.
    http://technology.amis.nl/blog/?p=1368 - Oct, 2006
  • Writing Performant EJB Beans in the Java EE 5 Platform (EJB 3.0) Using Annotations by Scott Oaks, Eileen Loh, Rahul Biswas   - [Clicks: 202]
    The Enterprise Java Beans (EJB) 3.0 specification vastly improves the simplicity of programming EJB beans and increases your productivity as a developer. This article shows you how to get the best performance out of the new EJB 3.0 programming model.
    http://java.sun.com/developer/technicalArticles/ebeans/ejb_30/ - Sep, 2006
  • Make the Right Decision with Our Side-by-Side Comparison of Spring and EJB 3.0, Part 2 by Rod Coffin   - [Clicks: 146]
    If you are you know what a hard decision it can be. Explore the similarities and differences between two of the most popular Java technologies today and learn key distinctions in making a technological decision between the two. Part 2 explores messaging, remoting, dependency injection, and more.
    http://www.devx.com/Java/Article/32447 - Sep, 2006
  • Make the Right Decision with Our Side-by-Side Comparison of Spring and EJB 3.0 by Rod Coffin   - [Clicks: 109]
    Are you trying to choose between Spring and EJB 3.0? If you are you know what a hard decision it can be. Explore the similarities and differences between two of the most popular Java technologies today and learn key distinctions in making a technological decision between the two.
    http://www.devx.com/Java/Article/32314 - Aug, 2006
  • Grails + EJB Domain Models Step-by-Step by Jason Rudolph   - [Clicks: 56]
    Grails could bring Ruby on Rails style productivity to the Java platform, built on the Groovy language and fully integrated with Java. In this tutorial, Jason Rudolph shows how to use Grails to quickly build a functional website around an existing EJB 3 entity bean domain model with very little code.
    [Includes source code]
    http://www.infoq.com/articles/grails-ejb-tutorial - Aug, 2006
  • Migrating EJB 2.x applications to EJB 3.0 by Shashank Tiwari   - [Clicks: 100]
    Enterprise JavaBeans 3.0 is a substantial change from the earlier specifications in terms of both the change in enterprise bean implementation models and in the bean location and call paradigm. How can you migrate legacy EJB code to utilize improvements in the new specification? This article discusses the strategies, both from a design and implementation perspective, for migrating existing EJB applications to the new specification.
    http://www.javaworld.com/javaworld/jw-08-2006/jw-0814-ejb.html - Aug, 2006
  • EJB 3 Glossary by Oliver Ihns, Stefan M. Heldt   - [Clicks: 84]
    Our EJB (3.0) glossary demystifies and explains buzzwords like Inversion of Control (IoC), Configuration by Exception, POJO, POJI, Dependency Injection etc., which circulate in eZines and print media and explains what is really behind these buzzwords. This glossary is an ongoing work in progress. Updates will continue to be made to it. The authors also maintain a German version.
    http://www.infoq.com/articles/EJB-Glossary - Jul, 2006
  • Refactoring the EJB APIs: Persistence and Dependency Injection by Frank Sommers   - [Clicks: 66]
    Linda DeMichiel is Sun Microsystems' specification lead and chief architect for Enterprise JavaBeans 3.0 and the Java Persistence API (JSR 220). In the concluding segment of this two-part interview, she discusses the role of interceptors, dependency injection, the Java Persistence API, and how EJB 3 relates to other Web frameworks.
    http://www.artima.com/lejava/articles/refactoring_ejb_jpa.html - Jun, 2006
  • Refactoring the EJB APIs by Frank Sommers   - [Clicks: 36]
    Linda DeMichiel is Sun Microsystems' specification lead and chief architect for Enterprise JavaBeans 3.0 and the Java Persistence API (JSR 220). In the first segment of this two-part interview, she discusses how the EJB 3 APIs simplify development, how to choose between annotations and XML in configuring an EJB environment, and suggests a practical way to learn about EJB 3.
    http://www.artima.com/lejava/articles/refactoring_ejb.html - Jun, 2006
  • How-To : Using EJB 3.0 Session beans in Spring Beans by Debu Panda   - [Clicks: 363]
    This example application demonstrates using EJB 3.0 Session beans from Spring Beans. This sample uses a EJB 3.0 Session bean (EmployeeFacade EJB) that uses JPA to persist an entity. The EJB 3.0 Session bean is injected into a Spring bean (EmployeeFacadeServiceBean). The web module uses the Spring bean to persist the entity instance. The application uses declarative transaction with EJB 3.0. For simplicity we have used a Servlet (InsertServlet) as a controller and it uses EmployeeServiceFacadeBean .
    http://www.oracle.com/technology/tech/java/oc4j/10131/how_to/how-to-ejb30-spring/doc/how-to-ejb30-spring.html - Jun, 2006
  • Standardizing Java Persistence with the EJB3 Java Persistence API by Debu Panda   - [Clicks: 114]
    Dissatisfaction with entity beans as an "official" means of persisting Java objects to databases has prompted a number of "unofficial" approaches, such as the very popular Hibernate. Now EJB3 seems to have learned its lesson: its new Java Persistence API allows you to persist plain old Java objects (POJOs) with a minimum of fuss and just a few annotations. Debu Panda looks at how to put this new standard to work.
    http://www.onjava.com/pub/a/onjava/2006/05/17/standardizing-with-ejb3-java-persistence-api.html - May, 2006
  • Moving On: Migrating from EJB 2.1 to EJB 3.0 by Deepak Vohra   - [Clicks: 112]
    Find out how much you can simplify your EJB code by working through these examples, which show the process for migrating EJBs to version 3.0.
    [Includes sample migration code]
    http://www.devx.com/Java/Article/31488 - May, 2006
  • The Java Persistence API - A Simpler Programming Model for Entity Persistence by Rahul Biswas, Ed Ort   - [Clicks: 98]
    See how much easier and streamlined it is to code for entity persistence with EJB 3.0 and the Java Persistence API than with the EJB 2.1 programming model.
    http://java.sun.com/developer/technicalArticles/J2EE/jpa/ - May, 2006
  • Comment lines: Roland Barcia: How useful are annotated named queries in the Java Persistence API, really? by Roland Barcia   - [Clicks: 35]
    Annotations do make things easier for a developer, but simplicity comes with trade-offs. The Java Persistence API (JPA) makes use of annotations as a mechanism to map Java objects to the underlying database, but developers often use annotations even when it doesn't make sense. Find out some of the other ways to access data through JPA, and when and why these alternatives are the better options.
    http://www-128.ibm.com/developerworks/websphere/techjournal/0604_col_barcia/0604_col_barcia.html - Apr, 2006
  • EJB3 Persistence Jumpstart by Jeff Brown   - [Clicks: 134]
    The EJB 3.0 specification is being defined by JSR-220. Part of that specification is the new EJB 3 Persistence API. This persistence API is the new standard for object-relational mapping solutions in Java. This article will explore the fundamentals of the new API and provide practical code samples to serve as a tool to help developers quickly get started with the API. This article aims to introduce the API and provide a flavor for the powerful capabilities that this new standard introduces.
    http://ociweb.com/jnb/jnbApr2006.html - Apr, 2006
  • An Introduction to the Enterprise JavaBeans 3.0 Specification by Vimala Ranganathan, Anurag Pareek   - [Clicks: 156]
    In this article, we first briefly discuss the limitations of EJB 2.1. Next, we describe how EJB 3.0 addresses these difficulties by describing the proposed significant changes one by one, including the impact on types of enterprise beans, the O/R mapping model, the entity-relationship model, and EJB QL (EJB Query Language). We conclude with code examples using EJB 3.0-based enterprise beans.
    http://dev2dev.bea.com/pub/a/2006/01/ejb-3.html - Mar, 2006
  • Design enterprise applications with the EJB 3.0 Java Persistence API by Borys Burnayev   - [Clicks: 132]
    This article presents a Java Platform, Enterprise Edition (Java EE 5) design approach that leverages Enterprise JavaBeans (EJB) 3.0's new Java Persistence API (JPA). JPA provides a standard object-relational mapping solution that bypasses the need to rely on third-party frameworks such as Hibernate. You'll see details of a sample application that validates this approach and illustrates key design decisions.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-ejb3jpa.html - Mar, 2006
  • Developing Web Services Using EJB 3.0 by Manisha Umbarje   - [Clicks: 178]
    The specification Web Services for Java EE, JSR 109 defines two ways of implementing a web service. One way is based on the Java class programming model -- the web service is implemented by a Java class that runs in a web container. The other way is based on the Enterprise JavaBeans (EJB) programming model -- the web service is implemented as a stateless session bean that runs in an EJB container. A previous Tech Tip, Developing Web Services Using JAX-WS, described how to develop a web service using the Java class programming model and Java API for XML Web Services (JAX-WS) 2.0, JSR 224. In the following tip, you'll learn how to develop a web service using JAX-WS and the EJB programming model. In particular, you'll learn how to use an EJB 3.0 stateless session bean to implement a Calculator service -- the same Calculator service that was covered in the previous Tech Tip.
    [Includes sample code]
    http://java.sun.com/developer/EJTechTips/2006/tt0327.html#1 - Mar, 2006
  • JBoss Seam by Thomas Heute   - [Clicks: 189]
    The JBoss Seam framework is designed to take care of the plumbing between existing frameworks including EJB 3.0, JSF, and BPM. The Seam stateful component model makes it a breeze to develop sophisticated stateful web applications. In this article, we will show how to use Seam to create an e-commerce application--the JBoss Seam DVD Store application.
    http://www.onjava.com/pub/a/onjava/2006/03/15/jboss-seam.html - Mar, 2006
  • Spring and EJB 3.0 in Harmony by Ales Justin   - [Clicks: 126]
    The new EJB 3.0 specification supports some notion of dependency injection via annotations. As an avid Spring user, I'm used to configuring fine-grained beans with Spring bean factories and XML. How does EJB 3.0 compare? More importantly, can we use EJB 3.0 POJOs and Spring POJOs side-by-side in applications? In this article, I'll try to answer those questions based on my own investigations and experiences. As it turns out, using a versatile application server like the JBoss Application Server (AS), Spring and EJB 3.0 POJOs can co-exist in harmony in your applications.
    http://www.java.sys-con.com/read/180386.htm - Feb, 2006
  • The EJB Advocate: Is EJB 2.x dead yet? by Geoff Hambrick   - [Clicks: 34]
    The EJB Advocate responds to a reader who declares that EJB 3.0 makes EJB 2.0 obsolete, and explores some of the new features of the EJB 3 specification, including the Java Persistence API (JPA). This exchange shows that while the benefits of these new specifications are good, they require you to make some simplifying assumptions that may not work for everyone. Since nearly all of these benefits can be provided as implementations of the EJB 2.x specification with the proper tooling, it is likely that EJB 2.x will be around for a while.
    http://www-128.ibm.com/developerworks/websphere/techjournal/0602_ejba/0602_ejba.html?ca=drs- - Feb, 2006
  • Migrating JDBC Data Access Objects to use EJB3 by Debu Panda   - [Clicks: 55]
    A few months back I migrated the J2EE blueprint application Java Adventure Builder 1.0.1 consumer Web site module to use the EJB3 Java Persistence API. In this article, I’ll discuss what you need to do to migrate your DAO-based application to the EJB3 Java Persistence API.
    http://www.theserverside.com/articles/article.tss?l=MigratingJDBC - Feb, 2006
  • Seam: The Next Step in the Evolution of Web Applications by Norman Richards   - [Clicks: 144]
    Web sites were originally static. Later dynamic content came about through CGI scripts paving the way for the first true Web applications. Since HTTP was entirely stateless, it became necessary to invent ways for requests to be linked together in a sequence. At first state was added to the URLs, but later the cookie concept came into being. By giving each user a special token, the server could maintain a context for each user, the HTTP session where the application can store state. As simple as it is, the HTTP session defines the entire concept of what a Web application is today.
    http://java.sys-con.com/read/180363.htm - Feb, 2006
  • EJB fundamentals and session beans by Jim Crume, Kevin Mukhar, James L. Weaver, Chris Zelenak   - [Clicks: 100]
    In this article, an excerpt from Beginning Java EE 5 (Apress, October 2005; ISBN: 1590594703), authors Jim Crume, Kevin Mukhar, James Weaver, and Chris Zelnak describe the benefits of using EJBs and focus specifically on how to develop a session bean.
    http://www.javaworld.com/javaworld/jw-02-2006/jw-0213-ejb.html - Feb, 2006
  • A Test-Driven Exploration of the Advanced Features of EJB 3.0 by Rod Coffin   - [Clicks: 73]
    This article is the third in a three-part series exploring EJB 3.0 as defined in the public draft. Each article has introduced particular concepts from the specification and has walked you through the implementation of these techniques using JBoss. The first article introduced EJB 3.0, the philosophy behind it, and illustrated how to use it to develop Enterprise Bean Components. The second article introduced you to developing persistent entities with EJB 3.0. This third article will explore more advanced topics such as transaction management, callbacks, interceptors, and exceptions.
    [Includes source code]
    http://www.devx.com/Java/Article/30496 - Feb, 2006
  • ServiceLocator Pattern: Does EJB 3 Really Kill It Off? by Brandon Werner   - [Clicks: 209]
    With EJB3 fast approaching, are JNDI's days numbered in enterprise development? Brandon Werner takes a look at whether IoC will put the final nail in the coffin.
    http://www.javalobby.org/articles/service-locator/ - Jan, 2006
  • Converting an EJB 2.0 Entity Bean to EJB 3.0 by Deepak Vohra   - [Clicks: 86]
    The Enterprise JavaBeans (EJB) 3.0 specification has facilitated the development of EJBs, by providing an annotations-based API in which the remote/local and home/local home interfaces are not required. The deployment descriptors that form the basis of an EJB 2.0 entity bean are also not required for deploying an EJB 3 entity bean. This tutorial covers the procedure for converting an EJB 2.0 entity bean to an EJB 3.0 entity bean.
    http://www.oracle.com/technology/pub/articles/vohra_ejb.html - Jan, 2006

[Top]

Books:
  • Beginning EJB 3 Application Development: From Novice to Professional  by Raghu R. Kodali, Jonathan R. Wetherbee   - [Clicks: 109]
    EJB 3.0 has made huge advances in ease of development, and its drastically simplified programming model has been widely acclaimed. Targeted at Java and J2EE developers both with and without prior EJB experience, Beginning EJB 3 Application Development takes readers through the details of the EJB 3.0 architecture, and shows how EJB can be used to develop powerful, standards-based backend business logic. With 12 years of combined EJB experience, the authors offer many practical insights into the entire EJB architecture and cover all areas of the EJB 3.0 specification, including: * Complete exploration of all types of beans, from session beans to message-driven beans and entity beans; * A deep look at the new EJB 3 persistence and object-relational mapping mechanisms; * Application client integration; * Testing inside and outside the EJB container; * Comprehensive sample application with integrated EJB components; * Upgrade headaches -- common issues encountered when migrating from EJB 2.1 to EJB 3.0. With Java and SQL under your belt, this book will teach you EJB 3 from the ground up. It provides a complete and practical roadmap to EJB 3 architecture and programming. And it covers upgrade issues that you’ll encounter when migrating from EJB 2.1 to EJB 3.0, so it’s highly relevant if you’re already an EJB developer.
    Apress, Paperback - Sep, 2006
  • Pro EJB 3: Java Persistence API  by Mike Keith, Merrick Schincariol   - [Clicks: 122]
    EJB 3.0 sets a new precedent. It has made huge advances in ease of development, and its drastically simplified programming model has been widely acclaimed. This book is the definitive guide to EJB 3.0 persistence technology. The authors provide unparalleled insight and expertise on this topic, fully examining and explaining EJB 3.0 persistence specification. They describe how to use this sophisticated technology to its full potential, including: * The new EntityManager API; * The new features of EJB Query Language (EJB QL); * Basic and advanced object-relational mapping; * Advanced topics like concurrency, locking, inheritance, and polymorphism. Assuming a basic knowledge of Java, SQL, JDBC, and some J2EE experience, this book teaches you EJB 3 persistence from the ground up. After reading it, you will have an in-depth understanding of the EJB 3.0 Persistence API and how to use it in your applications.
    Apress, Paperback - May, 2006

[Top]

Tips:
  • EJB 3.0 Interceptors by Mahesh Kannan   - [Clicks: 65]
    One of the new features introduced in the EJB 3.0 specification is interceptors. An interceptor is a method that you can interpose in the invocation flow of an enterprise bean. You can define an interceptor to intercept an enterprise bean's business methods -- the interceptor method runs before any of the bean's business methods are invoked. Or you can define an interceptor to intercept lifecycle events for an enterprise bean -- the interceptor method runs as a callback method for the bean's lifecycle events. This Tech Tip demonstrates using interceptors to gather profiling information about business methods for an enterprise bean.
    [Includes sample code]
    http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Oct06.html#2 - Oct, 2006

[Top]

Tutorials:
  • Build a Web Application (JSF) Using JPA   - [Clicks: 415]
    This tutorial will walk you through the basic steps of developing, packaging, and deploying a Web application using the EJB 3.0 Java Persistence API (JPA). In this application, a Java Server Faces (JSF) presentation layer will make use of JPA for persistence outside of the EJB 3.0 container.
    http://www.oracle.com/technology/products/ias/toplink/jpa/tutorials/jsf-jpa-tutorial.html - May, 2006
  • Persist arbitrary data to Apache Derby by Daniel Wintschel   - [Clicks: 39]
    You can quickly and easily persist simple data to Apache Derby by taking advantage of Java dynamic proxies. In this tutorial, write a persistence API that you can integrate into any database-powered Java application. You use the API to store an application's configuration information and to notify the application when configuration items change.
    [Formats: HTML, PDF]
    http://www-128.ibm.com/developerworks/opensource/library/os-dw-os-ad-persist.html - Jan, 2006

[Top]