Overview

Configuration

Servers

Integrations

Community

Related Projects

Index

Feeds

 

Welcome to Apache OpenEJB!

Apache OpenEJB is an embeddable and lightweight EJB 3.0 implementation that can be used as a standalone server or embedded into Tomcat, JUnit, TestNG, Eclipse, IntelliJ, Maven, Ant, and any IDE or application. OpenEJB is included in Apache Geronimo, IBM WebSphere Application Server CE, and Apple's WebObjects.

Major features

  • Supports EJB 3.0, 2.1, 2.0, 1.1 in all modes; embedded, standalone or otherwise.
  • JAX-WS support
  • JMS support
  • J2EE connector support
  • Can be dropped into Tomcat 5 or 6 adding various JavaEE 5 and EJB 3.0 features to a standard Tomcat install.
  • CMP support is implemented over JPA allowing to freely mix CMP and JPA usage.
  • Complete support for Glassfish descriptors allowing those users to embedded test their applications.
  • Incredibly flexible jndi name support allows you to specify formats at macro and micro levels and imitate the format of other vendors.
  • Allows for easy testing and debugging in IDEs such as Eclipse, Idea Intellij or NetBeans with no plugins required.
  • Usable in ordinary JUnit or other style test cases without complicated setup or external processes.
  • Validates applications entirely and reports all failures at once, with three selectable levels of detail, avoiding several hours worth of "fix, recompile, redeploy, fail, repeat" cycles.

News

As OpenEJB is deployed into more and more production environments we've been hard at work filling out the system to meet demands. The latest overhaul has been around the @Stateless bean pooling options.

At a high level, the new features provide:

  • Availability: guarantee a minimum number of instance in a pool, from startup and through the entire life of the pool.
  • Shrinking: aggressively shrink pools via an inactive bean timeout and/or g... (more)

  • Posted at 29 Apr @ 8:00 AM by | comments

    Inspired by Matthew B. Jones' blog post sharing his experience saving a whopping 26 person weeks in development with OpenEJB, we've put together a time saved calculator.

    A fun little tool for those that develop with OpenEJB and use a different platform in production. Check it out!

    Posted at 26 Apr @ 12:00 PM by | comments

    Matthew B. Jones writes a great piece, OpenEJB : Rapid J2EE Development & Testing, sharing his team's experience using OpenEJB to aid in the development of their very large JBoss application. His team of 10 has been using OpenEJB since February and by his most conservative estimations has saved 26 man-weeks on deployment time alone. A shocking amount even to our ears.

    Posted at 26 Apr @ 8:00 AM by | comments

    Having trouble with a test? It's bound to happen eventually. We've coded up a little example that employs some of the more common ways to get more information to help resolve issues.

    The heart of the example is the following setup method:

    public void setUp() throws Exception {
        Properties p = new Properties();
        p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
        p.put("movieDatabase",... (more)

    Posted at 12 Mar @ 8:00 AM by | comments

    We've coded up a nice little example project that shows various ways to rollback transactions in unit tests.

    The example also serves to show the various options in EJB that pertain to how to rollback transactions via either a UserTransaction, SessionContext.setRollbackOnly(), or throwing a RuntimeException. The example also shows how to mark a RuntimeException with @ApplicationException to bypass the rollback behavior.

    Here's a snippet from... (more)

    Posted at 10 Mar @ 8:00 AM by | comments

    The Apache OpenEJB community is proud to release OpenEJB 3.1. This release contains significant enhancements, improvements, new functionality and allows developers to get early access to some key parts of EJB 3.1. In addition to the embeddable EJB container and Collapsed EAR (ejbs in .war files) functionality which have been long standing OpenEJB features, now slated for EJB 3.1, this release contains full support for the new EJB 3.1 Singleton Session bean type. …

    Read more…

    Posted at Nov 05, 2008 by David Blevins | 0 comments | Edit

    Activity

    Closed

    Opened

    EJB3 Examples

    Looking for an example of how to use an EJB 3.0 or OpenEJB feature?

    Check out the newly revised examples. Examples include:

    OpenEJB Forums

    The Nabble site as wonderful support for turning regular mailing lists into online forums. We've setup OpenEJB and our forums are now open for business. You can easily search and post to any of our mailing lists via any of the links below:

    Site Updates
       

    Apache OpenEJB is an project of The Apache Software Foundation (ASF)
    Site Powered by Atlassian Confluence .
    [ edit ]