Local and remote homes

EJB 3.x gives a new smart approach to building business logic in respect to the old 2.x. For now the home interfaces are excluded but still guarantees the retro compatibility with EJB 2.x. Once you need the home interface to call an EJB.

The home interface provides the functions to instantiate and destroy the bean. These interfaces are now as annotations and interfaces. The annotations can be used to inject the homes in our components.

The home interface is actually a factory object. When you write an EJB home interface, you must extend the interface EJBHome, and provide override methods for all the desired methods create() and find(). An object implementing the home interface can be automatically generated by the tools ...

Get Mastering Java EE Development with WildFly now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.