O'Reilly logo

Mastering Java EE Development with WildFly by Luca Stancapiano

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required