Where can I run EJBs ?

EJBs are built for more than just a Java EE application server. They can also execute in a Java EE Web Profile container or plain Java SE environment (Java SE ! yeah – Easy Java Beans !).

EJB Lite

  • Required to support only a subset of the features which are provided by the full EJB specification – a lightweight version of the same
  • A Java EE Web Profile certified container has to support the EJB Lite spec

Embedded Container

  • Embedded = in-memory
  • Executes in a JVM (plain Java SE environment) e.g. just as a part of bigger Java SE, JavaFX or a Swing application
  • Required to support all the features within the EJB Lite spec.
  • e.g – Open EJB

Application Client Container

  • Technically not an EJB container
  • Executes in a Java SE environment but it has some Java EE capabilities as well
  • Because of it’s Java EE related features, it can be used to talk to remotely deployed EJBs using DI (@EJB) or JNDI calls

EC and ACC are not the same

  • An Embedded Container provides a run time to host EJBs themselves
  • Application Client Containers are meant to host clients of remote EJBs apart from providing the ability to consume other services deployed on remote Java EE servers e.g. interaction with JMS destinations etc.

About Abhishek

Currently working as a Senior Product Manager in the Oracle Cloud Application Development team with a focus on Oracle Cloud PaaS portfolio. When not hovering in the clouds, I stay grounded with Java EE
This entry was posted in Java, Java EE and tagged , , , , , . Bookmark the permalink.

One Response to Where can I run EJBs ?

  1. Pingback: Where can I run EJBs ? | Java Frameworks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s