EJB Overview

An EJB component is a software component that encapsulates the business logic of an application.

Enterprise JavaBeans (EJB) technology is the server-side component architecture for Java Platform, Enterprise Edition (Java EE). EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology.

Use EJB Palette of TIBCO ActiveMatrix BusinessWorks Plug-in for EJB to connect to J2EE-compliant application servers and invoke Enterprise JavaBeans (EJB) components or enterprise beans on the servers.

The EJB specification includes support for Java Transaction API (JTA) UserTransactions. TIBCO ActiveMatrix BusinessWorks provides support for these transactions and you can call enterprise beans within a client-managed transaction. See TIBCO ActiveMatrix BusinessWorks Application Development for more information about transactions.

Accessing an EJB

The EJB standard defines mechanisms for a client machine to access an EJB 2.x or an EJB 3.x entity:
  • To access an EJB 2.x, you need to obtain a reference to a JNDI server, and perform a JNDI lookup operation to obtain a reference to a home object and also a reference to a remote object from the home object. Then you can invoke methods on the remote object.
  • To access an EJB 3.x, you need to obtain a reference to a JNDI server, and perform a JNDI lookup operation to obtain a reference to a remote object. Then you can invoke methods on the remote object.