EJB Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
=EJB Client Context=
=EJB Client Context=


The EJB Client Context may be associated with, and used by more than one thread concurrently.
The EJB client context may be associated with, and used by more than one thread concurrently.


The EJB Client Context is configured with [[Jboss-ejb-client.properties#Overview|jboss-ejb-client.properties]] for [[#standalone_ejb_client|standalone applications]] and with [[Jboss-ejb-client.xml#Overview|jboss-ejb-client.xml]] for applications deployed within the EAP.
There can potentially be more than one EJB client contexts into a JVM. For [[#deployed_application|deployed applications]], each application will have its own EJB client context. Whenever that application invokes another EJB, the corresponding EJB client context is used to find the correct [[#EJB_Receiver|EJB receiver]], which then handles the invocation.


There can potentially be more than one EJB Client Contexts into a JVM. For [[#deployed_application|deployed applications]], each application will have its own EJB Client Context. Whenever that application invokes another EJB, the corresponding EJB Client Context is used to find the correct [[#EJB_Receiver|EJB receiver]], which then handles the invocation.
For [[#standalone_ejb_client|standalone applications]], a remote standalone client typically has just one EJB client context backed by any number of EJB receivers


An EJB Client Context may contain any number of [[#EJB_Receivers|EJB receivers]].
An EJB client context may contain any number of [[#EJB_Receivers|EJB receivers]].
 
The EJB client context is configured with [[Jboss-ejb-client.properties#Overview|jboss-ejb-client.properties]] for [[#standalone_ejb_client|standalone applications]] and with [[Jboss-ejb-client.xml#Overview|jboss-ejb-client.xml]] for applications deployed within the EAP.


==EJB Receiver==
==EJB Receiver==


An EJB receiver is a component that knows how to communicate with a server that is capable of handling EJB invocations.
An EJB receiver is a component that knows how to communicate with a server that is capable of handling EJB invocations.

Revision as of 17:08, 23 March 2017

Internal

EJB Remote Applications

An EJB remote application can be one of the following:

  • a standalone Java application
  • another component that runs within a application server instance, and makes invocations into remote EJBs. In this case, each deployed application will have its own EJB client context, and the application's components will share the EJB client context.

EJB Client API

JBoss EAP 6 introduced the EJB client API for managing remote EJB invocations. The EJB client API uses the EJB Client Context.

EJB Client Context

The EJB client context may be associated with, and used by more than one thread concurrently.

There can potentially be more than one EJB client contexts into a JVM. For deployed applications, each application will have its own EJB client context. Whenever that application invokes another EJB, the corresponding EJB client context is used to find the correct EJB receiver, which then handles the invocation.

For standalone applications, a remote standalone client typically has just one EJB client context backed by any number of EJB receivers

An EJB client context may contain any number of EJB receivers.

The EJB client context is configured with jboss-ejb-client.properties for standalone applications and with jboss-ejb-client.xml for applications deployed within the EAP.

EJB Receiver

An EJB receiver is a component that knows how to communicate with a server that is capable of handling EJB invocations.