The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →An EJB local interface is a session bean’s local client view: it defines business methods that a client in the same Java Virtual Machine (JVM) can call. In modern Enterprise Beans, this usually means an ordinary Java business interface designated with @Local when needed. Older EJB code uses “local interface” for a different, legacy interface that extends EJBLocalObject.
What does “EJB local interface” mean?
In modern Enterprise Beans terminology, a local business interface is a Java interface that exposes the business methods a session bean makes available to local clients. A client calls the bean through this view while both are collocated in the same JVM. The Jakarta Enterprise Beans specification states that access through a local client view “requires the collocation in the same JVM” of the client and bean (Jakarta Enterprise Beans 4.0, Core Features, §3.2.2).
As an Amazon Associate I earn from qualifying purchases.
“Local” therefore does not simply mean that the client is on the same network or hosted by the same application server. The defining requirement is JVM collocation.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallModern local business interface versus legacy EJB local interface
The term varies with the age of the code. EJB 3.0 and later support a local business interface that does not need to extend EJBLocalObject. In the older EJB 2.1 client view, the local component interface extends EJBLocalObject and is used with a local home interface. These are related ways for local clients to access a bean, but they are not the same interface model. The Jakarta EE 8 API documentation for EJBLocalObject distinguishes the legacy form from the later business-interface approach.
#1 Best Overall
| View or model | Interface form | What to know |
|---|---|---|
| Modern local business interface (EJB 3.0 and later) | Ordinary Java business interface | Does not have to extend EJBLocalObject. |
| Legacy local component interface (EJB 2.1 and earlier) | Extends EJBLocalObject; used with a local home interface |
Older client-view model retained for compatibility. |
How a session bean declares a local business interface
The jakarta.ejb.Local annotation marks an interface as a local business interface, or can be placed on the bean class to designate its local business interfaces. The Jakarta EE Platform API documentation for @Local describes the annotation and cases where it is required.
A business interface can be local by default when neither the interface nor bean class designates it with @Local or @Remote, according to the Jakarta EE tutorial. Do not assume inference will resolve every bean’s views: explicit designation is required in documented cases such as multiple interfaces or an ambiguous no-interface view.
A local client can obtain access through dependency injection or a JNDI lookup. A no-interface view is another local client view, but it is not a local business interface: it exposes eligible public methods of the bean implementation class.
What local access means for calls and deployment
- Same JVM: the caller and bean must be collocated in the same JVM to use the local client view.
- Application packaging: portable required support covers local clients packaged in the same application as the bean. Access from a different application is optional and vendor-specific, even if both applications run on one server.
- Object passing: local calls pass arguments and results by reference. Caller and bean may therefore observe shared object state, so mutable objects require care.
Remote views differ in these respects: they are location-independent and pass arguments and results by value, as described in the Enterprise Beans specification.
Rank #3
Does an EJB local interface extend EJBLocalObject?
Only the legacy EJB 2.1-style local component interface has that requirement. A modern EJB 3.0-or-later local business interface is an ordinary business interface and need not extend EJBLocalObject. When reading older examples, check whether “local interface” refers to the legacy component interface or the modern local business interface.
Quick Recap
Best Value
- Used Book in Good Condition
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




