Overview

General

Configuration

Servers

Integrations

Community

Related Projects

Index

Feeds

 

Warning

This document and the related feature is a work in progress.

Introduction

The OpenEJB Spring integration makes all Spring defined beans injectable to JEE components, and all JEE components can be injected to Spring beans. The injection system supports arbitrarily complex nesting (e.g., Spring bean injected into a JEE component, which is then injected into another Spring bean), including:

  • @Resouce injection of any Spring bean into EJB
  • Injection of any JEE resource into a Spring bean, including:
    • EJB
    • EJB 3.1 Singleton Bean
    • JPA Persistence Context
    • JDBC Connector
    • JMS Connector
    • JMS Queue and Topic
    • Generic JEE Connector (JCA)
    • UserTransaction
    • JavaMail

In addition, the OpenEJB Spring integration add support for discovery and deployment of standard JEE packages within a Spring context, including:

  • EAR
  • EJB Jar
  • Persistence Unit
  • RAR

Requirements:

  • OpenEJB 3.1+
  • Spring X.X
  • Java 1.5 or 1.6

Installation for the Impatient

The simplest installation is to add the OpenEJB jar to your classpath, and add the following to your spring.xml file:

<bean name="classPathApplication" class="org.apache.openejb.spring.ClassPathApplication"/>

Examples, Tutorials and Tests

Problems?

Other Issues

If you are having problems with the installation, please send a message to the OpenEJB users mailing list containing any error message(s) and the following information:

  • OpenEJB Version
  • Spring Version
  • Java Version (execute java -version)
  • Operating System Type and Version

Limitations

JavaAgent - OpenEJB uses OpenJPA to provide JPA and CMP persistence, and OpenJPA currently requires a JavaAgent to function properly. This requirement is something that the OpenJPA project is working on removing. Once removed, the OpenEJB plugin for Tomcat will no longer need to modify the startup shell scripts and you will not need to restart Tomcat after the OpenEJB installation.

Transactions -

Misc

This document is a starting point for using OpenEJB in Tomcat and will evolve based on user contributions. If you wish to contribute to this document, feel very welcome to click the 'Edit' link in the lower right and make changes and add new HOWTO's and other docs.

   

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