Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Shows use of @Resource to have an EntityManager with an EXTENDED persistence context injected into a Stateful. An EJB 3 @Entity bean is with the EntityManager to create, persist and merge data to a database.

The source for this example is in the "injection-of-entitymanager" directory located in the openejb-examples.zip available on the download page.

...