Reputation: 2821
Could anyone explain me how do the functions inside the HOME and REMOTE interfaces relate to the Bean object?
The interfaces are instanciated so that the functions are used. But the functions body rests only in the Bean object. What am I missing?
Upvotes: 0
Views: 224
Reputation: 346300
The actual EJB instances will typically be instances of java.lang.reflect.Proxy
that delegate calls to the bean's implementation class after doing their transaction-, clustering- and security-stuff.
Upvotes: 3
Reputation: 308763
The Java EE container is dealing with those details for you. It knows to find the bean implementation when a call is made to that interface. It hides all the magic from you.
Upvotes: 1