Overview

General

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

We've put together the first of hopefully many screencasts to walk you through various aspects of using OpenEJB. This screencast shows how you can turn the plain, non-javaee version of Eclipse into an EJB testing machine. The tutorial walks you through installing Eclipse, adding OpenEJB to your project's classpath, and creating a simple EJB with a JUnit unit test.

EJB Unit Testing with Eclipse and OpenEJB

Enjoy!

Posted at 18 Jun @ 9:00 AM by dblevins | comments

The Apache OpenEJB team is excited to announce the release of OpenEJB 3.1.1.

This release includes some great enhancements for the embedded testing scenarios and general EJB programming. Notable improvements include:

- Dependency injection for test cases and clients of the embedded ejb container via new @LocalClient annotation.
- Support for annotating the same interface as @Local, @Remote and @WebService making it possible to ex... (more)

Posted at 05 Jun @ 9:00 AM by dblevins | comments

The OpenEJB 3.1.1 binaries have been spun have gone through some rigorous testing and should be available in the next day or two. Check back tomorrow for some nice new OpenEJB 3.1.1 binaries and some great new features like alternative deployment descriptors for testing, test case injection, secure webservices, global openejb namespace, several new examples and more.

Posted at 01 Jun @ 3:09 PM by dblevins | comments

Recently we added the facility to use the mappedName attribute from a @Stateful, @Stateless or @Singleton annotation to add a global JNDI name for your bean. This is pretty simple to use, simply add the mapped name to your bean like so:

@Stateless(mappedName="MyCalculatorBean")
public class CalculatorImpl implements CalculatorRemote, CalculatorLocal {

	public int sum(int add1, int add2) {
		return add1+add2;
	}

	public int multiply(int mul1,... (more)

Posted at 04 May @ 12:35 PM by jgallimore | comments

To ease the burden in looking up things from OpenEJB's internal JNDI tree, we've added a new "openejb" JNDI URL prefix which can be used in any context to do lookups.

The following will work in a TestCase or EJB or any code running in the same VM as the EJB Container.

InitialContext context = new InitialContext();

TransactionManager tm = (TransactionManager) context.lookup("openejb:TransactionManager");
DataSource dataSource = (DataSource) ... (more)

Posted at 29 Apr @ 5:00 PM by dblevins | 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....

Posted at 05 Nov @ 10:46 AM by David Blevins | 0 comments

Activity

Closed

ASF JIRA (0 issues)
Key Summary Assignee Updated

Opened

ASF JIRA (5 issues)
Key Summary Reporter Created
OPENEJB-1045 Injection support for JSF 2.0 ManagedBeans David Blevins Jun 17, 2009
OPENEJB-1044 Webapp @Resource UserTransaction injection results in NullPointerException David Blevins Jun 17, 2009
OPENEJB-1043 Tomcat 6.0.x bug prevents dependency injection in super classes David Blevins Jun 17, 2009
OPENEJB-1042 NullPointerException is thrown while invoking Timer.getHandler() Ivan Jun 17, 2009
OPENEJB-1041 Entity Bean is not re-associated while doing new-delete-new action Ivan Jun 12, 2009

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:

   

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